|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.ogsa.impl.ogsi.ServiceGroupRegistrationProvider
Implements the ogsi service group registration operations
Constructor Summary | |
ServiceGroupRegistrationProvider()
|
Method Summary | |
void |
activate(GridContext context)
Called when a service becomes active after having been deactivated. |
TerminationTimeType |
add(LocatorTypeHolder serviceLocator,
ExtensibilityType content,
TerminationTimeType terminationTime)
|
void |
deactivate(GridContext context)
Called just before a service gets deactivated. |
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 serviceBase)
Called when the operation provider is added to a grid service. |
boolean |
lazyCreate(HandleType handle)
called when a service could not be located in the internal registry and a callback reference was found in the parent service |
protected void |
postAdd(EntryType entry)
|
void |
postCreate(GridContext context)
Called when a service has been created and all of its configuration has been set up. |
protected void |
postRemove(EntryType entry)
|
protected void |
preAdd(LocatorTypeHolder serviceLocator,
ExtensibilityType content,
TerminationTimeType terminationTime)
|
void |
preCreate(GridServiceBase base)
Called when a service object is created. |
void |
preDestroy(GridContext context)
Called just before a service gets destroyed. |
protected void |
preRemove(EntryType entry)
|
void |
remove(ExtensibilityType matchExpression)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServiceGroupRegistrationProvider()
Method Detail |
protected void preAdd(LocatorTypeHolder serviceLocator, ExtensibilityType content, TerminationTimeType terminationTime) throws GridServiceException
GridServiceException
protected void postAdd(EntryType entry)
protected void preRemove(EntryType entry) throws GridServiceException
GridServiceException
protected void postRemove(EntryType entry)
public javax.xml.namespace.QName[] getOperations()
OperationProvider
getOperations
in interface OperationProvider
new 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 boolean lazyCreate(HandleType handle) throws java.rmi.RemoteException, FaultType
LazyCreationCallback
lazyCreate
in interface LazyCreationCallback
handle
- the handle of the service that is to be created
java.rmi.RemoteException
- if exception occured when trying to create this service,
for example when trying to call out to remote object system or database
FaultType
- if grid service fault occured when trying to create this service,
for example when trying to call out to a remote grid service systempublic void initialize(GridServiceBase serviceBase) throws GridServiceException
OperationProvider
initialize
in interface OperationProvider
serviceBase
- the service this provider is being associated with
GridServiceException
- if the initialization (and service creation
is to be aborted)public void remove(ExtensibilityType matchExpression) throws java.rmi.RemoteException, FaultType, RemoveFailedFaultType, MatchFailedFaultType, ExtensibilityNotSupportedFaultType, ExtensibilityTypeFaultType
java.rmi.RemoteException
FaultType
RemoveFailedFaultType
MatchFailedFaultType
ExtensibilityNotSupportedFaultType
ExtensibilityTypeFaultType
public TerminationTimeType add(LocatorTypeHolder serviceLocator, ExtensibilityType content, TerminationTimeType terminationTime) throws java.rmi.RemoteException, FaultType, ContentCreationFailedFaultType, UnsupportedMemberInterfaceFaultType, AddRefusedFaultType, ExtensibilityNotSupportedFaultType, ExtensibilityTypeFaultType
java.rmi.RemoteException
FaultType
ContentCreationFailedFaultType
UnsupportedMemberInterfaceFaultType
AddRefusedFaultType
ExtensibilityNotSupportedFaultType
ExtensibilityTypeFaultType
public void preCreate(GridServiceBase base) throws GridServiceException
GridServiceCallback
preCreate
in interface GridServiceCallback
base
- 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 createdpublic void postCreate(GridContext context) throws GridServiceException
GridServiceCallback
postCreate
in interface GridServiceCallback
context
- state information currently associated with the service
that was created.
GridServiceException
- if the service creation should be abortedpublic void activate(GridContext context) throws GridServiceException
GridServiceCallback
activate
in interface GridServiceCallback
context
- state information currently associated with the service
GridServiceException
- if the service activation should be abortedpublic void deactivate(GridContext context) throws GridServiceException
GridServiceCallback
deactivate
in interface GridServiceCallback
context
- state information currently associated with the service
GridServiceException
- if the service deactivation failedpublic void preDestroy(GridContext context) throws GridServiceException
GridServiceCallback
preDestroy
in interface GridServiceCallback
context
- 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 |