org.opensha.commons.hpc.grid
Class XMLPresetLoader

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

public class XMLPresetLoader
extends java.lang.Object


Field Summary
static java.lang.String DEFAULT_RP_SUBDIR
           
static java.lang.String DEFAULT_STORAGE_SUBDIR
           
static java.lang.String DEFAULT_SUBMIT_SUBDIR
           
static java.lang.String XML_METADATA_NAME
           
static java.lang.String XML_RP_ATT
           
static java.lang.String XML_STORAGE_ATT
           
static java.lang.String XML_SUBMIT_ATT
           
 
Constructor Summary
XMLPresetLoader(java.lang.String confDir)
          Creates an XMLPresetLoader assuming the default subdirectories of the given directory
XMLPresetLoader(java.lang.String rpDir, java.lang.String submitDir, java.lang.String storageDir)
          Creates an XMLPresetLoader with the specified directories
 
Method Summary
static XMLPresetLoader fromXMLMetadata(Element presetEl)
           
 GridResourcesList getGridResourcesList()
           
 java.util.ArrayList<ResourceProvider> getResourceProviders()
           
 java.util.ArrayList<StorageHost> getStorageHosts()
           
 java.util.ArrayList<SubmitHost> getSubmitHosts()
           
static void main(java.lang.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 java.lang.String DEFAULT_RP_SUBDIR
See Also:
Constant Field Values

DEFAULT_SUBMIT_SUBDIR

public static final java.lang.String DEFAULT_SUBMIT_SUBDIR
See Also:
Constant Field Values

DEFAULT_STORAGE_SUBDIR

public static final java.lang.String DEFAULT_STORAGE_SUBDIR
See Also:
Constant Field Values

XML_METADATA_NAME

public static final java.lang.String XML_METADATA_NAME
See Also:
Constant Field Values

XML_RP_ATT

public static final java.lang.String XML_RP_ATT
See Also:
Constant Field Values

XML_SUBMIT_ATT

public static final java.lang.String XML_SUBMIT_ATT
See Also:
Constant Field Values

XML_STORAGE_ATT

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

XMLPresetLoader

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

Parameters:
confDir -

XMLPresetLoader

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

Parameters:
rpDir -
submitDir -
storageDir -
Method Detail

getResourceProviders

public java.util.ArrayList<ResourceProvider> getResourceProviders()

getSubmitHosts

public java.util.ArrayList<SubmitHost> getSubmitHosts()

getStorageHosts

public java.util.ArrayList<StorageHost> getStorageHosts()

getGridResourcesList

public GridResourcesList getGridResourcesList()

fromXMLMetadata

public static XMLPresetLoader fromXMLMetadata(Element presetEl)

main

public static void main(java.lang.String[] args)