edu.isi.pegasus.planner.code.generator.condor.style
public abstract class Abstract extends Object implements CondorStyle
| Modifier and Type | Field and Description |
|---|---|
protected CredentialHandlerFactory |
mCredentialFactory
Handle to the Credential Handler Factory
|
protected LogManager |
mLogger
A handle to the logging object.
|
protected PegasusProperties |
mProps
The object holding all the properties pertaining to Pegasus.
|
protected SiteStore |
mSiteStore
The handle to the Site Catalog Store.
|
VERSION| Constructor and Description |
|---|
Abstract()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(AggregatedJob job)
Apply a style to an AggregatedJob
|
protected void |
applyCredentialsForLocalExec(Job job)
Examines the credential requirements for a job and adds appropiate
transfer and environment directives for the credentials to be picked
up for the local job
|
protected void |
applyCredentialsForRemoteExec(Job job)
Examines the credential requirements for a job and adds appropiate
transfer and environment directives for the credentials to be staged
and picked up by the job.
|
protected String |
errorMessage(Job job,
String style,
String universe)
Constructs an error message in case of style mismatch.
|
void |
initialize(PegasusBag bag,
CredentialHandlerFactory credentialFactory)
Initializes the Code Style implementation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyprotected PegasusProperties mProps
protected SiteStore mSiteStore
protected LogManager mLogger
protected CredentialHandlerFactory mCredentialFactory
public void initialize(PegasusBag bag, CredentialHandlerFactory credentialFactory) throws CondorStyleException
initialize in interface CondorStylebag - the bag of initialization objectscredentialFactory - the credential handler factoryCondorStyleFactoryException - that nests any error that
might occur during the instantiation of the implementation.CondorStyleExceptionprotected String errorMessage(Job job, String style, String universe)
job - the job object.style - the name of the style.universe - the universe associated with the job.public void apply(AggregatedJob job) throws CondorStyleException
apply in interface CondorStylejob - the AggregatedJob object containing the job.CondorStyleException - in case of any error occuring code generation.protected void applyCredentialsForRemoteExec(Job job) throws CondorStyleException
job - CondorStyleExceptionprotected void applyCredentialsForLocalExec(Job job) throws CondorStyleException
job - CondorStyleException