public class CommitJob extends Job implements TransactionConstants
Job
which interacts with
a set of TransactionParticipant
s to inform them
to roll forward changes associated with a given Transaction
.Job
,
ParticipantTask
,
Transaction
,
TransactionParticipant
_directCall, pending, results, tasks
ABORTED, ACTIVE, COMMITTED, NOTCHANGED, PREPARED, VOTING
Constructor and Description |
---|
CommitJob(Transaction tr,
com.sun.jini.thread.TaskManager pool,
com.sun.jini.thread.WakeupManager wm,
com.sun.jini.mahalo.log.ClientLog log,
com.sun.jini.mahalo.ParticipantHandle[] handles,
Object xid)
Constructs an
CommitJob |
Modifier and Type | Method and Description |
---|---|
static void |
commitPartitionWithEnabledFailover(com.sun.jini.mahalo.ParticipantHandle handle,
ExtendedTransactionManager mgr,
long id,
Object xid,
int numPrepared) |
getMgr, getPool, isCompleted, isDirectCall, numberOfRetriesDueToConnectionExceptionExceeded, reportDone, scheduleTasks, stop
public CommitJob(Transaction tr, com.sun.jini.thread.TaskManager pool, com.sun.jini.thread.WakeupManager wm, com.sun.jini.mahalo.log.ClientLog log, com.sun.jini.mahalo.ParticipantHandle[] handles, Object xid)
CommitJob
tr
- The Transaction
whose participants
will be instructed to roll-forward.pool
- The TaskManager
which provides the
threads used for interacting with participants.log
- The ClientLog
used for recording
recovery data.handles
- The array of participants which will be contacted
and informed to roll-forward.TaskManager
,
ClientLog
,
TransactionParticipant
public static void commitPartitionWithEnabledFailover(com.sun.jini.mahalo.ParticipantHandle handle, ExtendedTransactionManager mgr, long id, Object xid, int numPrepared)
Copyright © GigaSpaces.