|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.ogsa.impl.ogsi.FactoryProvider
Implementation of the Factory PortType. It is implemenented as an
OperationProvider which can be linked in with any Grid service
using configuration in order to provide factory functionallity.
The provider makes callbacks to a FactoryCallback object
in order to create the correct Grid service object.
OperationProvider,
FactoryCallback| Field Summary | |
protected GridServiceBase |
base
|
protected FactoryCallback |
factoryCallback
|
static javax.xml.namespace.QName[] |
operations
|
| Constructor Summary | |
FactoryProvider()
|
|
| Method Summary | |
void |
activate(GridContext context)
called when a service becomes active after having been deactivated. |
GridServiceBase |
activateService(java.util.Calendar dateTime,
java.lang.String instanceID)
|
void |
cancelSweeper()
|
void |
createPersistentService(TerminationTimeType terminationTime,
ExtensibilityType creationParameters,
LocatorTypeHolder locator,
TerminationTimeTypeHolder currentTerminationTime,
ExtensibilityTypeHolder extensibilityOutput)
|
void |
createService(TerminationTimeType terminationTime,
ExtensibilityType creationParameters,
LocatorTypeHolder locator,
TerminationTimeTypeHolder currentTerminationTime,
ExtensibilityTypeHolder extensibilityOutput)
|
void |
deactivate(GridContext context)
called just before a service gets deactivated. |
void |
deactivateInstance(java.lang.String service)
|
javax.xml.namespace.QName[] |
getOperations()
called during initialization when the Grid service needs to find out what operations are supported by this provider. |
void |
initialize(GridServiceBase base)
called when the operation provider is added to a grid service |
HandleType |
lazyCreate()
|
void |
notifyDestroy(java.lang.String service)
Callback to be implemented by listeners to recieve notification that an instance has been destroyed. |
void |
postCreate(GridContext context)
called when a service has been created and all of its configuration has been set up. |
void |
preCreate(GridServiceBase base)
called when a service object is created. |
void |
preDestroy(GridContext context)
called just before a service gets destroyed. |
void |
setCallback(FactoryCallback callback)
|
void |
updateRegistry()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final javax.xml.namespace.QName[] operations
protected GridServiceBase base
protected FactoryCallback factoryCallback
| Constructor Detail |
public FactoryProvider()
| Method Detail |
public javax.xml.namespace.QName[] getOperations()
OperationProvider
getOperations in interface OperationProvidernew QName[] {new QName("","*")}, will result in all incoming
operations being redirected to this provider (apart from the OGSI defined
GridService interface operations provided by the
GridServiceBase implementation. Note that individual operations
in the OGSI namespace could still be overridded with this approach, but
not using the 'all namespaces and all operation' wildcard.
public void initialize(GridServiceBase base)
throws GridServiceException
OperationProvider
initialize in interface OperationProviderbase - the service this provider is being associated with
GridServiceException - if the initialization (and service creation
is to be aborted)public void cancelSweeper()
public GridServiceBase activateService(java.util.Calendar dateTime,
java.lang.String instanceID)
throws GridServiceException
GridServiceException
public void createService(TerminationTimeType terminationTime,
ExtensibilityType creationParameters,
LocatorTypeHolder locator,
TerminationTimeTypeHolder currentTerminationTime,
ExtensibilityTypeHolder extensibilityOutput)
throws java.rmi.RemoteException,
FaultType,
ServiceAlreadyExistsFaultType,
ExtensibilityNotSupportedFaultType,
ExtensibilityTypeFaultType
java.rmi.RemoteException
FaultType
ServiceAlreadyExistsFaultType
ExtensibilityNotSupportedFaultType
ExtensibilityTypeFaultType
public void createPersistentService(TerminationTimeType terminationTime,
ExtensibilityType creationParameters,
LocatorTypeHolder locator,
TerminationTimeTypeHolder currentTerminationTime,
ExtensibilityTypeHolder extensibilityOutput)
throws java.rmi.RemoteException,
FaultType,
ServiceAlreadyExistsFaultType,
ExtensibilityNotSupportedFaultType,
ExtensibilityTypeFaultType
java.rmi.RemoteException
FaultType
ServiceAlreadyExistsFaultType
ExtensibilityNotSupportedFaultType
ExtensibilityTypeFaultTypepublic HandleType lazyCreate()
public void setCallback(FactoryCallback callback)
public void notifyDestroy(java.lang.String service)
throws GridServiceException
DestroyListener
notifyDestroy in interface DestroyListenerservice - path, in the internal registry, to service instance that was destroyed, for example "myFactory/myService"
GridServiceException - if the destruction should not be performed
public void deactivateInstance(java.lang.String service)
throws GridServiceException
GridServiceException
public void updateRegistry()
throws GridServiceException
GridServiceException
public void preCreate(GridServiceBase base)
throws GridServiceException
GridServiceCallback
preCreate in interface GridServiceCallbackbase - the Grid service that is in the process of creating this
service object, or if this is a persistent Grid service it points to
the service to be created.
GridServiceException - if the service should not be created
public void postCreate(GridContext context)
throws GridServiceException
GridServiceCallback
postCreate in interface GridServiceCallbackcontext - state information currently associated with the service
that was created.
GridServiceException - if the service creation should be aborted
public void activate(GridContext context)
throws GridServiceException
GridServiceCallback
activate in interface GridServiceCallbackcontext - state information currently asociated with the service
GridServiceException - if the service activation should be aborted
public void deactivate(GridContext context)
throws GridServiceException
GridServiceCallback
deactivate in interface GridServiceCallbackcontext - state information currently associated with the service
GridServiceException - if the service deactivation failed
public void preDestroy(GridContext context)
throws GridServiceException
GridServiceCallback
preDestroy in interface GridServiceCallbackcontext - state information currently associated with the service
GridServiceException - if the destruction failed (will be
reported to clients in the case of explicit destroy calls)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||