public class ResourceMetrics extends Object
Constructor and Description |
---|
ResourceMetrics(byte[] marshalledBytes) |
ResourceMetrics(int threadPoolSize,
String deploymentStream) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
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) |
String |
toString() |
public static final String MODULE
public ResourceMetrics(int threadPoolSize, String deploymentStream)
public ResourceMetrics(byte[] marshalledBytes) throws IOException
IOException
public byte[] getBytes() throws IOException
IOException
public int getThreadPoolSize()
public 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 setCopyright © 2015. All rights reserved.