edu.isi.pegasus.planner.client
Class PegasusGetSites

java.lang.Object
  extended by edu.isi.pegasus.planner.client.Executable
      extended by 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: 4507 $
Author:
Atul Kumar, Karan Vahi

Field Summary
private  SiteCatalog mCatalog
           
private  String mGrid
           
private  String mPropertiesFilename
           
private  String mSCFile
           
private  String mSource
          The default source to query for generating a site catalog.
private  String mVO
           
 
Fields inherited from class edu.isi.pegasus.planner.client.Executable
mLogger, mLogMsg, mProps, mVersion
 
Constructor Summary
PegasusGetSites()
          The default constructor.
 
Method Summary
 void executeCommand()
          Executes the command on the basis of the command line options passed.
 gnu.getopt.LongOpt[] generateValidOptions()
          Generates valid LongOpts.
protected  String getPropertyKey(String source, String key)
          Returns the full name of the property key with the appropriate prefix
 void intialize(String[] opts)
          Initialize the PegasusGetSites object
 void loadProperties()
          An empty implementation.
static void main(String[] args)
          The main program
 void parseCommandLineArguments(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.
 
Methods inherited from class edu.isi.pegasus.planner.client.Executable
convertException, convertException, getCommandLineOptions, getEnvValue, getGVDSVersion, initialize, initialize, log, lookupConfProperty, sanityCheckOnProperties, setupLogging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mVO

private String mVO

mGrid

private String mGrid

mSource

private String mSource
The default source to query for generating a site catalog.


mCatalog

private SiteCatalog mCatalog

mSCFile

private String mSCFile

mPropertiesFilename

private String mPropertiesFilename
Constructor Detail

PegasusGetSites

public PegasusGetSites()
The default constructor.

Method Detail

intialize

public void intialize(String[] opts)
Initialize the PegasusGetSites object

Parameters:
opts - the command line argument passed to the PegasusGetSites

main

public static void main(String[] args)
The main program

Parameters:
args -

loadProperties

public void loadProperties()
An empty implementation.

Specified by:
loadProperties in class Executable

printLongVersion

public void printLongVersion()
Prints out the long help.

Specified by:
printLongVersion in class Executable

printShortVersion

public void printShortVersion()
The short help version.

Specified by:
printShortVersion in class Executable

executeCommand

public void executeCommand()
Executes the command on the basis of the command line options passed.

Parameters:
args -

getPropertyKey

protected String getPropertyKey(String source,
                                String key)
Returns the full name of the property key with the appropriate prefix

Parameters:
source - the source i.e type of site catalog
key - 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(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:
generateValidOptions in class Executable
Returns:
LongOpt[]


Copyright © 2011 The University of Southern California. All Rights Reserved.