public class ResourceMetrics
extends java.lang.Object
Constructor and Description |
---|
ResourceMetrics(byte[] marshalledBytes) |
ResourceMetrics(int threadPoolSize,
java.lang.String deploymentStream) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
java.lang.String |
getDeploymentStream() |
long |
getFreeMemory()
Retrieve the available free memory in MB.
|
long |
getMemoryUtilization()
Retrieve the memory utilization in MB.
|
int |
getNumberOfComputations() |
int |
getNumberOfProcessors()
Retrieve the number of processors available to this resource.
|
int |
getThreadPoolSize()
Retrieve the thread pool size.
|
long |
getTotalMemory()
Retrieve the total memory assigned to the resource in MB.
|
static void |
main(java.lang.String[] args) |
void |
setNumberOfComputations(int numberOfComputations) |
java.lang.String |
toString() |
public ResourceMetrics(int threadPoolSize, java.lang.String deploymentStream)
public ResourceMetrics(byte[] marshalledBytes) throws java.io.IOException
java.io.IOException
public byte[] getBytes() throws java.io.IOException
java.io.IOException
public int getThreadPoolSize()
public java.lang.String getDeploymentStream()
public long getFreeMemory()
public long getTotalMemory()
public long getMemoryUtilization()
public int getNumberOfProcessors()
public int getNumberOfComputations()
public void setNumberOfComputations(int numberOfComputations)
numberOfComputations
- the numberOfComputations to setpublic java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
args
-