|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.ogsa.impl.core.registry.RegistryPublishProvider
This operation provider allows services to add themselves to remote ServiceGroups, and maintain their entries there. This operation provider takes the following parameter from the service's WSDD properties: registrationConfig - path to the config file for this operation provider. The configuration file is in XML format giving details of each ServiceGroup that the local service should be registered to. Parameters that may be specified in this file (per registration) are: registry - the GSH of the remote registry (ServiceGroup) to register to. This parameter must be specified. keepalive - boolean (default: false) The registration is kept alive with softstate lifetime management. There isn't much point setting this to true unless registry-lifetime is also set. lifetime - integer, number of seconds. default: infinity) The lifetime of the remote registration will be set to this number of seconds. If registry-keepalive is true, then the lifetime will be extended at least twice in this period. If no value is specified, the default of infinity will apply. remove - boolean, defaults to true. detemines if the provider should remove the service from the remote ServiceGroup at local container shutdown Note that the terms 'registry' and 'ServiceGroup' are used interchangeably.
Constructor Summary | |
RegistryPublishProvider()
|
Method Summary | |
void |
activate(GridContext context)
Called when a service becomes active after having been deactivated. |
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 base)
Called when the operation provider is added to a grid service. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RegistryPublishProvider()
Method Detail |
public void initialize(GridServiceBase base) throws GridServiceException
OperationProvider
initialize
in interface OperationProvider
base
- the service this provider is being associated with
GridServiceException
- if the initialization (and service creation
is to be aborted)public 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 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 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 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 |