|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.services.replication.ReplicationTransactionUpdate
public class ReplicationTransactionUpdate
This class is used to hold transaction update messages as they come into the client. Each message is stored in a Hashmap of name/value pairs.
| Field Summary | |
|---|---|
long |
currentCommandId
Id of current command within this transaction |
| Constructor Summary | |
|---|---|
ReplicationTransactionUpdate(long id,
java.lang.Long time)
Create new ReplicationTransactionUpdate |
|
| Method Summary | |
|---|---|
void |
addMessage(java.util.HashMap<java.lang.String,java.lang.String> message)
Add a message to this list of messages. |
long |
getId()
Get the transaction id |
java.util.List<java.util.HashMap<java.lang.String,java.lang.String>> |
getMessages()
Get the list of messages in this transaction |
java.lang.Long |
getTransactionTimestamp()
Get the transactionTimestamp |
boolean |
isComplete()
Determine if the transaction is completely received |
void |
nextCommand(long commandId,
java.lang.String commandType)
Add a new command message to list |
void |
setComplete(boolean complete)
Set if this transaction is complete. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public long currentCommandId
| Constructor Detail |
|---|
public ReplicationTransactionUpdate(long id,
java.lang.Long time)
id - Transaction idtime - timestamp of transaction| Method Detail |
|---|
public java.util.List<java.util.HashMap<java.lang.String,java.lang.String>> getMessages()
public void addMessage(java.util.HashMap<java.lang.String,java.lang.String> message)
message - new message to add to list
public void nextCommand(long commandId,
java.lang.String commandType)
commandId - ID of commandcommandType - Type of commandpublic long getId()
public boolean isComplete()
public void setComplete(boolean complete)
complete - complete or notpublic java.lang.Long getTransactionTimestamp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||