Package edu.isi.pegasus.planner.client
Class PegasusGetSites
- java.lang.Object
-
- edu.isi.pegasus.planner.client.Executable
-
- edu.isi.pegasus.planner.client.PegasusGetSites
-
public class PegasusGetSites extends Executable
The client that replaces the perl based pegasus-get-sites. It generates a Site Catalog by querying VORS.- Version:
- $Revision$
- Author:
- Atul Kumar, Karan Vahi
-
-
Field Summary
Fields Modifier and Type Field Description private SiteCatalogmCatalogprivate java.lang.StringmGridprivate java.lang.StringmPropertiesFilenameprivate java.lang.StringmSCFileprivate java.lang.StringmSourceThe default source to query for generating a site catalog.private java.lang.StringmVO-
Fields inherited from class edu.isi.pegasus.planner.client.Executable
mLogger, mLogMsg, mProps, mVersion
-
-
Constructor Summary
Constructors Constructor Description PegasusGetSites()The default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteCommand()Executes the command on the basis of the command line options passed.gnu.getopt.LongOpt[]generateValidOptions()Generates valid LongOpts.protected java.lang.StringgetPropertyKey(java.lang.String source, java.lang.String key)Returns the full name of the property key with the appropriate prefixvoidintialize(java.lang.String[] opts)Initialize the PegasusGetSites objectvoidloadProperties()An empty implementation.static voidmain(java.lang.String[] args)The main programvoidparseCommandLineArguments(java.lang.String[] args)Parses the command line arguments using GetOpt and sets the class member variables.voidprintLongVersion()Prints out the long help.voidprintShortVersion()The short help version.protected voidsetupLogging()Sets up the logging options for this class.-
Methods inherited from class edu.isi.pegasus.planner.client.Executable
convertException, convertException, getCommandLineOptions, getEnvValue, getGVDSVersion, initialize, initialize, log, lookupConfProperty, sanityCheckOnProperties, setupLogging
-
-
-
-
Field Detail
-
mVO
private java.lang.String mVO
-
mGrid
private java.lang.String mGrid
-
mSource
private java.lang.String mSource
The default source to query for generating a site catalog.
-
mCatalog
private SiteCatalog mCatalog
-
mSCFile
private java.lang.String mSCFile
-
mPropertiesFilename
private java.lang.String mPropertiesFilename
-
-
Method Detail
-
intialize
public void intialize(java.lang.String[] opts)
Initialize the PegasusGetSites object- Parameters:
opts- the command line argument passed to the PegasusGetSites
-
main
public static void main(java.lang.String[] args)
The main program- Parameters:
args-
-
loadProperties
public void loadProperties()
An empty implementation.- Specified by:
loadPropertiesin classExecutable
-
printLongVersion
public void printLongVersion()
Prints out the long help.- Specified by:
printLongVersionin classExecutable
-
printShortVersion
public void printShortVersion()
The short help version.- Specified by:
printShortVersionin classExecutable
-
executeCommand
public void executeCommand()
Executes the command on the basis of the command line options passed.- Parameters:
args-
-
getPropertyKey
protected java.lang.String getPropertyKey(java.lang.String source, java.lang.String key)Returns the full name of the property key with the appropriate prefix- Parameters:
source- the source i.e type of site catalogkey- the basename of the key- Returns:
- the property key.
-
setupLogging
protected void setupLogging()
Sets up the logging options for this class. Looking at the properties file, sets up the appropriate writers for output and stderr.
-
parseCommandLineArguments
public void parseCommandLineArguments(java.lang.String[] args)
Parses the command line arguments using GetOpt and sets the class member variables.- Parameters:
args- the arguments passed by the user at command line.
-
generateValidOptions
public gnu.getopt.LongOpt[] generateValidOptions()
Generates valid LongOpts.- Specified by:
generateValidOptionsin classExecutable- Returns:
- LongOpt[]
-
-