org.gridbus.broker.xgrl
Class ComputeProcessor

java.lang.Object
  |
  +--org.gridbus.broker.xgrl.ComputeProcessor

public class ComputeProcessor
extends java.lang.Object

This class has methods to parse resources from the xml file which specifies the resource-description

Author:
Krishna Nadiminti (kna@cs.mu.oz.au)

Constructor Summary
ComputeProcessor()
          Default constructor
ComputeProcessor(org.dom4j.Element resourceElement)
          Sets up the ComputeProcessor class with the element object passed in
 
Method Summary
 java.lang.Object extractCompute()
          Returns an Object representing a ComputeServer.
 ComputeServer processAlchemi(org.dom4j.Element alchemiElement)
          Returns a AlchemiComputeServer (representing a Alchemi manager)
 ComputeServer processGlobus(org.dom4j.Element globusElement)
          Returns a collection containing a GlobusComputeServer
 ComputeServer processLocal(org.dom4j.Element computeElement)
          Returns a ComputeServer representing the jobmanager on the localhost
 java.util.Collection processQueue(org.dom4j.Element middlewareElement)
          Returns a collection of queues.
 ComputeServer processRemote(org.dom4j.Element computeElement)
          Returns a ComputeServer
 UnicoreGateway processUnicore(org.dom4j.Element unicoreElement)
          Returns an object representing the Unicore gateway
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputeProcessor

public ComputeProcessor()
Default constructor


ComputeProcessor

public ComputeProcessor(org.dom4j.Element resourceElement)
Sets up the ComputeProcessor class with the element object passed in

Parameters:
resourceElement -
Method Detail

extractCompute

public java.lang.Object extractCompute()
Returns an Object representing a ComputeServer. (In case of Unicore, the return type is a UnicoreGateway object.)

Returns:

processLocal

public ComputeServer processLocal(org.dom4j.Element computeElement)
Returns a ComputeServer representing the jobmanager on the localhost

Parameters:
computeElement -
Returns:

processRemote

public ComputeServer processRemote(org.dom4j.Element computeElement)
Returns a ComputeServer

Parameters:
computeElement -
Returns:

processGlobus

public ComputeServer processGlobus(org.dom4j.Element globusElement)
                            throws GridBrokerException
Returns a collection containing a GlobusComputeServer

Parameters:
globusElement -
Returns:
Throws:
GridBrokerException

processQueue

public java.util.Collection processQueue(org.dom4j.Element middlewareElement)
Returns a collection of queues. If no queues are found the collection is null.

Parameters:
middlewareElement -
Returns:

processUnicore

public UnicoreGateway processUnicore(org.dom4j.Element unicoreElement)
                              throws GridBrokerException
Returns an object representing the Unicore gateway

Parameters:
unicoreElement -
Returns:
Throws:
GridBrokerException

processAlchemi

public ComputeServer processAlchemi(org.dom4j.Element alchemiElement)
                             throws GridBrokerException
Returns a AlchemiComputeServer (representing a Alchemi manager)

Parameters:
alchemiElement -
Returns:
Throws:
GridBrokerException