public class CondorStyleFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CONDOR_STYLE_IMPLEMENTING_CLASS
The name of the class implementing the Condor Style.
|
private static java.lang.String |
CONDORC_STYLE_IMPLEMENTING_CLASS
The name of the class implementing the CondorC Style.
|
private static java.lang.String |
CREAMCE_STYLE_IMPLEMENTING_CLASS
The name of the class implementing the CREAMCE Style.
|
static java.lang.String |
DEFAULT_PACKAGE_NAME
The default package where the all the implementing classes are supposed to
reside.
|
private static java.lang.String |
GLIDEIN_STYLE_IMPLEMENTING_CLASS
The name of the class implementing the Condor GlideIN Style.
|
private static java.lang.String |
GLIDEINWMS_STYLE_IMPLEMENTING_CLASS
The name of the class implementing the Condor GlideinWMS Style.
|
private static java.lang.String |
GLITE_STYLE_IMPLEMENTING_CLASS
The name of the class implementing the CondorG Style.
|
private static java.lang.String |
GLOBUS_STYLE_IMPLEMENTING_CLASS
The name of the class implementing the CondorG Style.
|
private CredentialHandlerFactory |
mCredentialFactory
Handler to the Credential Handler factory.
|
private static java.util.Map |
mImplementingClassNameTable
A table that maps, Pegasus style keys to the names of the corresponding classes
implementing the CondorStyle interface.
|
private java.util.Map |
mImplementingClassTable
A table that maps, Pegasus style keys to appropriate classes implementing the
CondorStyle interface
|
private boolean |
mInitialized
A boolean indicating that the factory has been initialized.
|
private static java.lang.String |
SSH_STYLE_IMPLEMENTING_CLASS
The name of the class implementing the CondorG Style.
|
Constructor and Description |
---|
CondorStyleFactory()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
private java.lang.Object |
get(java.lang.String style)
Returns the implementation from the implementing class table.
|
private static java.util.Map |
implementingClassNameTable()
Returns a table that maps, the Pegasus style keys to the names of implementing
classes.
|
void |
initialize(PegasusBag bag)
Initializes the Factory.
|
CondorStyle |
loadInstance(Job job)
This method loads the appropriate implementing CondorStyle as specified
by the user at runtime.
|
private CondorStyle |
loadInstance(PegasusBag bag,
java.lang.String className)
This method loads the appropriate Condor Style using reflection.
|
private void |
put(java.lang.String style,
java.lang.Object implementation)
Inserts an entry into the implementing class table.
|
public static final java.lang.String DEFAULT_PACKAGE_NAME
private static final java.lang.String CONDOR_STYLE_IMPLEMENTING_CLASS
private static final java.lang.String GLIDEIN_STYLE_IMPLEMENTING_CLASS
private static final java.lang.String GLIDEINWMS_STYLE_IMPLEMENTING_CLASS
private static final java.lang.String GLOBUS_STYLE_IMPLEMENTING_CLASS
private static final java.lang.String CONDORC_STYLE_IMPLEMENTING_CLASS
private static final java.lang.String CREAMCE_STYLE_IMPLEMENTING_CLASS
private static final java.lang.String GLITE_STYLE_IMPLEMENTING_CLASS
private static final java.lang.String SSH_STYLE_IMPLEMENTING_CLASS
private static java.util.Map mImplementingClassNameTable
private java.util.Map mImplementingClassTable
private boolean mInitialized
private CredentialHandlerFactory mCredentialFactory
private static java.util.Map implementingClassNameTable()
public void initialize(PegasusBag bag) throws CondorStyleFactoryException
bag
- the bag of initialization objectsCondorStyleFactoryException
- that nests any error that
might occur during the instantiation of the implementation.public CondorStyle loadInstance(Job job) throws CondorStyleFactoryException
job
- the job for which the corresponding style is required.CondorStyleFactoryException
- that nests any error that
might occur during the instantiation of the implementation.private CondorStyle loadInstance(PegasusBag bag, java.lang.String className) throws CondorStyleFactoryException
bag
- the bag of initialization objectsclassName
- the name of the implementing class.CondorStyleFactoryException
- that nests any error that
might occur during the instantiation of the implementation.DEFAULT_PACKAGE_NAME
private java.lang.Object get(java.lang.String style)
style
- the Pegasus styleprivate void put(java.lang.String style, java.lang.Object implementation)
style
- the Pegasus styleimplementation
- the class implementing that style.