|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--examples.assured.AtomicState
Reads and writes the state of the program to persistent storage in an atomic manner. Used by the SendTestMessagesAssured program.
SendTestMessagesAssured
Field Summary | |
static int |
STATE_BUILT_MSG_OK_MAY_HAVE_PUT
|
static int |
STATE_PUT_MSG_OK_MAY_HAVE_CONFIRMED
|
static int |
STATE_START
|
static short[] |
version
|
Constructor Summary | |
AtomicState(java.lang.String stateFile)
Create the atomic state, reading any data we can from the disk file specified. |
Method Summary | |
long |
getConfirmID()
Gets the ConfirmID Value. |
int |
getMsgIndex()
Gets the Message Index Value. |
int |
getState()
Gets the state of the object. |
java.lang.String |
getStateString()
Returns the state as a string for display. |
MQeFields |
getUniqueID()
Gets the Unique ID. |
void |
set(MQeFields uniqueID,
int state,
long confirmID,
int msgIndex)
Write the atomic state to disk using an MQe adapter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static short[] version
public static final int STATE_START
public static final int STATE_BUILT_MSG_OK_MAY_HAVE_PUT
public static final int STATE_PUT_MSG_OK_MAY_HAVE_CONFIRMED
Constructor Detail |
public AtomicState(java.lang.String stateFile) throws java.lang.Exception
stateFile
- A String containing the path of the file.
java.lang.Exception
Method Detail |
public int getMsgIndex()
Gets the Message Index Value.
public long getConfirmID()
Gets the ConfirmID Value.
public MQeFields getUniqueID()
Gets the Unique ID.
public int getState()
Gets the state of the object.
public void set(MQeFields uniqueID, int state, long confirmID, int msgIndex) throws java.lang.Exception
uniqueID
- The UniqueID of the Object.state
- Integer containing the state of the Object.confirmID
- A long value containing the ConfirmIDmsgIndex
- Integer containing the Index of the message.
java.lang.Exception
public java.lang.String getStateString()
none
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |