org.gridbus.broker.xgrl
Class ComputeProcessor

java.lang.Object
  extended by 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(org.dom4j.Element resourceElement, java.lang.Object config)
          Sets up the ComputeProcessor class with the element object passed in
ComputeProcessor(java.lang.Object config)
           
 
Method Summary
 java.lang.Object extractCompute()
          Returns an Object representing a ComputeServer.
 ComputeServer parseLocal(org.dom4j.Element resourceElement)
          Returns a ComputeServer representing the jobmanager on the localhost
 ComputeServer parseRemote(org.dom4j.Element resourceElement)
          Returns a ComputeServer
 ComputeServer processAlchemi(org.dom4j.Element resourceElement)
          Returns a AlchemiComputeServer (representing a Alchemi manager)
 ComputeServer processCondor(org.dom4j.Element resourceElement)
           
 ComputeServer processFork(org.dom4j.Element resourceElement)
           
 ComputeServer processGlobus(org.dom4j.Element resourceElement)
          Returns a collection containing a GlobusComputeServer
 ComputeServer processPbs(org.dom4j.Element resourceElement)
           
 ComputeServer processSge(org.dom4j.Element resourceElement)
           
 UnicoreGateway processUnicore(org.dom4j.Element resourceElement)
          Returns an object representing the Unicore gateway
 ComputeServer processXgrid(org.dom4j.Element resourceElement)
          Returns a an XgridComputeServer
 void setCredentialList(java.util.Hashtable credentials)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputeProcessor

public ComputeProcessor(java.lang.Object config)
Parameters:
config -

ComputeProcessor

public ComputeProcessor(org.dom4j.Element resourceElement,
                        java.lang.Object config)
Sets up the ComputeProcessor class with the element object passed in

Parameters:
resourceElement -
config - - configuration properties for the broker resources
Method Detail

setCredentialList

public void setCredentialList(java.util.Hashtable credentials)
Parameters:
credentials -

extractCompute

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

Returns:

parseLocal

public ComputeServer parseLocal(org.dom4j.Element resourceElement)
Returns a ComputeServer representing the jobmanager on the localhost

Parameters:
resourceElement -
Returns:

parseRemote

public ComputeServer parseRemote(org.dom4j.Element resourceElement)
Returns a ComputeServer

Parameters:
resourceElement -
Returns:

processGlobus

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

Parameters:
resourceElement -
Returns:
Throws:
GridBrokerException

processPbs

public ComputeServer processPbs(org.dom4j.Element resourceElement)
                         throws GridBrokerException
Parameters:
resourceElement -
Returns:
Throws:
GridBrokerException

processSge

public ComputeServer processSge(org.dom4j.Element resourceElement)
                         throws GridBrokerException
Parameters:
resourceElement -
Returns:
Throws:
GridBrokerException

processFork

public ComputeServer processFork(org.dom4j.Element resourceElement)
                          throws GridBrokerException
Parameters:
resourceElement -
Returns:
Throws:
GridBrokerException

processCondor

public ComputeServer processCondor(org.dom4j.Element resourceElement)
                            throws GridBrokerException
Parameters:
resourceElement -
Returns:
Throws:
GridBrokerException

processUnicore

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

Parameters:
resourceElement -
Returns:
Throws:
GridBrokerException

processAlchemi

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

Parameters:
resourceElement -
Returns:
Throws:
GridBrokerException

processXgrid

public ComputeServer processXgrid(org.dom4j.Element resourceElement)
                           throws GridBrokerException
Returns a an XgridComputeServer

Parameters:
resourceElement -
Returns:
Throws:
GridBrokerException