org.opensha.commons.hpc.grid
Class XMLPresetLoader

java.lang.Object
  extended by org.opensha.commons.hpc.grid.XMLPresetLoader

public class XMLPresetLoader
extends Object


Field Summary
static String DEFAULT_RP_SUBDIR
           
static String DEFAULT_STORAGE_SUBDIR
           
static String DEFAULT_SUBMIT_SUBDIR
           
static String XML_METADATA_NAME
           
static String XML_RP_ATT
           
static String XML_STORAGE_ATT
           
static String XML_SUBMIT_ATT
           
 
Constructor Summary
XMLPresetLoader(String confDir)
          Creates an XMLPresetLoader assuming the default subdirectories of the given directory
XMLPresetLoader(String rpDir, String submitDir, String storageDir)
          Creates an XMLPresetLoader with the specified directories
 
Method Summary
static XMLPresetLoader fromXMLMetadata(Element presetEl)
           
 GridResourcesList getGridResourcesList()
           
 ArrayList<ResourceProvider> getResourceProviders()
           
 ArrayList<StorageHost> getStorageHosts()
           
 ArrayList<SubmitHost> getSubmitHosts()
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_RP_SUBDIR

public static final String DEFAULT_RP_SUBDIR
See Also:
Constant Field Values

DEFAULT_SUBMIT_SUBDIR

public static final String DEFAULT_SUBMIT_SUBDIR
See Also:
Constant Field Values

DEFAULT_STORAGE_SUBDIR

public static final String DEFAULT_STORAGE_SUBDIR
See Also:
Constant Field Values

XML_METADATA_NAME

public static final String XML_METADATA_NAME
See Also:
Constant Field Values

XML_RP_ATT

public static final String XML_RP_ATT
See Also:
Constant Field Values

XML_SUBMIT_ATT

public static final String XML_SUBMIT_ATT
See Also:
Constant Field Values

XML_STORAGE_ATT

public static final String XML_STORAGE_ATT
See Also:
Constant Field Values
Constructor Detail

XMLPresetLoader

public XMLPresetLoader(String confDir)
Creates an XMLPresetLoader assuming the default subdirectories of the given directory

Parameters:
confDir -

XMLPresetLoader

public XMLPresetLoader(String rpDir,
                       String submitDir,
                       String storageDir)
Creates an XMLPresetLoader with the specified directories

Parameters:
rpDir -
submitDir -
storageDir -
Method Detail

getResourceProviders

public ArrayList<ResourceProvider> getResourceProviders()

getSubmitHosts

public ArrayList<SubmitHost> getSubmitHosts()

getStorageHosts

public ArrayList<StorageHost> getStorageHosts()

getGridResourcesList

public GridResourcesList getGridResourcesList()

fromXMLMetadata

public static XMLPresetLoader fromXMLMetadata(Element presetEl)

main

public static void main(String[] args)