|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.cas.resource.system.XmlRpcResourceManagerClient
public class XmlRpcResourceManagerClient
The XML RPC based resource manager client.
| Constructor Summary | |
|---|---|
XmlRpcResourceManagerClient(URL url)
Constructs a new XmlRpcResourceManagerClient with the given url. |
|
| Method Summary | |
|---|---|
void |
addNode(ResourceNode node)
Adds a node |
void |
addNodeToQueue(String nodeId,
String queueName)
Addes the node with given id to the queue with the given name |
void |
addQueue(String queueName)
Creates a queue with the given name |
String |
getExecutionNode(String jobId)
|
Job |
getJobInfo(String jobId)
|
int |
getJobQueueCapacity()
Gets the max number of Jobs allowed in JobQueue |
int |
getJobQueueSize()
Gets the number of Jobs in JobQueue |
ResourceNode |
getNodeById(String nodeId)
|
String |
getNodeLoad(String nodeId)
Report on the load of the requested node |
List |
getNodes()
|
List<String> |
getNodesInQueue(String queueName)
Gets a list of ids of the nodes in the given queue |
List<String> |
getQueues()
Gets a list of currently supported queue names |
List<String> |
getQueuesWithNode(String nodeId)
Gets a list of queues which contain the node with the given nodeId |
URL |
getResMgrUrl()
|
boolean |
isAlive()
|
boolean |
isJobComplete(String jobId)
|
boolean |
killJob(String jobId)
|
static void |
main(String[] args)
|
void |
removeNode(String nodeId)
Removes the node with the given id |
void |
removeNodeFromQueue(String nodeId,
String queueName)
Remove the node with the given id from the queue with the given name |
void |
removeQueue(String queueName)
Removes the queue with the given name |
void |
setNodeCapacity(String nodeId,
int capacity)
|
void |
setResMgrUrl(URL resMgrUrl)
|
String |
submitJob(Job exec,
JobInput in)
|
boolean |
submitJob(Job exec,
JobInput in,
URL hostUrl)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlRpcResourceManagerClient(URL url)
Constructs a new XmlRpcResourceManagerClient with the given
url.
url - The url pointer to the xml rpc resource manager service.| Method Detail |
|---|
public static void main(String[] args)
public boolean isJobComplete(String jobId)
throws JobRepositoryException
JobRepositoryException
public Job getJobInfo(String jobId)
throws JobRepositoryException
JobRepositoryExceptionpublic boolean isAlive()
public int getJobQueueSize()
throws JobRepositoryException
JobRepositoryException - On Any Exception
public int getJobQueueCapacity()
throws JobRepositoryException
JobRepositoryException - On Any Exceptionpublic boolean killJob(String jobId)
public String getExecutionNode(String jobId)
public String submitJob(Job exec,
JobInput in)
throws JobExecutionException
JobExecutionException
public boolean submitJob(Job exec,
JobInput in,
URL hostUrl)
throws JobExecutionException
JobExecutionException
public List getNodes()
throws MonitorException
MonitorException
public ResourceNode getNodeById(String nodeId)
throws MonitorException
MonitorExceptionpublic URL getResMgrUrl()
public void setResMgrUrl(URL resMgrUrl)
resMgrUrl - the resMgrUrl to set
public void addQueue(String queueName)
throws QueueManagerException
queueName - The name of the queue to be created
QueueManagerException - on any error
public void removeQueue(String queueName)
throws QueueManagerException
queueName - The name of the queue to be removed
QueueManagerException - on any error
public void addNode(ResourceNode node)
throws MonitorException
node - The node to be added
MonitorException - on any error
public void removeNode(String nodeId)
throws MonitorException
nodeId - The id of the node to be removed
MonitorException - on any error
public void setNodeCapacity(String nodeId,
int capacity)
throws MonitorException
MonitorException
public void addNodeToQueue(String nodeId,
String queueName)
throws QueueManagerException
nodeId - The id of the node to be added to the given queueNamequeueName - The name of the queue to add the given node
QueueManagerException - on any error
public void removeNodeFromQueue(String nodeId,
String queueName)
throws QueueManagerException
nodeId - The id of the node to be remove from the given queueNamequeueName - The name of the queue from which to remove the given node
QueueManagerException - on any error
public List<String> getQueues()
throws QueueManagerException
QueueManagerException - on any error
public List<String> getNodesInQueue(String queueName)
throws QueueManagerException
queueName - The name of the queue to get node ids from
QueueManagerException - on any error
public List<String> getQueuesWithNode(String nodeId)
throws QueueManagerException
nodeId - The id of the node to get queues it belongs to
QueueManagerException - on any error
public String getNodeLoad(String nodeId)
throws MonitorException
nodeId - The id of the node to be polled
MonitorException - on any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||