public class LoadMeasureJVM
extends java.lang.Object
implements java.lang.Cloneable
LoadMeasureThread
, which coordinates all
measurements.LoadMeasureThread
Constructor and Description |
---|
LoadMeasureJVM()
Instantiates this class.
|
Modifier and Type | Method and Description |
---|---|
protected LoadMeasureJVM |
clone()
Returns a clone of the current object.
|
long |
getJvmHeapCommitted()
Returns the JVM committed heap memory.
|
long |
getJvmHeapInit()
Returns the JVM initial heap memory.
|
long |
getJvmHeapMax()
Returns the JVM maximum heap memory.
|
long |
getJvmHeapUsed()
Returns the JVM used heap memory.
|
long |
getJvmMemoFree()
Returns the JVM free memory.
|
long |
getJvmMemoMax()
Returns the JVM maximum memory.
|
long |
getJvmMemoTotal()
Returns the JVM total memory.
|
java.lang.String |
getJvmPID()
Returns the JVM PID.
|
int |
getJvmThreadCount()
Returns the number of threads running in the JVM.
|
java.util.Hashtable<java.lang.String,java.lang.Long> |
getJvmThreadTimes()
Returns the times of the threads running in the JVM.
|
void |
measureLoadOfSystem()
This method measures the current load of the system by using the on board functionalities of the JVM.
|
void |
setJvmHeapCommitted(long jvmHeapCommited)
Sets the JVM committed heap memory.
|
void |
setJvmHeapInit(long jvmHeapInit)
Returns the JVM initial heap memory.
|
void |
setJvmHeapMax(long jvmHeapMax)
Sets the JVM maximum heap memory.
|
void |
setJvmHeapUsed(long jvmHeapUsed)
Sets the JVM used heap memory.
|
void |
setJvmMemoFree(long jvmMemoFree)
Sets the JVM free memory.
|
void |
setJvmMemoMax(long jvmMemoMax)
Sets the JVM maximum memory.
|
void |
setJvmMemoTotal(long jvmMemoTotal)
Sets the JVM total memory.
|
void |
setJvmPID(java.lang.String jvmPID)
Sets the JVM PID.
|
void |
setJvmThreadCount(int jvmThreadCount)
Sets the number of threads running in the JVM.
|
void |
setJvmThreadTimes(java.util.Hashtable<java.lang.String,java.lang.Long> jvmThreadTimes)
Sets the times of the threads running in the JVM.
|
boolean |
threadExists(java.lang.String threadName2LookAt)
This method return true/false if a Thread, given by it's name exists or not.
|
protected LoadMeasureJVM clone()
clone
in class java.lang.Object
public void measureLoadOfSystem()
public boolean threadExists(java.lang.String threadName2LookAt)
threadName2LookAt
- the name of the threadpublic void setJvmPID(java.lang.String jvmPID)
jvmPID
- the jvmPID to setpublic java.lang.String getJvmPID()
public long getJvmMemoFree()
public void setJvmMemoFree(long jvmMemoFree)
jvmMemoFree
- the jvmMemoFree to setpublic long getJvmMemoTotal()
public void setJvmMemoTotal(long jvmMemoTotal)
jvmMemoTotal
- the jvmMemoTotal to setpublic long getJvmMemoMax()
public void setJvmMemoMax(long jvmMemoMax)
jvmMemoMax
- the jvmMemoMax to setpublic long getJvmHeapUsed()
public void setJvmHeapUsed(long jvmHeapUsed)
jvmHeapUsed
- the jvmHeapUsed to setpublic long getJvmHeapCommitted()
public void setJvmHeapCommitted(long jvmHeapCommited)
jvmHeapCommited
- the jvmHeapCommited to setpublic long getJvmHeapMax()
public void setJvmHeapMax(long jvmHeapMax)
jvmHeapMax
- the jvmHeapMax to setpublic long getJvmHeapInit()
public void setJvmHeapInit(long jvmHeapInit)
jvmHeapInit
- the jvmHeapInit to setpublic int getJvmThreadCount()
public void setJvmThreadCount(int jvmThreadCount)
jvmThreadCount
- the jvmThreadCount to setpublic java.util.Hashtable<java.lang.String,java.lang.Long> getJvmThreadTimes()
public void setJvmThreadTimes(java.util.Hashtable<java.lang.String,java.lang.Long> jvmThreadTimes)
jvmThreadTimes
- the jvmThreadTimes to set