com.tivoli.twg.evtsub.agent
Class SendEvent

java.lang.Object
  extended bycom.tivoli.twg.evtsub.agent.SendEvent

public class SendEvent
extends java.lang.Object

SendEvent provides methods to send an event from an agent to server(s). The event is first sent to the Event Subagent and then sent to the server(s).


Field Summary
static int DEFAULT_LIFE_SPAN
          Default event life span 12 hours in minutes.
static int RETURN_CODE_OK
          Return code.
static int RETURN_CODE_SUBAGENT_NOT_READY
          Return code.
 
Method Summary
static int toSubscribers(TWGBaseEvent event)
          Send an event to the servers that have subscribed the event.
static int toSubscribers(TWGBaseEvent event, int lifeSpan)
          Send an event to the servers that have subscribed the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LIFE_SPAN

public static final int DEFAULT_LIFE_SPAN
Default event life span 12 hours in minutes.

See Also:
Constant Field Values

RETURN_CODE_OK

public static final int RETURN_CODE_OK
Return code.

See Also:
Constant Field Values

RETURN_CODE_SUBAGENT_NOT_READY

public static final int RETURN_CODE_SUBAGENT_NOT_READY
Return code.

See Also:
Constant Field Values
Method Detail

toSubscribers

public static int toSubscribers(TWGBaseEvent event)
Send an event to the servers that have subscribed the event. This method is to be invoked by objects that implement com.tivoli.twg.evtsub.agent.EventProvider interface. The event is given the defaul life span.

Parameters:
event - event to be sent
Returns:
RETURN_CODE_*

toSubscribers

public static int toSubscribers(TWGBaseEvent event,
                                int lifeSpan)
Send an event to the servers that have subscribed the event. This method is to be invoked by objects that implement com.tivoli.twg.evtsub.agent.EventProvider interface.

Parameters:
event - event to be sent
lifeSpan - time in minutes to retain the event before abandoning delivery attempts
Returns:
RETURN_CODE_*