@Deprecated public class LocalTransactionManagerImpl extends LocalTransactionManager
TransactionManager.Created
ABORTED, ACTIVE, COMMITTED, NOTCHANGED, PREPARED, VOTING
Constructor and Description |
---|
LocalTransactionManagerImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
abort(long id)
Deprecated.
Abort the transaction.
|
void |
abort(long id,
long waitFor)
Deprecated.
Abort the transaction, waiting for participants to be notified of the decision.
|
void |
abort(Object xid)
Deprecated.
|
void |
abort(Object xid,
long waitFor)
Deprecated.
|
void |
commit(long xtnID)
Deprecated.
Commit the transaction.
|
void |
commit(long xtnID,
long waitFor)
Deprecated.
Commit the transaction, waiting for participants to be notified of the decision.
|
void |
commit(Object xid)
Deprecated.
|
void |
commit(Object xid,
long waitFor)
Deprecated.
|
TransactionManager.Created |
create(long lease)
Deprecated.
Begin a new top-level transaction.
|
TransactionManager.Created |
create(Object xid,
long lease)
Deprecated.
|
void |
destroy()
Deprecated.
|
boolean |
disJoin(long id,
TransactionParticipant preparedPart)
Deprecated.
Remove a participant that was joined for a first time.
|
boolean |
equals(Object o)
Deprecated.
|
String |
getManagerID()
Deprecated.
|
int |
getState(long id)
Deprecated.
Returns the current state of the given transaction.
|
int |
getState(Object id)
Deprecated.
|
Uuid |
getTransactionManagerId()
Deprecated.
|
int |
hashCode()
Deprecated.
|
void |
join(long id,
TransactionParticipant part,
long crashCount)
Deprecated.
Join a transaction that is managed by this transaction manager.
|
void |
join(long id,
TransactionParticipant part,
long crashCount,
int partitionId,
String clusterName)
Deprecated.
|
void |
join(long id,
TransactionParticipant part,
long crashCount,
ServerTransaction xtn)
Deprecated.
|
void |
join(long id,
TransactionParticipant part,
long crashCount,
ServerTransaction userXtnObject,
int partitionId,
String clusterName,
Object clusterProxy)
Deprecated.
|
void |
join(Object id,
TransactionParticipant part,
long crashCount)
Deprecated.
|
void |
join(Object id,
TransactionParticipant part,
long crashCount,
int partitionId,
String clusterName)
Deprecated.
|
void |
join(Object id,
TransactionParticipant part,
long crashCount,
ServerTransaction xtn)
Deprecated.
|
void |
join(Object id,
TransactionParticipant part,
long crashCount,
ServerTransaction userXtnObject,
int partitionId,
String clusterName,
Object clusterProxy)
Deprecated.
|
boolean |
needParticipantsJoin()
Deprecated.
returns true if this mgr which requires that the txn participants join into the txn in
contrary to a mgr which the participants are known prior to txn propagation
|
int |
prepare(Object xid)
Deprecated.
prepare the underlying xtn designated by the rendered xid
|
void |
readExternal(ObjectInput in)
Deprecated.
|
String |
toString()
Deprecated.
|
void |
writeExternal(ObjectOutput out)
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
enabledSmartExternalizableWithReference
public String getManagerID()
public boolean needParticipantsJoin()
TransactionManager
public Uuid getTransactionManagerId() throws RemoteException
RemoteException
public void writeExternal(ObjectOutput out) throws IOException
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public void abort(Object xid) throws UnknownTransactionException, CannotAbortException, RemoteException
public void abort(Object xid, long waitFor) throws UnknownTransactionException, CannotAbortException, RemoteException
public void abort(long id) throws UnknownTransactionException, CannotAbortException, RemoteException
TransactionManager
id
- the transaction IDUnknownTransactionException
- if the transaction is unknown to the transaction manager,
either because the transaction ID is incorrect or because
the transaction is complete and its state has been
discarded by the manager.CannotAbortException
- if the transaction is known to have previously reached
the COMMITTED state due to an earlier commitRemoteException
- if there is a communication errorpublic void abort(long id, long waitFor) throws UnknownTransactionException, CannotAbortException, TimeoutExpiredException, RemoteException
TransactionManager
TimeoutExpiredException
is thrown.id
- the transaction IDwaitFor
- timeout to wait, from the start of the call until all participants have been
notified of the transaction manager's decisionUnknownTransactionException
- if the transaction is unknown to the transaction manager,
either because the transaction ID is incorrect or because
the transaction is complete and its state has been
discarded by the manager.CannotAbortException
- if the transaction is known to have previously reached
the COMMITTED state due to an earlier commitTimeoutExpiredException
- if the timeout expires before all participants have been
notifiedRemoteException
- if there is a communication errorpublic void commit(Object xid) throws UnknownTransactionException, CannotCommitException, RemoteException
public void commit(Object xid, long waitFor) throws UnknownTransactionException, CannotCommitException, RemoteException
public void commit(long xtnID) throws UnknownTransactionException, CannotCommitException, RemoteException
TransactionManager
NOTCHANGED
or the COMMITTED
state, without waiting for the
transaction manager to notify all participants of the decision. If the transaction must be
aborted (because one or more participants are unable to prepare),
CannotCommitException
is thrown without waiting for the transaction manager to
notify all participants of the decision.xtnID
- the transaction IDUnknownTransactionException
- if the transaction is unknown to the transaction manager,
either because the transaction ID is incorrect or because
the transaction is complete and its state has been
discarded by the manager.CannotCommitException
- if the transaction is being or already has been abortedRemoteException
- if there is a communication errorpublic void commit(long xtnID, long waitFor) throws UnknownTransactionException, CannotCommitException, TimeoutExpiredException, RemoteException
TransactionManager
NOTCHANGED
or the
COMMITTED
state, and the transaction manager has notified all participants of
the decision, before the specified timeout expires. If the transaction must be aborted
(because one or more participants are unable to prepare), CannotCommitException
is thrown if the transaction manager is able to notify all participants of the decision
before the specified timeout expires. If the transaction manager reaches a decision, but is
unable to notify all participants of that decision before the specified timeout expires, then
TimeoutExpiredException
is thrown. If the specified timeout expires before the
transaction manager reaches a decision, TimeoutExpiredException
is not thrown
until the manager reaches a decision.xtnID
- the transaction IDwaitFor
- timeout to wait, from the start of the call until all participants have been
notified of the transaction manager's decisionUnknownTransactionException
- if the transaction is unknown to the transaction manager,
either because the transaction ID is incorrect or because
the transaction is complete and its state has been
discarded by the manager.CannotCommitException
- if the transaction is being or already has been abortedTimeoutExpiredException
- if the transaction manager reaches a decision, but is
unable to notify all participants of that decision before
the specified timeout expiresRemoteException
- if there is a communication errorpublic int prepare(Object xid) throws UnknownTransactionException, CannotCommitException, RemoteException
ExtendedTransactionManager
public boolean disJoin(long id, TransactionParticipant preparedPart) throws UnknownTransactionException, RemoteException
ExtendedTransactionManager
preparedPart
- The joining TransactionParticpant
UnknownTransactionException
RemoteException
TransactionParticipant
public void join(long id, TransactionParticipant part, long crashCount, ServerTransaction xtn) throws UnknownTransactionException, CannotJoinException, CrashCountException, RemoteException
public void join(Object id, TransactionParticipant part, long crashCount, ServerTransaction xtn) throws UnknownTransactionException, CannotJoinException, CrashCountException, RemoteException
public void join(long id, TransactionParticipant part, long crashCount, ServerTransaction userXtnObject, int partitionId, String clusterName, Object clusterProxy) throws UnknownTransactionException, CannotJoinException, CrashCountException, RemoteException
public void join(Object id, TransactionParticipant part, long crashCount, ServerTransaction userXtnObject, int partitionId, String clusterName, Object clusterProxy) throws UnknownTransactionException, CannotJoinException, CrashCountException, RemoteException
public TransactionManager.Created create(Object xid, long lease)
public TransactionManager.Created create(long lease)
TransactionManager
lease
- the requested lease time for the transactionpublic int getState(Object id) throws UnknownTransactionException
UnknownTransactionException
public int getState(long id) throws UnknownTransactionException
TransactionManager
TransactionConstants
values.id
- the transaction IDint
representing the state of the transactionUnknownTransactionException
- if the transaction is unknown to the transaction manager,
either because the transaction ID is incorrect or because
the transaction is complete and its state has been
discarded by the manager.ServerTransaction.getState()
,
TransactionConstants
public void join(long id, TransactionParticipant part, long crashCount)
TransactionManager
crashCount
marks the state of the storage used by the participant for transactions. If the participant
attempts to join a transaction more than once, the crash counts must be the same. Each system
crash or other event that destroys the state of the participant's unprepared transaction
storage must cause the crash count to increase by at least one.id
- the transaction IDpart
- the participant joining the transactioncrashCount
- the participant's current crash countServerTransaction.join(net.jini.core.transaction.server.TransactionParticipant, long)
public void join(Object id, TransactionParticipant part, long crashCount)
public void join(long id, TransactionParticipant part, long crashCount, int partitionId, String clusterName) throws UnknownTransactionException, CannotJoinException, CrashCountException, RemoteException
public void join(Object id, TransactionParticipant part, long crashCount, int partitionId, String clusterName) throws UnknownTransactionException, CannotJoinException, CrashCountException, RemoteException
public void destroy()
destroy
in class LocalTransactionManager
Copyright © GigaSpaces.