public abstract class Abstract extends java.lang.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,
java.lang.String key,
java.lang.String site)
Complain if a particular credential key is not found for a site
|
protected java.lang.String |
errorMessage(Job job,
java.lang.String style,
java.lang.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.CondorStyleExceptionpublic 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 - CondorStyleExceptionprotected void applyCredentialsForJobSubmission(Job job) throws CondorStyleException
job - CondorStyleExceptionprotected void complainForCredential(Job job, java.lang.String key, java.lang.String site) throws CondorStyleException
job - key - site - CondorStyleExceptionprotected java.lang.String errorMessage(Job job, java.lang.String style, java.lang.String universe)
job - the job object.style - the name of the style.universe - the universe associated with the job.