public class RankDAX extends Executable
| Modifier and Type | Field and Description |
|---|---|
private PegasusBag |
mBag
The bag of objects that Pegasus requires.
|
private java.lang.String |
mBaseDir
The base directory where the ranked daxes are kept.
|
private java.lang.String |
mOutputFile
The output file that lists the daxes in sorted order.
|
private PlannerOptions |
mPlannerOptions
The options to be passed ahead to pegasus plan.
|
private java.lang.String |
mRequestID
The request id to get the daxes.
|
private java.util.List |
mSites
The list of grid sites where the daxes can run.
|
private int |
mTopNum
The top n workflows to execute and put in the rankings file
|
mLogger, mLogMsg, mProps, mVersion| Constructor and Description |
|---|
RankDAX()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
executeCommand()
Executes the command on the basis of the options specified.
|
private java.util.List |
generateList(java.lang.String str)
Generates a List by parsing a comma separated string.
|
gnu.getopt.LongOpt[] |
generateValidOptions()
It generates the LongOpt which contain the valid options that the command
will accept.
|
void |
initialize(java.lang.String[] opts)
Initialize the executable object
|
void |
loadProperties()
Loads all the properties that would be needed by the Toolkit classes.
|
static void |
main(java.lang.String[] args)
The main program for the CPlanner.
|
void |
parseCommandLineArguments(java.lang.String[] args)
Parses the command line arguments using GetOpt and sets the class
member variables.
|
void |
printLongVersion()
This method is used to print the long version of the command.
|
void |
printShortHelp()
This is used to print the short version of the command.
|
void |
printShortVersion()
This is used to print the short version of the command.
|
protected static void |
sanityCheck(java.io.File dir)
Checks the destination location for existence, if it can
be created, if it is writable etc.
|
protected void |
writeOutRankings(java.io.File file,
java.util.Collection<Ranking> rankings)
Writes out the ranking to the file.
|
convertException, convertException, getCommandLineOptions, getEnvValue, getGVDSVersion, initialize, log, lookupConfProperty, sanityCheckOnProperties, setupLoggingprivate java.lang.String mBaseDir
private java.util.List mSites
private java.lang.String mOutputFile
private java.lang.String mRequestID
private PegasusBag mBag
private PlannerOptions mPlannerOptions
private int mTopNum
public void initialize(java.lang.String[] opts)
Executableinitialize in class Executableopts - the command line argument passed to the executablepublic static void main(java.lang.String[] args)
args - the main arguments passed to the planner.public void parseCommandLineArguments(java.lang.String[] args)
args - the arguments passed by the user at command line.public void executeCommand()
args - the command line options.protected void writeOutRankings(java.io.File file,
java.util.Collection<Ranking> rankings)
throws java.io.IOException
file - Stringrankings - Collectionjava.io.IOExceptionprotected static void sanityCheck(java.io.File dir)
throws java.io.IOException
dir - is the new base directory to optionally create.java.io.IOException - in case of error while writing out files.public void loadProperties()
loadProperties in class Executablepublic void printLongVersion()
printLongVersion in class Executablepublic void printShortVersion()
printShortVersion in class Executablepublic void printShortHelp()
public gnu.getopt.LongOpt[] generateValidOptions()
generateValidOptions in class ExecutableLongOpt objects , corresponding to the valid
optionsprivate java.util.List generateList(java.lang.String str)
str - the comma separted String.