|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.griphyn.cPlanner.common.UserOptions
public class UserOptions
A Singleton wrapper around the PlannerOptions class to get hold of the options specified by the user to run Pegasus. This allows us to get hold of the options anywhere without us messing up with the constructors of classes.
PlannerOptions| Field Summary | |
|---|---|
private LogManager |
mLogger
The Logger object used to log the messages. |
private PlannerOptions |
mPlannerOpts
The object containing all the user options. |
private static UserOptions |
mPOptions
The object holding the Singleton instance. |
| Constructor Summary | |
|---|---|
private |
UserOptions(PlannerOptions opt)
The private constructor that initializes the user options. |
| Method Summary | |
|---|---|
boolean |
generateRandomDirectory()
Returns whether we want to create a Random Directory or not. |
Set |
getCacheFiles()
It returns the set of cache files. |
String |
getDaxFile()
Returns the dax file, that was generated by Chimera containing the description of the Abstract plan. |
Collection |
getExecutionSites()
Returns the list of execution pools where the user wants the data products to be computed. |
boolean |
getForceOption()
Returns true if the user had asked for the force option. |
static UserOptions |
getInstance()
The method used to invoke the singleton instance from the other classes. |
static UserOptions |
getInstance(PlannerOptions opt)
The method used to invoke the singleton instance the first time, from the CPlanner class. |
PlannerOptions |
getOptions()
Returns the options passed to the planner. |
String |
getOutputPool()
Returns output pool where the user wants the data products to be transferred to. |
String |
getRandomDirName()
Returns the name of the random directory, only if the generate Random Dir flag is set. |
String |
getSubmitFileDir()
Returns the directory where the user wants the submit files to be generated. |
void |
setExecutionSites(Collection sites)
Sets the execution sites. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static UserOptions mPOptions
private LogManager mLogger
private PlannerOptions mPlannerOpts
| Constructor Detail |
|---|
private UserOptions(PlannerOptions opt)
RuntimeException - in case of incorrect initialization.| Method Detail |
|---|
public static UserOptions getInstance(PlannerOptions opt)
opt - the object containing
the options to the Planner.public static UserOptions getInstance()
public String getDaxFile()
public String getOutputPool()
public PlannerOptions getOptions()
public String getSubmitFileDir()
public Collection getExecutionSites()
public void setExecutionSites(Collection sites)
sites - the Set containing the site names.public boolean generateRandomDirectory()
public Set getCacheFiles()
public String getRandomDirName()
public boolean getForceOption()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||