uk.org.ogsadai.service.resource
Interface ResourceListener

All Known Implementing Classes:
ResourceEventDispatcher, TestDataResourceAccessor

public interface ResourceListener

The listener interface for receiving data service resource events. A DataResourceAccessor should implement this interface if it is interested in processing data service resource events. An implementation should be thread-safe because a single DataResourceAccessor object may receive events from multiple sources concurrently.

Author:
The OGSA-DAI Project Team

Method Summary
 void sessionCreated(ResourceEvent event)
          Invoked when a new session is created that is associated with this data resource accessor.
 void sessionTerminated(ResourceEvent event)
          Invoked when a session that is associated with this data resource accessor has been terminated.
 

Method Detail

sessionCreated

public void sessionCreated(ResourceEvent event)
Invoked when a new session is created that is associated with this data resource accessor.

Parameters:
event - describes the details of the event.

sessionTerminated

public void sessionTerminated(ResourceEvent event)
Invoked when a session that is associated with this data resource accessor has been terminated. This is invoked after the session manager has received its terminatation call but before the session has actually been cleaned up, so an implementation may still interact with the session.

Parameters:
event - describes the details of the event.