public class Transaction extends java.lang.Object implements TXInterface
The list of individual TxOp
operations must either be a
ClientRequest
or ClientReconfigurationPacket
. If any
of the TxOp operations is a DeleteServiceName
request, the
deletion(s) need to be implemented as an in-memory pre-delete
operation at both reconfigurators and active replicas so that they
can be reverted if necessary.
Modifier and Type | Class and Description |
---|---|
protected static class |
Transaction.Keys |
Constructor and Description |
---|
Transaction(java.net.InetSocketAddress entryServer,
TXInterface tx) |
Transaction(java.net.InetSocketAddress entryServer,
TXRequest tx) |
Modifier and Type | Method and Description |
---|---|
protected java.net.InetSocketAddress |
getEntryServer() |
java.util.TreeSet<java.lang.String> |
getLockList() |
java.lang.String |
getTxGroupName()
The transaction group name must be globally unique, otherwise the
transaction will fail in the very first tx_group creation step.
|
java.lang.String |
getTXID() |
protected java.lang.String |
getTxInitState() |
java.util.ArrayList<TxOp> |
getTxOps() |
java.util.Iterator<TxOp> |
iterator() |
protected static java.lang.String |
releaseTxid(long txid) |
public Transaction(java.net.InetSocketAddress entryServer, TXInterface tx)
entryServer
- tx
- public Transaction(java.net.InetSocketAddress entryServer, TXRequest tx)
entryServer
- tx
- public java.util.TreeSet<java.lang.String> getLockList()
getLockList
in interface TXRequest
public java.util.ArrayList<TxOp> getTxOps()
public java.lang.String getTXID()
getTXID
in interface TXInterface
public java.lang.String getTxGroupName()
protected java.lang.String getTxInitState()
protected java.net.InetSocketAddress getEntryServer()
protected static java.lang.String releaseTxid(long txid)