org.globus.exec.service.factory
Class ManagedJobFactoryHome

java.lang.Object
  extended byorg.globus.wsrf.impl.ResourceHomeImpl
      extended byorg.globus.exec.service.factory.ManagedJobFactoryHome
All Implemented Interfaces:
Initializable, ResourceHome

public class ManagedJobFactoryHome
extends ResourceHomeImpl


Nested Class Summary
 
Nested classes inherited from class org.globus.wsrf.impl.ResourceHomeImpl
 
Field Summary
private static FactoryHomeConfiguration CONFIGURATION
           
private static org.globus.util.I18n i18n
           
private  boolean initialized
           
private static org.apache.commons.logging.Log logger
           
private  boolean registerToMDS
           
 
Fields inherited from class org.globus.wsrf.impl.ResourceHomeImpl
keyTypeClass, keyTypeName, lockManager, resourceClass, resources
 
Constructor Summary
ManagedJobFactoryHome()
           
 
Method Summary
protected  void add(ResourceKey key, Resource resource)
          Override add to optionally publish to MDS, if so configured.
private  ManagedJobFactoryResource create(java.lang.String localResourceManager, java.lang.String scratchDirectory)
          This function is private as we do not want to let other objects create factory resources.
private  ManagedJobFactoryResourceProperties createResourceBean(java.lang.String localResourceManager, java.lang.String scratchDirectory)
           
static FactoryHomeConfiguration getConfiguration()
           
static ManagedJobFactoryHome getHome()
           
 void initialize()
           
 
Methods inherited from class org.globus.wsrf.impl.ResourceHomeImpl
createNewInstance, createNewInstanceAndLoad, find, getCacheLocation, getKeyTypeClass, getKeyTypeName, getResourceClass, getSweeperDelay, remove, setCacheLocation, setResourceClass, setResourceKeyName, setResourceKeyType, setSweeperDelay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.commons.logging.Log logger

i18n

private static org.globus.util.I18n i18n

CONFIGURATION

private static FactoryHomeConfiguration CONFIGURATION

registerToMDS

private boolean registerToMDS

initialized

private boolean initialized
Constructor Detail

ManagedJobFactoryHome

public ManagedJobFactoryHome()
Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Throws:
java.lang.Exception

create

private ManagedJobFactoryResource create(java.lang.String localResourceManager,
                                         java.lang.String scratchDirectory)
                                  throws java.lang.Exception
This function is private as we do not want to let other objects create factory resources.

Parameters:
localResourceManager - the local resource manager to manage the new job with.
Returns:
ManagedJobFactoryResource
Throws:
java.lang.Exception

add

protected void add(ResourceKey key,
                   Resource resource)
Override add to optionally publish to MDS, if so configured.


createResourceBean

private ManagedJobFactoryResourceProperties createResourceBean(java.lang.String localResourceManager,
                                                               java.lang.String scratchDirectory)

getHome

public static ManagedJobFactoryHome getHome()
                                     throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getConfiguration

public static FactoryHomeConfiguration getConfiguration()