com.tivoli.twg.evtsub.agent
Class SendEventCommand

java.lang.Object
  extended bycom.tivoli.twg.libs.Command
      extended bycom.tivoli.twg.evtsub.agent.SendEventCommand

public class SendEventCommand
extends Command

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.
 
Fields inherited from class com.tivoli.twg.libs.Command
CMD_SENDER_FLAG, CMDRET_CREATE_CMDPKT_FAILED, CMDRET_ENCRYPT_FAIL, CMDRET_ENQUEUE_LOCAL_FAILED, CMDRET_INVALID_DEST_ADDRESS, CMDRET_NO_LOCAL_SVCNODE_IMPL, CMDRET_SECURE_FAIL, CMDRET_SEND_BUFFER_FAILED, CMDRET_SEND_FAILED, CMDRET_SEND_TIMEOUT, CMDRET_SERVICEFAILED, CMDRET_SESS_DISABLED_LCL, CMDRET_SESS_DISABLED_RMT, CMDRET_SESS_UNAVAIL_LCL, CMDRET_SESS_UNAVAIL_RMT, CMDRET_SESS_WAIT_DONE, CMDRET_SESS_WAIT_EXPIRED, CMDRET_SESS_WAITING, COMMAND_TYPE_INPUT, COMMAND_TYPE_OUTPUT, DEFAULT_CMD_TIMEOUT, ENQUEUE_FAILED_COPYDATA, ENQUEUE_FAILED_NO_DESTPATH, ENQUEUE_FAILED_NO_PROCESS_HANDLE, ENQUEUE_FAILED_NO_SVC_NODE_HANDLE, ENQUEUE_FAILED_SECURITY, ENQUEUE_GENERAL_FAILURE, JNI_BUFFER_NULL, JNI_ENTRY_POINT_NOT_LOADED, JNI_HANDLE_NULL, JNI_INITIALIZE_FAILED, RMI_LOOKUP_ERROR, SESSION_NONE, SESSION_PREFERRED, SESSION_REQUIRED
 
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 com.tivoli.twg.libs.Command
AddInputParm, AddInputParm, AddObjectAsInputParm, AddObjectAsOutputParm, AddOutputParm, AddOutputParm, addToDebugStrings, AllocateBuffer, AttachInputParm, AttachOutputParm, CmdId, CommandCode, commandCodeDebugString, CommandComplete, CompressObject, debugPrint, DecompressObject, DestinationAddress, DetachInputParm, DetachOutputParm, FreeBuffer, FreeInputsAfterSend, getCmdType, GetObjectFromInputParm, GetObjectFromOutputParm, getSenderServiceNode, hexDump, InputParm, InputParm, InputParmLength, IsFlatInputBuffer, IsFlatOutputBuffer, IsPostponedReply, MakeFlatInputBuffer, MakeFlatOutputBuffer, NumInputParms, NumOutputParms, OutputParm, OutputParm, OutputParmLength, PostponeReply, ResetIndex, ResetInput, ResetOutput, ReturnAddress, ReturnCode, ReturnCodeToString, RootDestinationAddress, RootReturnAddress, SessionHold, SessionMode, SessionRelease, SessionWaitTime, setCmdType, setCmdTypeInput, setCmdTypeOutput, SetCommandCode, setCommandCodeDebugString, setCommandCompleteListener, SetDestinationAddress, SetNewID, SetReturnAddress, SetReturnCode, setSenderServiceNode, SetSessionHold, SetSessionMode, SetSessionRelease, SetSessionWaitTime, SetTimeOut, TimeOut, toString, UseFlatInputBuffer, UseFlatOutputBuffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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

COMMAND_CODE

public static final int COMMAND_CODE
Command code.

See Also:
Constant Field Values

RETURN_CODE_OK

public static final int RETURN_CODE_OK
Command return code.

See Also:
Constant Field Values

RETURN_CODE_ERROR

public static final int RETURN_CODE_ERROR
Command return code.

See Also:
Constant Field Values

RETURN_CODE_UNKNOWN_SERVER

public static final int RETURN_CODE_UNKNOWN_SERVER
Command return code.

See Also:
Constant Field Values

RETURN_CODE_SUBAGENT_NOT_READY

public static final int RETURN_CODE_SUBAGENT_NOT_READY
Command return code.

See Also:
Constant Field Values
Constructor Detail

SendEventCommand

public SendEventCommand(java.lang.String serverAddress,
                        TWGBaseEvent event)
Send an event to a server using given server address and default event life span. Also can be used to send an event to all the servers managing the agent by specifying "*" as the server address.

Parameters:
serverAddress - address of the server where event to be sent
event - event to be sent

SendEventCommand

public SendEventCommand(java.lang.String serverAddress,
                        TWGBaseEvent event,
                        int lifeSpan)
Send an event to a server using given server address and given event life span. Also can be used to send an event to all the servers managing the agent by specifying "*" as the server address.

Parameters:
serverAddress - address of the server where event to be sent
event - event to be sent
lifeSpan - time in minutes to retain event before abandoning delivery attempts

SendEventCommand

public SendEventCommand(long serverIdentifier,
                        TWGBaseEvent event)
Send an event to a server using given server identifier and default event life span.

Parameters:
serverIdentifier - identifier of the server where event to be sent
event - event to be sent

SendEventCommand

public SendEventCommand(long serverIdentifier,
                        TWGBaseEvent event,
                        int lifeSpan)
Send an event to a server using given server identifier and given event life span.

Parameters:
serverIdentifier - identifier of the server where event to be sent
event - event to be sent
lifeSpan - time in minutes to retain event before abandoning delivery attempts