|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.system.ResourceCapability
public class ResourceCapability
Represents the capabilities of a compute resource. The ResourceCapability class provides the utilization, platform and measurable capabilities for a compute resource.
| Field Summary | |
|---|---|
static int |
ALL_MEASURED_RESOURCES
Used to get all MeasuredResource instances |
static int |
MEASURED_RESOURCES_BREACHED
Used to get MeasuredResource instances which have a value outside of declared thresholds |
| Constructor Summary | |
|---|---|
ResourceCapability(String address,
String hostName,
boolean persistentProvisioning,
PlatformCapability[] platformCapabilities,
ComputeResourceUtilization resourceUtilization)
Construct a ResourceCapability object |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compares this ResourceCapability object with another ResourceCapability object for order using the computed utilization of the ResourceCapability |
String |
getAddress()
Get the address |
String |
getHostName()
Get the hostname |
MeasuredResource[] |
getMeasuredResources()
Get an array of MeasuredResource objects for the compute resource. |
MeasuredResource[] |
getMeasuredResources(int type)
Get an array of MeasuredResource objects for the compute resource. |
PlatformCapability[] |
getPlatformCapabilities()
Get an array of PlatformCapability objects for the compute resource |
double |
getUtilization()
Get the computed resource utilization |
boolean |
measuredResourcesWithinRange()
Determine if the ResourceCapability contains MeasuredResource instances that have values which fall outside of their threshold declaration |
boolean |
supportsPersistentProvisioning()
Get whether the ComputeResource supports persistent provisioning |
String |
toString()
Provide a String output |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ALL_MEASURED_RESOURCES
public static final int MEASURED_RESOURCES_BREACHED
| Constructor Detail |
|---|
public ResourceCapability(String address,
String hostName,
boolean persistentProvisioning,
PlatformCapability[] platformCapabilities,
ComputeResourceUtilization resourceUtilization)
address - The IP Address of the ComputeResourcehostName - The hostname of the ComputeResourcepersistentProvisioning - Whether the ComputeResource supports
persistent provisioningplatformCapabilities - An array of PlatformCapability objects for
the compute resourceresourceUtilization - The ComputeResourceUtilization,
representing the measured attributes of the compute resource| Method Detail |
|---|
public String getAddress()
public String getHostName()
public double getUtilization()
public boolean supportsPersistentProvisioning()
public PlatformCapability[] getPlatformCapabilities()
public MeasuredResource[] getMeasuredResources()
public MeasuredResource[] getMeasuredResources(int type)
type - Either ALL_MEASURED_RESOURCES or MEASURED_RESOURCES_BREACHED
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 | |||||||||