org.opensha.commons.hpc.grid
Class ResourceProvider

java.lang.Object
  extended by org.opensha.commons.hpc.grid.GridResource
      extended by org.opensha.commons.hpc.grid.ResourceProvider
All Implemented Interfaces:
Serializable, XMLSaveable

public class ResourceProvider
extends GridResource

See Also:
Serialized Form

Field Summary
static String XML_METADATA_NAME
           
 
Constructor Summary
ResourceProvider(String name, String hostName, String batchScheduler, String forkScheduler, String javaPath, String storagePath, String requirements, String gridFTPHost, String universe, GlobusRSL globusRSL)
           
 
Method Summary
static ResourceProvider ABE_GLIDE_INS()
          Preset for running on ABE with Glide-Ins as tera3d
static ResourceProvider ABE_NO_GLIDE_INS()
          Preset for running on ABE without Glide-Ins as tera3d
 void addSuggestedQueue(String queue)
           
static ResourceProvider DYNAMIC()
          Preset for running on Dynamic as kmilner
static ResourceProvider fromXMLMetadata(Element resourceProviderElem)
           
 String getBatchScheduler()
           
 String getForkScheduler()
           
 GlobusRSL getGlobusRSL()
           
 String getGridFTPHost()
           
 String getHostName()
           
 String getJavaPath()
           
 String getName()
           
 String getRequirements()
           
 String getStoragePath()
           
 ArrayList<String> getSuggestedQueues()
           
 String getUniverse()
           
static ResourceProvider HPC_SCEC_QUEUE()
           
static ResourceProvider HPC()
          Preset for running on HPC as tara3d
 boolean isGridUniverse()
           
static ResourceProvider ORNL()
          Preset for running on ORNL as kmilner
 void setName(String name)
           
static ResourceProvider STEELE_GLIDE_INS()
          Preset for running on STEELE with Glide-Ins as kmilner
static ResourceProvider STEELE_NO_GLIDE_INS()
          Preset for running on STEELE without Glide-Ins as kmilner
 String toString()
           
 Element toXMLMetadata(Element root)
           
 
Methods inherited from class org.opensha.commons.hpc.grid.GridResource
main, writeToFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XML_METADATA_NAME

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

ResourceProvider

public ResourceProvider(String name,
                        String hostName,
                        String batchScheduler,
                        String forkScheduler,
                        String javaPath,
                        String storagePath,
                        String requirements,
                        String gridFTPHost,
                        String universe,
                        GlobusRSL globusRSL)
Method Detail

HPC

public static final ResourceProvider HPC()
Preset for running on HPC as tara3d

Returns:

HPC_SCEC_QUEUE

public static final ResourceProvider HPC_SCEC_QUEUE()

ABE_GLIDE_INS

public static final ResourceProvider ABE_GLIDE_INS()
Preset for running on ABE with Glide-Ins as tera3d

Returns:

ABE_NO_GLIDE_INS

public static final ResourceProvider ABE_NO_GLIDE_INS()
Preset for running on ABE without Glide-Ins as tera3d

Returns:

DYNAMIC

public static final ResourceProvider DYNAMIC()
Preset for running on Dynamic as kmilner

Returns:

ORNL

public static final ResourceProvider ORNL()
Preset for running on ORNL as kmilner

Returns:

STEELE_GLIDE_INS

public static final ResourceProvider STEELE_GLIDE_INS()
Preset for running on STEELE with Glide-Ins as kmilner

Returns:

STEELE_NO_GLIDE_INS

public static final ResourceProvider STEELE_NO_GLIDE_INS()
Preset for running on STEELE without Glide-Ins as kmilner

Returns:

toXMLMetadata

public Element toXMLMetadata(Element root)

fromXMLMetadata

public static ResourceProvider fromXMLMetadata(Element resourceProviderElem)

toString

public String toString()
Overrides:
toString in class Object

getName

public String getName()
Specified by:
getName in class GridResource

setName

public void setName(String name)

getHostName

public String getHostName()

getBatchScheduler

public String getBatchScheduler()

getForkScheduler

public String getForkScheduler()

getJavaPath

public String getJavaPath()

getStoragePath

public String getStoragePath()

getRequirements

public String getRequirements()

getGridFTPHost

public String getGridFTPHost()

getUniverse

public String getUniverse()

getGlobusRSL

public GlobusRSL getGlobusRSL()

getSuggestedQueues

public ArrayList<String> getSuggestedQueues()

addSuggestedQueue

public void addSuggestedQueue(String queue)

isGridUniverse

public boolean isGridUniverse()