|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The GridServiceCallback
interface defines callback methods that
can be implemented by all Grid services to be notified by life cycle events.
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. |
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. |
Method Detail |
public void preCreate(GridServiceBase base) throws GridServiceException
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
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
context
- state information currently associated with the service
GridServiceException
- if the service activation should be abortedpublic void deactivate(GridContext context) throws GridServiceException
context
- state information currently associated with the service
GridServiceException
- if the service deactivation failedpublic void preDestroy(GridContext context) throws GridServiceException
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 |