|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ServiceLifecycleMonitor
interface allows you to intercept
lifecycle callbacks on a particular service. It is typically used to control
caches of service instances, or to do performance profiling of a service.
Method Summary | |
void |
create(GridContext context)
called when a service is created |
void |
destroy(GridContext context)
called when the service is destroyed |
void |
postCall(GridContext context)
called after the service has been invoked, not if exception is thrown however |
void |
postSerializationCall(GridContext context)
called after the service input parameters have been deserialized |
void |
preCall(GridContext context)
called before the service is invoked |
void |
preSerializationCall(GridContext context)
called before the service input parameters have been deserialized |
Method Detail |
public void create(GridContext context) throws GridServiceException
context
- state information currently associated with the service
being created
GridServiceException
- if the creation is to be abortedpublic void preSerializationCall(GridContext context) throws GridServiceException
context
- state information currently associated with the service
being called
GridServiceException
- if the call is to be abortedpublic void preCall(GridContext context) throws GridServiceException
context
- state information currently associated with the service
being called
GridServiceException
- if the call is to be abortedpublic void postCall(GridContext context) throws GridServiceException
context
- state information currently associated with the service
being called
GridServiceException
- if the call is to be abortedpublic void postSerializationCall(GridContext context) throws GridServiceException
context
- state information currently associated with the service
being called
GridServiceException
- if the call is to be abortedpublic void destroy(GridContext context) throws GridServiceException
context
- state information currently associated with the service
being destroyed
GridServiceException
- if the destruction is to be aborted
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |