|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.griphyn.cPlanner.engine.Engine
org.griphyn.cPlanner.engine.CreateDirectory
public abstract class CreateDirectory
This common interface that identifies the basic functions that need to be implemented to introduce random directories in which the jobs are executed on the remote execution pools. The implementing classes are invoked when the user gives the --randomdir option. The implementing classes determine where in the graph the nodes creating the random directories are placed and their dependencies with the rest of the nodes in the graph.
| Field Summary | |
|---|---|
static String |
CREATE_DIR_SUFFIX
Constant suffix for the names of the create directory nodes. |
static String |
DERIVATION_NAME
The logical name of the transformation that creates directories on the remote execution pools. |
static String |
DERIVATION_NAMESPACE
The derivation namespace for the create dir jobs. |
static String |
DERIVATION_VERSION
The version number for the derivations for create dir jobs. |
protected ADag |
mCurrentDag
It is a reference to the Concrete Dag so far. |
protected LogManager |
mLogger
The handle to the logging object, that is used to log the messages. |
protected UserOptions |
mUserOpts
The handle to the options specified by the user at runtime. |
static String |
PACKAGE_NAME
The name of the package in which all the implementing classes are. |
static String |
TRANSFORMATION_NAME
The logical name of the transformation that creates directories on the remote execution pools. |
static String |
TRANSFORMATION_NAMESPACE
The transformation namespace for the create dir jobs. |
static String |
TRANSFORMATION_VERSION
The version number for the derivations for create dir jobs. |
| Fields inherited from class org.griphyn.cPlanner.engine.Engine |
|---|
mLogMsg, mOutputPool, mPoolClass, mPoolFile, mPoolHandle, mPOptions, mProps, mRLIUrl, mTCFile, mTCHandle, mTCMode, REGISTRATION_UNIVERSE, TRANSFER_UNIVERSE |
| Constructor Summary | |
|---|---|
protected |
CreateDirectory(ADag concDag,
PegasusProperties properties)
Default constructor. |
protected |
CreateDirectory(PegasusProperties properties)
A pratically nothing constructor ! |
| Method Summary | |
|---|---|
abstract void |
addCreateDirectoryNodes()
It modifies the concrete dag passed in the constructor and adds the create random directory nodes to it at the root level. |
private TransformationCatalogEntry |
defaultTCEntry(String site)
Returns a default TC entry to be used in case entry is not found in the transformation catalog. |
static String |
getCompleteTranformationName()
A convenience method to return the complete transformation name being used to construct jobs in this class. |
protected String |
getCreateDirJobName(String pool)
It returns the name of the create directory job, that is to be assigned. |
protected Set |
getCreateDirSites()
Retrieves the sites for which the create dir jobs need to be created. |
static CreateDirectory |
loadCreateDirectoryInstance(String className,
ADag concDag,
PegasusProperties properties)
Loads the implementing class corresponding to the mode specified by the user at runtime. |
protected SubInfo |
makeCreateDirJob(String execPool,
String jobName)
It creates a make directory job that creates a directory on the remote pool using the perl executable that Gaurang wrote. |
| Methods inherited from class org.griphyn.cPlanner.engine.Engine |
|---|
addVector, appendArrayList, loadProperties, printVector, stringInList, stringInPegVector, stringInVector, vectorToString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CREATE_DIR_SUFFIX
public static final String PACKAGE_NAME
public static final String TRANSFORMATION_NAMESPACE
public static final String TRANSFORMATION_NAME
public static final String TRANSFORMATION_VERSION
public static final String DERIVATION_NAMESPACE
public static final String DERIVATION_NAME
public static final String DERIVATION_VERSION
protected ADag mCurrentDag
protected UserOptions mUserOpts
protected LogManager mLogger
| Constructor Detail |
|---|
protected CreateDirectory(PegasusProperties properties)
properties - the PegasusProperties to be used.
protected CreateDirectory(ADag concDag,
PegasusProperties properties)
concDag - The concrete dag so far.properties - the PegasusProperties to be used.| Method Detail |
|---|
public static String getCompleteTranformationName()
public static CreateDirectory loadCreateDirectoryInstance(String className,
ADag concDag,
PegasusProperties properties)
throws FactoryException
className - The name of the class that implements the mode. It is the
name of the class, not the complete name with package.
That is added by itself.concDag - the workflow.properties - the PegasusProperties to be used.
FactoryException - that nests any error that
might occur during the instantiation of the implementation.public abstract void addCreateDirectoryNodes()
protected String getCreateDirJobName(String pool)
pool - the execution pool for which the create directory job
is responsible.
protected Set getCreateDirSites()
protected SubInfo makeCreateDirJob(String execPool,
String jobName)
execPool - the execution pool for which the create dir job is to be
created.jobName - the name that is to be assigned to the job.
private TransformationCatalogEntry defaultTCEntry(String site)
site - the site for which the default entry is required.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||