|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.client.Executable
edu.isi.pegasus.planner.client.RankDAX
public class RankDAX
A client that ranks the DAX'es corresponding to the request id.
| Field Summary | |
|---|---|
private PegasusBag |
mBag
The bag of objects that Pegasus requires. |
private String |
mBaseDir
The base directory where the ranked daxes are kept. |
private 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 String |
mRequestID
The request id to get the daxes. |
private 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 |
| Fields inherited from class edu.isi.pegasus.planner.client.Executable |
|---|
mLogger, mLogMsg, mProps, mVersion |
| Constructor Summary | |
|---|---|
RankDAX()
The default constructor. |
|
| Method Summary | |
|---|---|
void |
executeCommand()
Executes the command on the basis of the options specified. |
private List |
generateList(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(String[] opts)
Initialize the executable object |
void |
loadProperties()
Loads all the properties that would be needed by the Toolkit classes. |
static void |
main(String[] args)
The main program for the CPlanner. |
void |
parseCommandLineArguments(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(File dir)
Checks the destination location for existence, if it can be created, if it is writable etc. |
protected void |
writeOutRankings(File file,
Collection<Ranking> rankings)
Writes out the ranking to the file. |
| Methods inherited from class edu.isi.pegasus.planner.client.Executable |
|---|
convertException, convertException, getCommandLineOptions, getEnvValue, getGVDSVersion, 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 |
|---|
private String mBaseDir
private List mSites
private String mOutputFile
private String mRequestID
private PegasusBag mBag
private PlannerOptions mPlannerOptions
private int mTopNum
| Constructor Detail |
|---|
public RankDAX()
| Method Detail |
|---|
public void initialize(String[] opts)
Executable
initialize in class Executableopts - the command line argument passed to the executablepublic static void main(String[] args)
args - the main arguments passed to the planner.public void parseCommandLineArguments(String[] args)
args - the arguments passed by the user at command line.public void executeCommand()
args - the command line options.
protected void writeOutRankings(File file,
Collection<Ranking> rankings)
throws IOException
file - Stringrankings - Collection
IOException
protected static void sanityCheck(File dir)
throws IOException
dir - is the new base directory to optionally create.
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 List generateList(String str)
str - the comma separted String.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||