org.gridbus.broker.xgrl
Class StorageProcessor

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

public class StorageProcessor
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
StorageProcessor()
          Default constructor
StorageProcessor(org.dom4j.Element resourceElement)
          Sets up the StorageProcessor class with the element object passed in
 
Method Summary
 StorageServer extractStorage()
          Returns a DataHost
 StorageServer processDatabase(org.dom4j.Element storageServerElement)
          Returns a StorageServer that contains a database
 StorageServer processGeneric(org.dom4j.Element storageServerElement)
          Returns a StorageServer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageProcessor

public StorageProcessor()
Default constructor


StorageProcessor

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

Parameters:
resourceElement -
Method Detail

extractStorage

public StorageServer extractStorage()
Returns a DataHost

Returns:

processGeneric

public StorageServer processGeneric(org.dom4j.Element storageServerElement)
                             throws GridBrokerException
Returns a StorageServer

Parameters:
storageServerElement -
Returns:
Throws:
GridBrokerException

processDatabase

public StorageServer processDatabase(org.dom4j.Element storageServerElement)
                              throws GridBrokerException
Returns a StorageServer that contains a database

Parameters:
storageServerElement -
Returns:
Throws:
GridBrokerException