org.gridbus.broker.xgrl
Class XGRLReader

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

public class XGRLReader
extends java.lang.Object

This is the main class that will read any XML file. AbstractDemo is a class that was provided by the dom4j package. Saves a whole lot of trouble.

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

Constructor Summary
XGRLReader()
           
 
Method Summary
static java.util.Hashtable getCredentials()
           
static java.util.Vector getServers()
           
static java.util.Vector getServices()
           
static java.util.Vector getStorageServers()
           
static java.lang.String getXmlSource()
           
static void parseXGRL(java.lang.String resourceDescFileName)
          Loads a document from a file specified, and parses it to a collection of jobs and requirement objects.
static void setCredentials(java.util.Hashtable credentials)
           
static void setServers(java.util.Vector servers)
           
static void setServices(java.util.Vector services)
           
static void setSourceFile(java.lang.String xmlSource)
          Sets the source file location for this substitute command.
static void setStorageServers(java.util.Vector storageServers)
           
static void setXmlSource(java.lang.String xmlSource)
           
static boolean validateXGRL()
          Validates an XGRL document
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XGRLReader

public XGRLReader()
Method Detail

setSourceFile

public static void setSourceFile(java.lang.String xmlSource)
Sets the source file location for this substitute command.

Parameters:
xmlSource -

parseXGRL

public static void parseXGRL(java.lang.String resourceDescFileName)
                      throws java.net.MalformedURLException,
                             org.dom4j.DocumentException
Loads a document from a file specified, and parses it to a collection of jobs and requirement objects.

Parameters:
resourceDescFileName -
Throws:
java.net.MalformedURLException
org.dom4j.DocumentException

validateXGRL

public static boolean validateXGRL()
Validates an XGRL document

Returns:
true if the document is valid

getCredentials

public static java.util.Hashtable getCredentials()
Returns:
Returns the credentials.

setCredentials

public static void setCredentials(java.util.Hashtable credentials)
Parameters:
credentials - The credentials to set.

getServers

public static java.util.Vector getServers()
Returns:
Returns the servers.

setServers

public static void setServers(java.util.Vector servers)
Parameters:
servers - The servers to set.

getServices

public static java.util.Vector getServices()
Returns:
Returns the services.

setServices

public static void setServices(java.util.Vector services)
Parameters:
services - The services to set.

getStorageServers

public static java.util.Vector getStorageServers()
Returns:
Returns the storageServers.

setStorageServers

public static void setStorageServers(java.util.Vector storageServers)
Parameters:
storageServers - The storageServers to set.

getXmlSource

public static java.lang.String getXmlSource()
Returns:
Returns the xmlSource.

setXmlSource

public static void setXmlSource(java.lang.String xmlSource)
Parameters:
xmlSource - The xmlSource to set.