|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.system.ComputeResourceUtilization
public class ComputeResourceUtilization
The ComputeResourceUtilization provides a mechanism to represent the
utilization of a ComputeResource. ComputeResource
quantitative behavior is represented by
MeasuredResource objects. Each MeasuredResource
contains a relative value which represents the percentage of the resource
being measured. This value is the relative utilization of the resource's
usage. The summation of a compute resource's utilization is represented by
the utilization property.
| Constructor Summary | |
|---|---|
ComputeResourceUtilization(String description,
String hostName,
String address,
Collection<MeasuredResource> mRes)
Construct a ComputeResourceUtilization |
|
ComputeResourceUtilization(String description,
String hostName,
String address,
Double utilization,
Collection<MeasuredResource> mRes)
Construct a ComputeResourceUtilization |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compares this ComputeResourceUtilization object with another ComputeResourceUtilization object for order using the computed utilization of the ComputeResourceUtilization |
String |
getAddress()
Get the address the compute resource is bound to |
CpuUtilization |
getCpuUtilization()
Get the measured CPU utilization |
String |
getDescription()
Get the description |
DiskSpaceUtilization |
getDiskSpaceUtilization()
Get the measured disk space utilization |
String |
getHostName()
Get the hostname |
Collection<MeasuredResource> |
getMeasuredResources()
The Map of measurable capability utilization values |
ProcessCpuUtilization |
getProcessCpuUtilization()
Get the measured process cpu utilization |
ProcessMemoryUtilization |
getProcessMemoryUtilization()
Get the measured process memory utilization |
SystemMemoryUtilization |
getSystemMemoryUtilization()
Get the measured system memory utilization |
Double |
getUtilization()
Get the utilization value, a summation of the measured resources |
boolean |
measuredResourcesWithinRange()
Determine if the ComputeResourceUtilization contains MeasuredResource instances that have values which fall outside of their threshold declaration |
void |
setAddress(String address)
Set the address the compute resource is bound to |
void |
setDescription(String description)
Set the description |
void |
setHostName(String hostName)
Set the hostname |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ComputeResourceUtilization(String description,
String hostName,
String address,
Collection<MeasuredResource> mRes)
description - A description for the resourcehostName - The host name of the ComputeResourceaddress - IP address of the ComputeResourcemRes - Collection of MeasuredResources, corresponding to whats being
measured on the compute resource
public ComputeResourceUtilization(String description,
String hostName,
String address,
Double utilization,
Collection<MeasuredResource> mRes)
description - A description for the resourcehostName - The host name of the ComputeResourceaddress - IP address of the ComputeResourceutilization - Composite utilization of the ComputeResourcemRes - Collection of MeasuredResources, corresponding to whats being
measured on the compute resource| Method Detail |
|---|
public String getDescription()
public void setDescription(String description)
description - The descriptionpublic String getHostName()
public void setHostName(String hostName)
hostName - The hostnamepublic String getAddress()
public void setAddress(String address)
address - The address the compute resource is bound topublic Double getUtilization()
public Collection<MeasuredResource> getMeasuredResources()
public CpuUtilization getCpuUtilization()
CpuUtilization taken
from the compute resource. If not available, return null.public SystemMemoryUtilization getSystemMemoryUtilization()
SystemMemoryUtilization
taken from the compute resource. If not available, return null.public ProcessMemoryUtilization getProcessMemoryUtilization()
ProcessMemoryUtilization
taken from the compute resource. If not available, return null.public ProcessCpuUtilization getProcessCpuUtilization()
ProcessCpuUtilization
taken from the compute resource. If not available, return null.public DiskSpaceUtilization getDiskSpaceUtilization()
DiskSpaceUtilization taken
from the compute resource. If not available, return null.public boolean measuredResourcesWithinRange()
public int compareTo(Object o)
compareTo in interface Comparableo - Object to compare topublic String toString()
toString in class Object
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||