com.ibm.eismocker.rmidriver
Class EisEvent

java.lang.Object
  extended by com.ibm.eismocker.rmidriver.EisEvent
All Implemented Interfaces:
java.io.Serializable

public class EisEvent
extends java.lang.Object
implements java.io.Serializable

A class which defines the event data structure in the EIS Mocker.

See Also:
Serialized Form

Constructor Summary
EisEvent(java.lang.String eventId, java.lang.String typeName, java.lang.String operation)
          Constructor for EisEvent.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compare the EisEvent with the specified EisEvent object.
 java.sql.Timestamp getBuildTime()
          Get the time stamp for creating this EisEvent object.
 java.lang.String getEventId()
          Get the event id
 java.lang.String getEventType()
          Get the event type
 java.lang.String getOperation()
          Get the event operation type
 int getStatus()
          Get the event status
 java.lang.String getXid()
          Get the event transaction id
 void setOperation(java.lang.String operation)
          Set the event operation type with the specified value
 void setStatus(int status)
          Set the event status with the specified value
 java.lang.String toString()
          Serialise the EisEvent object to String.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EisEvent

public EisEvent(java.lang.String eventId,
                java.lang.String typeName,
                java.lang.String operation)
Constructor for EisEvent. Construct one EisEvent instance with the specified eventId,typeName and operation.

Parameters:
eventId - the event id.
typeName - the event type name
operation - the corresponding operation name for the event
Method Detail

equals

public boolean equals(java.lang.Object obj)
Compare the EisEvent with the specified EisEvent object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The specified EisEvent object.
Returns:
boolean

getStatus

public int getStatus()
Get the event status

Returns:
int.

setStatus

public void setStatus(int status)
Set the event status with the specified value

Parameters:
status - The event status.

getOperation

public java.lang.String getOperation()
Get the event operation type

Returns:
String

setOperation

public void setOperation(java.lang.String operation)
Set the event operation type with the specified value

Parameters:
operation - The operation type

getEventId

public java.lang.String getEventId()
Get the event id

Returns:
String

getEventType

public java.lang.String getEventType()
Get the event type

Returns:
String

getBuildTime

public java.sql.Timestamp getBuildTime()
Get the time stamp for creating this EisEvent object.

Returns:
TimeStamp

getXid

public java.lang.String getXid()
Get the event transaction id

Returns:
String

toString

public java.lang.String toString()
Serialise the EisEvent object to String.

Overrides:
toString in class java.lang.Object