org.globus.ogsa
Interface ServiceLifecycleMonitor

All Known Implementing Classes:
ServiceLifecycleMonitorImpl

public interface ServiceLifecycleMonitor

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

create

public void create(GridContext context)
            throws GridServiceException
called when a service is created

Parameters:
context - state information currently associated with the service being created
Throws:
GridServiceException - if the creation is to be aborted

preSerializationCall

public void preSerializationCall(GridContext context)
                          throws GridServiceException
called before the service input parameters have been deserialized

Parameters:
context - state information currently associated with the service being called
Throws:
GridServiceException - if the call is to be aborted

preCall

public void preCall(GridContext context)
             throws GridServiceException
called before the service is invoked

Parameters:
context - state information currently associated with the service being called
Throws:
GridServiceException - if the call is to be aborted

postCall

public void postCall(GridContext context)
              throws GridServiceException
called after the service has been invoked, not if exception is thrown however

Parameters:
context - state information currently associated with the service being called
Throws:
GridServiceException - if the call is to be aborted

postSerializationCall

public void postSerializationCall(GridContext context)
                           throws GridServiceException
called after the service input parameters have been deserialized

Parameters:
context - state information currently associated with the service being called
Throws:
GridServiceException - if the call is to be aborted

destroy

public void destroy(GridContext context)
             throws GridServiceException
called when the service is destroyed

Parameters:
context - state information currently associated with the service being destroyed
Throws:
GridServiceException - if the destruction is to be aborted


Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.