|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.xtreemos.xati.API.XResMng
public class XResMng
Field Summary | |
---|---|
static java.lang.String |
servicename
|
Constructor Summary | |
---|---|
XResMng()
|
Method Summary | |
---|---|
static java.util.ArrayList<CommunicationAddress> |
createRequest(java.util.Hashtable<java.lang.String,java.lang.Object> __jsdlTable)
|
static java.util.ArrayList<ResourceDescriptorRecord> |
getNodeResourceDescriptor(CommunicationAddress __address)
A proxy call to ResourceMonitor.query of a service running at particular node. |
static java.util.Hashtable<java.lang.String,java.lang.Object> |
getNodeResourceGLUE(CommunicationAddress __address)
A proxy call to ResourceMonitor.query of a service running at particular node. |
static java.util.Hashtable<java.lang.String,java.lang.String> |
getResInfo(CommunicationAddress __resource,
java.security.cert.X509Certificate __userCtx)
Returns the monitoring information associated with the resource. |
static java.util.ArrayList<java.lang.String> |
getResMetrics(CommunicationAddress __resource,
java.security.cert.X509Certificate __userCtx)
Returns the list of metrics available on that resource. |
static java.util.ArrayList<ResourceDescriptorRecord> |
getResourceDescriptors(java.util.ArrayList<CommunicationAddress> __resources)
Retrieve the resource descriptors of the nodes from the given list. |
static java.util.ArrayList<CommunicationAddress> |
getResources(java.lang.String __query,
java.security.cert.X509Certificate __userCtx,
java.lang.Integer __howMany)
Retrieve a collection of resources that match the job's resource demands. |
static java.util.ArrayList<CommunicationAddress> |
getResourcesADS(java.lang.String __query,
java.security.cert.X509Certificate __userCtx,
java.lang.Integer __howMany)
|
static java.util.ArrayList<CommunicationAddress> |
getResourcesCentral(java.lang.String __query,
java.security.cert.X509Certificate __userCtx,
java.lang.Integer __howMany)
Retrieve a collection of resources that match the job's resource demands. |
static java.util.ArrayList<CommunicationAddress> |
getResourcesFromParsedCommand(ParsedCommand __command)
|
static java.util.ArrayList<CommunicationAddress> |
getResourcesFromString(java.lang.String __query)
Retrieve a collection of resources that match the job's resource demands. |
static java.util.ArrayList<CommunicationAddress> |
getResourcesFromStructure(java.util.Hashtable<java.lang.String,java.lang.Object> __jsdl)
Retrieve a collection of resources that match the job's resource demands. |
static java.util.ArrayList<CommunicationAddress> |
getResourcesScored(java.lang.String __query)
|
static java.util.ArrayList<CommunicationAddress> |
getResourcesScoredWeighted(java.lang.String __query,
java.util.Hashtable<java.lang.Integer,java.lang.Double> __weights)
|
static java.util.ArrayList<CommunicationAddress> |
getResourcesSorted(java.lang.String __query,
ResourceDescriptorComparatorSerializable __comparator)
Retrieve a collection of resources that match the job's resource demands. |
static java.util.ArrayList<CommunicationAddress> |
testCall()
A function for testing stuff. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String servicename
Constructor Detail |
---|
public XResMng()
Method Detail |
---|
public static java.util.ArrayList<CommunicationAddress> createRequest(java.util.Hashtable<java.lang.String,java.lang.Object> __jsdlTable) throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList<CommunicationAddress> getResources(java.lang.String __query, java.security.cert.X509Certificate __userCtx, java.lang.Integer __howMany) throws java.lang.Exception
query
- The contents of the XML file with JSDL query
containing the resource query as a part of a job description.userCtx
- The certificate signifying the user on whose behalf
the call is doing the query.howMany
- A hint, specifying how many retrieved resources we
would like to have.
java.lang.Exception
public static java.util.ArrayList<CommunicationAddress> getResourcesADS(java.lang.String __query, java.security.cert.X509Certificate __userCtx, java.lang.Integer __howMany) throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList<CommunicationAddress> getResourcesCentral(java.lang.String __query, java.security.cert.X509Certificate __userCtx, java.lang.Integer __howMany) throws java.lang.Exception
query
- The contents of the XML file with JSDL query
containing the resource query as a part of a job description.userCtx
- The certificate signifying the user on whose behalf
the call is doing the query.howMany
- A hint, specifying how many retrieved resources we
would like to have.
java.lang.Exception
public static java.util.ArrayList<CommunicationAddress> getResourcesFromString(java.lang.String __query) throws java.lang.Exception
query
- The contents of the XML file with JSDL query
containing the resource query as a part of a job description.
java.lang.Exception
public static java.util.ArrayList<CommunicationAddress> getResourcesFromStructure(java.util.Hashtable<java.lang.String,java.lang.Object> __jsdl) throws java.lang.Exception
jsdl
- The structure containing the parsed and searchable contents
of the XML file with JSDL query.
java.lang.Exception
public static java.util.ArrayList<CommunicationAddress> getResourcesSorted(java.lang.String __query, ResourceDescriptorComparatorSerializable __comparator) throws java.lang.Exception
query
- The contents of the XML file with JSDL query
containing the resource query as a part of a job description.comparator
- The comparator to use when sorting the records.
java.lang.Exception
public static java.util.ArrayList<CommunicationAddress> getResourcesScored(java.lang.String __query) throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList<CommunicationAddress> getResourcesScoredWeighted(java.lang.String __query, java.util.Hashtable<java.lang.Integer,java.lang.Double> __weights) throws java.lang.Exception
java.lang.Exception
public static java.util.Hashtable<java.lang.String,java.lang.Object> getNodeResourceGLUE(CommunicationAddress __address) throws java.lang.Exception
address
- The node we request the resource details of the
ResourceMonitor service from.
java.lang.Exception
public static java.util.ArrayList<ResourceDescriptorRecord> getNodeResourceDescriptor(CommunicationAddress __address) throws java.lang.Exception
address
- The node we request the resource details of the
ResourceMonitor service from.
java.lang.Exception
public static java.util.ArrayList<CommunicationAddress> testCall() throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList<CommunicationAddress> getResourcesFromParsedCommand(ParsedCommand __command) throws java.lang.Exception
java.lang.Exception
public static java.util.Hashtable<java.lang.String,java.lang.String> getResInfo(CommunicationAddress __resource, java.security.cert.X509Certificate __userCtx) throws java.lang.Exception
resource
- The resource we are querying the information on.userCtx
- The user that queries the information
#getResourceMetrics
and
their respective values on the resource.
java.lang.Exception
public static java.util.ArrayList<java.lang.String> getResMetrics(CommunicationAddress __resource, java.security.cert.X509Certificate __userCtx) throws java.lang.Exception
resource
- The resource we are querying the information on.userCtx
- The user that queries the information
java.lang.Exception
public static java.util.ArrayList<ResourceDescriptorRecord> getResourceDescriptors(java.util.ArrayList<CommunicationAddress> __resources) throws java.lang.Exception
resources
- The list of communication addresses of the resources
that we would like to learn the resource properties of.
ResourceDescriptorRecord.communicationAddress
of each element to check the responses' address.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |