edu.isi.pegasus.planner.code.generator.condor.style
Class Abstract

java.lang.Object
  extended by edu.isi.pegasus.planner.code.generator.condor.style.Abstract
All Implemented Interfaces:
CondorStyle
Direct Known Subclasses:
Condor, CondorG, CondorGlideIN, GLite

public abstract class Abstract
extends Object
implements CondorStyle

An abstract implementation of the CondorStyle interface. Impelements the initialization method.

Version:
$Revision: 4929 $
Author:
Karan Vahi

Field Summary
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.
 
Fields inherited from interface edu.isi.pegasus.planner.code.generator.condor.CondorStyle
VERSION
 
Constructor Summary
Abstract()
          The default constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.isi.pegasus.planner.code.generator.condor.CondorStyle
apply
 

Field Detail

mProps

protected PegasusProperties mProps
The object holding all the properties pertaining to Pegasus.


mSiteStore

protected SiteStore mSiteStore
The handle to the Site Catalog Store.


mLogger

protected LogManager mLogger
A handle to the logging object.


mCredentialFactory

protected CredentialHandlerFactory mCredentialFactory
Handle to the Credential Handler Factory

Constructor Detail

Abstract

public Abstract()
The default constructor.

Method Detail

initialize

public void initialize(PegasusBag bag,
                       CredentialHandlerFactory credentialFactory)
                throws CondorStyleException
Initializes the Code Style implementation.

Specified by:
initialize in interface CondorStyle
Parameters:
bag - the bag of initialization objects
credentialFactory - the credential handler factory
Throws:
CondorStyleFactoryException - that nests any error that might occur during the instantiation of the implementation.
CondorStyleException

errorMessage

protected String errorMessage(Job job,
                              String style,
                              String universe)
Constructs an error message in case of style mismatch.

Parameters:
job - the job object.
style - the name of the style.
universe - the universe associated with the job.

apply

public void apply(AggregatedJob job)
           throws CondorStyleException
Apply a style to an AggregatedJob

Specified by:
apply in interface CondorStyle
Parameters:
job - the AggregatedJob object containing the job.
Throws:
CondorStyleException - in case of any error occuring code generation.

applyCredentialsForRemoteExec

protected void applyCredentialsForRemoteExec(Job job)
                                      throws CondorStyleException
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.

Parameters:
job -
Throws:
CondorStyleException

applyCredentialsForLocalExec

protected void applyCredentialsForLocalExec(Job job)
                                     throws CondorStyleException
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

Parameters:
job -
Throws:
CondorStyleException


Copyright © 2011 The University of Southern California. All Rights Reserved.