com.tivoli.twg.evtsub.agent
Interface EventProvider


public interface EventProvider

This interface must be implemented by event providers to allow Director Agent to manage the events. All methods are invoked by Director Event Subagent.


Field Summary
static java.lang.String INTERFACE_NAME
           
 
Method Summary
 void activate()
          Method to inform an event provider that Event Subagent is ready to receive events.
 TWGEventSourceDescriptor[] getEventSourceDescriptors()
          Method to get event source descriptors for publication.
 boolean initialize()
          Method to let an event provider do its initialization.
 void terminate()
          Method to let an event provider do its termination.
 void updateSubscription(TWGEventDescriptor[] eventDescriptors)
          Method to inform an event provider which of its events are currently subscribed by servers (subscription may not be changed since last call).
 

Field Detail

INTERFACE_NAME

public static final java.lang.String INTERFACE_NAME
See Also:
Constant Field Values
Method Detail

initialize

public boolean initialize()
Method to let an event provider do its initialization.

Returns:
true if successful, false otherwise

getEventSourceDescriptors

public TWGEventSourceDescriptor[] getEventSourceDescriptors()
Method to get event source descriptors for publication.

Returns:
event source descriptors

activate

public void activate()
Method to inform an event provider that Event Subagent is ready to receive events. Event providers should use their own threads to do event processing.


terminate

public void terminate()
Method to let an event provider do its termination.


updateSubscription

public void updateSubscription(TWGEventDescriptor[] eventDescriptors)
Method to inform an event provider which of its events are currently subscribed by servers (subscription may not be changed since last call). Event providers should only send subscribed events by invoking the com.tivoli.twg.evtsub.agent.SendEvent.toSubscribers(event) method.

Parameters:
eventDescriptors - subscription