|
|||||||||||
| 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 ge 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 created
public void postCreate(GridContext context)
throws GridServiceException
context - 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
context - state information currently asociated with the service
GridServiceException - if the service activation should be aborted
public void deactivate(GridContext context)
throws GridServiceException
context - state information currently associated with the service
GridServiceException - if the service deactivation failed
public 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 | ||||||||||