public class ResourceMetrics
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MODULE |
| 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.
|
void |
setNumberOfComputations(int numberOfComputations) |
java.lang.String |
toString() |
public static final java.lang.String MODULE
public ResourceMetrics(int threadPoolSize,
java.lang.String deploymentStream)
public ResourceMetrics(byte[] marshalledBytes)
throws java.io.IOException
java.io.IOExceptionpublic byte[] getBytes()
throws java.io.IOException
java.io.IOExceptionpublic 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