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 |
applyCredentialsForJobSubmission(Job job)
Associates credentials required for job submission.
|
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 void |
complainForCredential(Job job,
String key,
String site)
Complain if a particular credential key is not found for a site
|
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, wait
apply
protected PegasusProperties mProps
protected SiteStore mSiteStore
protected LogManager mLogger
protected CredentialHandlerFactory mCredentialFactory
public void initialize(PegasusBag bag, CredentialHandlerFactory credentialFactory) throws CondorStyleException
initialize
in interface CondorStyle
bag
- the bag of initialization objectscredentialFactory
- the credential handler factoryCondorStyleFactoryException
- that nests any error that
might occur during the instantiation of the implementation.CondorStyleException
public void apply(AggregatedJob job) throws CondorStyleException
apply
in interface CondorStyle
job
- the AggregatedJob
object containing the job.CondorStyleException
- in case of any error occuring code generation.protected void applyCredentialsForRemoteExec(Job job) throws CondorStyleException
job
- CondorStyleException
protected void applyCredentialsForLocalExec(Job job) throws CondorStyleException
job
- CondorStyleException
protected void applyCredentialsForJobSubmission(Job job) throws CondorStyleException
job
- CondorStyleException
protected void complainForCredential(Job job, String key, String site) throws CondorStyleException
job
- key
- site
- CondorStyleException