|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.xtreemos.xosd.resmng.data.ResourceDescriptorRecord
public class ResourceDescriptorRecord
A class for describing a resource. A resource is an entity (mostly a computer
node) that provides capabilities for computation and services. An instance
of the class provides the details known or currently available about a
particular resource. The instance might not have all the fields filled
in.
The instances of the class can be used to check agains the queries in the
ConditionTreeCondition
. It can also be used in resource registration
and listing (e.g., RCAServer
).
Field Summary | |
---|---|
protected static java.util.ArrayList<java.lang.reflect.Field> |
availableFields
A collection containing all the fields (resources) available and supported by descriptor record. |
CommunicationAddress |
communicationAddress
|
double |
CPUCount
|
static java.lang.reflect.Field |
cpuCountField
|
int |
cpuLoadLast15min
The load average of last 15 minutes, per cent (0..100), or -1 if unknown. |
static java.lang.reflect.Field |
cpuLoadLast15minField
|
int |
cpuLoadLast1min
The load average of last 1 minutes, per cent (0..100), or -1 if unknown. |
static java.lang.reflect.Field |
cpuLoadLast1minField
|
int |
cpuLoadLast5min
The load average of last 5 minutes, per cent (0..100), or -1 if unknown. |
static java.lang.reflect.Field |
cpuLoadLast5minField
|
double |
CPUSpeed
|
static java.lang.reflect.Field |
cpuSpeedField
|
java.lang.String |
hostIP
|
static java.lang.reflect.Field |
hostIPField
|
java.lang.String |
hostUniqueID
|
static java.lang.reflect.Field |
hostUniqueIDField
|
java.lang.String |
operatingSystemName
|
static java.lang.reflect.Field |
operatingSystemNameField
|
java.lang.String |
processorArchitecture
|
static java.lang.reflect.Field |
processorArchitectureField
|
double |
RAMSize
|
static java.lang.reflect.Field |
ramSizeField
|
ResourceID |
resourceId
|
java.util.ArrayList<java.lang.String> |
services
A list of services belonging to the resource or currently running on the resource. |
java.util.Date |
timestamp
The field that can be used to approximate the age of this descriptor's instance, particularly for its dynamic field values. |
java.util.ArrayList<java.lang.String> |
vos
The client might want to store the list of VO names/IDs that the resource belongs to. |
Constructor Summary | |
---|---|
ResourceDescriptorRecord(CommunicationAddress communicationAddress,
java.lang.String hostUniqueID,
java.lang.String operatingSystemName,
java.lang.String processorArchitecture,
double CPUSpeed,
double CPUCount,
double RAMSize,
int cpuLoadLast15min,
int cpuLoadLast5min,
int cpuLoadLast1min)
|
|
ResourceDescriptorRecord(java.lang.String hostIP,
java.lang.String hostUniqueID,
java.lang.String operatingSystemName,
java.lang.String processorArchitecture,
double CPUSpeed,
double CPUCount,
double RAMSize)
|
Method Summary | |
---|---|
protected static java.util.ArrayList<java.lang.reflect.Field> |
getAllMyFields()
|
static java.util.ArrayList<java.lang.reflect.Field> |
getAvailableFields()
|
java.util.Hashtable<java.lang.String,java.lang.String> |
getFlatStructure()
Converts the record into a hashtable containing pairs (metric name, value). |
java.util.Hashtable<java.lang.String,java.lang.String> |
getFlatStructure(java.util.ArrayList<java.lang.reflect.Field> fields)
Converts the record into a hashtable containing pairs (metric name, value). |
java.util.Hashtable<java.lang.String,java.lang.String> |
getFlatStructureStr(java.util.ArrayList<java.lang.String> metrics)
Converts the record into a hashtable containing pairs (metric name, value). |
static java.lang.reflect.Field |
getMyField(java.lang.String fieldName)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public CommunicationAddress communicationAddress
public java.lang.String hostIP
public java.lang.String hostUniqueID
public java.lang.String operatingSystemName
public java.lang.String processorArchitecture
public double CPUSpeed
public double CPUCount
public double RAMSize
public ResourceID resourceId
public java.util.ArrayList<java.lang.String> services
public java.util.ArrayList<java.lang.String> vos
public int cpuLoadLast15min
public int cpuLoadLast5min
public int cpuLoadLast1min
public java.util.Date timestamp
public static final java.lang.reflect.Field hostUniqueIDField
public static final java.lang.reflect.Field hostIPField
public static final java.lang.reflect.Field cpuCountField
public static final java.lang.reflect.Field ramSizeField
public static final java.lang.reflect.Field processorArchitectureField
public static final java.lang.reflect.Field operatingSystemNameField
public static final java.lang.reflect.Field cpuSpeedField
public static final java.lang.reflect.Field cpuLoadLast15minField
public static final java.lang.reflect.Field cpuLoadLast5minField
public static final java.lang.reflect.Field cpuLoadLast1minField
protected static java.util.ArrayList<java.lang.reflect.Field> availableFields
Constructor Detail |
---|
public ResourceDescriptorRecord(java.lang.String hostIP, java.lang.String hostUniqueID, java.lang.String operatingSystemName, java.lang.String processorArchitecture, double CPUSpeed, double CPUCount, double RAMSize)
public ResourceDescriptorRecord(CommunicationAddress communicationAddress, java.lang.String hostUniqueID, java.lang.String operatingSystemName, java.lang.String processorArchitecture, double CPUSpeed, double CPUCount, double RAMSize, int cpuLoadLast15min, int cpuLoadLast5min, int cpuLoadLast1min)
Method Detail |
---|
protected static java.util.ArrayList<java.lang.reflect.Field> getAllMyFields()
public static java.lang.reflect.Field getMyField(java.lang.String fieldName)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Hashtable<java.lang.String,java.lang.String> getFlatStructure() throws java.lang.Exception
java.lang.Exception
public java.util.Hashtable<java.lang.String,java.lang.String> getFlatStructure(java.util.ArrayList<java.lang.reflect.Field> fields) throws java.lang.Exception
fields
- The collection with the fields that the method should
return the values of.
java.lang.Exception
public java.util.Hashtable<java.lang.String,java.lang.String> getFlatStructureStr(java.util.ArrayList<java.lang.String> metrics) throws java.lang.Exception
metrics
- The collection with the fields that the method should
return the values of. The names in the collection have to match the
names of the fields of ResourceDescriptorRecord that contain the
resource metric values.
java.lang.Exception
public static java.util.ArrayList<java.lang.reflect.Field> getAvailableFields()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |