|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.libs.Command
com.tivoli.twg.evtsub.agent.SendEventCommand
SendEventCommand is the command 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 |
COMMAND_CODE
Command code. |
static int |
DEFAULT_LIFE_SPAN
Default event life span 12 hours in minutes. |
static int |
RETURN_CODE_ERROR
Command return code. |
static int |
RETURN_CODE_OK
Command return code. |
static int |
RETURN_CODE_SUBAGENT_NOT_READY
Command return code. |
static int |
RETURN_CODE_UNKNOWN_SERVER
Command return code. |
Constructor Summary | |
---|---|
SendEventCommand(long serverIdentifier,
TWGBaseEvent event)
Send an event to a server using given server identifier and default event life span. |
|
SendEventCommand(long serverIdentifier,
TWGBaseEvent event,
int lifeSpan)
Send an event to a server using given server identifier and given event life span. |
|
SendEventCommand(java.lang.String serverAddress,
TWGBaseEvent event)
Send an event to a server using given server address and default event life span. |
|
SendEventCommand(java.lang.String serverAddress,
TWGBaseEvent event,
int lifeSpan)
Send an event to a server using given server address and given event life span. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DEFAULT_LIFE_SPAN
public static final int COMMAND_CODE
public static final int RETURN_CODE_OK
public static final int RETURN_CODE_ERROR
public static final int RETURN_CODE_UNKNOWN_SERVER
public static final int RETURN_CODE_SUBAGENT_NOT_READY
Constructor Detail |
public SendEventCommand(java.lang.String serverAddress, TWGBaseEvent event)
serverAddress
- address of the server where event to be sentevent
- event to be sentpublic SendEventCommand(java.lang.String serverAddress, TWGBaseEvent event, int lifeSpan)
serverAddress
- address of the server where event to be sentevent
- event to be sentlifeSpan
- time in minutes to retain event before abandoning delivery attemptspublic SendEventCommand(long serverIdentifier, TWGBaseEvent event)
serverIdentifier
- identifier of the server where event to be sentevent
- event to be sentpublic SendEventCommand(long serverIdentifier, TWGBaseEvent event, int lifeSpan)
serverIdentifier
- identifier of the server where event to be sentevent
- event to be sentlifeSpan
- time in minutes to retain event before abandoning delivery attempts
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |