|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.code.generator.condor.style.Abstract
edu.isi.pegasus.planner.code.generator.condor.style.Condor
public class Condor
Enables a job to be directly submitted to the condor pool of which the submit host is a part of. This style is applied for jobs to be run - on the submit host in the scheduler universe (local pool execution) - on the local condor pool of which the submit host is a part of
| Field Summary | |
|---|---|
static String |
LOCAL_UNIVERSE
|
private boolean |
mPegasusLiteEnabled
A boolean indicating whether pegasus lite mode is picked up or not. |
private String |
mPegasusLiteLocalWrapper
Path to Pegasus Lite local wrapper script. |
static String |
PARALLEL_UNIVERSE
|
static String |
PEGASUS_CONNECT_STDIN_KEY
Whether to connect stdin or not |
static String |
PEGASUS_EXECUTE_IN_INITIAL_DIR
The name of the environment variable that determines if job should be executed in initial dir or not |
static String |
PEGASUS_INITIAL_DIR_KEY
The name of the environment variable for the initial dir for pegasus lite local |
static String |
PEGASUS_LITE_LOCAL_FILE_BASENAME
The Pegasus Lite local wrapper basename. |
static String |
PEGASUS_TRANSFER_INPUT_FILES_KEY
The name of the environment variable for transferring input files |
static String |
PEGASUS_TRANSFER_OUTPUT_FILES_KEY
The name of the environment variable for transferring output files |
static String |
SCHEDULER_UNIVERSE
|
static String |
STANDARD_UNIVERSE
|
static String |
STYLE_NAME
The name of the style being implemented. |
static String |
TRANSFER_EXECUTABLE_KEY
|
static String |
UNIVERSE_KEY
|
static String |
VANILLA_UNIVERSE
|
| Fields inherited from class edu.isi.pegasus.planner.code.generator.condor.style.Abstract |
|---|
mCredentialFactory, mLogger, mProps, mSiteStore |
| Fields inherited from interface edu.isi.pegasus.planner.code.generator.condor.CondorStyle |
|---|
VERSION |
| Constructor Summary | |
|---|---|
Condor()
The default constructor. |
|
| Method Summary | |
|---|---|
void |
apply(Job job)
Applies the condor style to the job. |
protected String |
getSubmitHostPathToPegasusLiteLocal()
Determines the path to PegasusLite local job |
void |
initialize(PegasusBag bag,
CredentialHandlerFactory credentialFactory)
Initializes the Code Style implementation. |
private void |
wrapJobWithLocalPegasusLite(Job job)
Wraps the local universe jobs with a local Pegasus Lite wrapper to get around the Condor file IO bug for local universe job |
| Methods inherited from class edu.isi.pegasus.planner.code.generator.condor.style.Abstract |
|---|
apply, applyCredentialsForLocalExec, applyCredentialsForRemoteExec, errorMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String UNIVERSE_KEY
public static final String VANILLA_UNIVERSE
public static final String SCHEDULER_UNIVERSE
public static final String STANDARD_UNIVERSE
public static final String LOCAL_UNIVERSE
public static final String PARALLEL_UNIVERSE
public static final String TRANSFER_EXECUTABLE_KEY
public static final String STYLE_NAME
public static final String PEGASUS_LITE_LOCAL_FILE_BASENAME
public static final String PEGASUS_TRANSFER_INPUT_FILES_KEY
public static final String PEGASUS_TRANSFER_OUTPUT_FILES_KEY
public static final String PEGASUS_INITIAL_DIR_KEY
public static final String PEGASUS_EXECUTE_IN_INITIAL_DIR
public static final String PEGASUS_CONNECT_STDIN_KEY
private boolean mPegasusLiteEnabled
private String mPegasusLiteLocalWrapper
| Constructor Detail |
|---|
public Condor()
| Method Detail |
|---|
public void initialize(PegasusBag bag,
CredentialHandlerFactory credentialFactory)
throws CondorStyleException
initialize in interface CondorStyleinitialize in class Abstractbag - the bag of initialization objectscredentialFactory - the credential handler factory
CondorStyleFactoryException - that nests any error that
might occur during the instantiation of the implementation.
CondorStyleException
public void apply(Job job)
throws CondorStyleException
job - the job on which the style needs to be applied.
CondorStyleException - in case of any error occuring code generation.
private void wrapJobWithLocalPegasusLite(Job job)
throws CondorStyleException
job - the job that needs to be wrapped.
CondorStyleExceptionprotected String getSubmitHostPathToPegasusLiteLocal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||