public class PegasusGetSites extends Executable
Modifier and Type | Field and Description |
---|---|
private SiteCatalog |
mCatalog |
private java.lang.String |
mGrid |
private java.lang.String |
mPropertiesFilename |
private java.lang.String |
mSCFile |
private java.lang.String |
mSource
The default source to query for generating a site catalog.
|
private java.lang.String |
mVO |
mLogger, mLogMsg, mProps, mVersion
Constructor and Description |
---|
PegasusGetSites()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
executeCommand()
Executes the command on the basis of the command line options passed.
|
gnu.getopt.LongOpt[] |
generateValidOptions()
Generates valid LongOpts.
|
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
|
void |
intialize(java.lang.String[] opts)
Initialize the PegasusGetSites object
|
void |
loadProperties()
An empty implementation.
|
static void |
main(java.lang.String[] args)
The main program
|
void |
parseCommandLineArguments(java.lang.String[] args)
Parses the command line arguments using GetOpt and sets the class
member variables.
|
void |
printLongVersion()
Prints out the long help.
|
void |
printShortVersion()
The short help version.
|
protected void |
setupLogging()
Sets up the logging options for this class.
|
convertException, convertException, getCommandLineOptions, getEnvValue, getGVDSVersion, initialize, initialize, log, lookupConfProperty, sanityCheckOnProperties, setupLogging
private java.lang.String mVO
private java.lang.String mGrid
private java.lang.String mSource
private SiteCatalog mCatalog
private java.lang.String mSCFile
private java.lang.String mPropertiesFilename
public void intialize(java.lang.String[] opts)
opts
- the command line argument passed to the PegasusGetSitespublic static void main(java.lang.String[] args)
args
- public void loadProperties()
loadProperties
in class Executable
public void printLongVersion()
printLongVersion
in class Executable
public void printShortVersion()
printShortVersion
in class Executable
public void executeCommand()
args
- protected java.lang.String getPropertyKey(java.lang.String source, java.lang.String key)
source
- the source i.e type of site catalogkey
- the basename of the keyprotected void setupLogging()
public void parseCommandLineArguments(java.lang.String[] args)
args
- the arguments passed by the user at command line.public gnu.getopt.LongOpt[] generateValidOptions()
generateValidOptions
in class Executable