edu.isi.pegasus.planner.common
public class UserOptions extends Object
org.griphyn.cPlanner.classes.PlannerOptions
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier | Constructor and Description |
---|---|
private |
UserOptions(PlannerOptions opt)
The private constructor that initializes the user options.
|
Modifier and Type | Method and Description |
---|---|
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.
|
private static UserOptions mPOptions
private LogManager mLogger
private PlannerOptions mPlannerOpts
private UserOptions(PlannerOptions opt)
RuntimeException
- in case of incorrect initialization.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()