Package com.sun.jini.mahalo
Class PrepareAndCommitJob
java.lang.Object
com.sun.jini.mahalo.Job
com.sun.jini.mahalo.PrepareAndCommitJob
- All Implemented Interfaces:
TransactionConstants
An implementation of a
Job which interacts with a set of
TransactionParticipants to inform them to vote and roll forward/back changes
associated with a given Transaction.- Author:
- Sun Microsystems, Inc.
- See Also:
-
Field Summary
Fields inherited from class com.sun.jini.mahalo.Job
_directCall, pending, results, tasksFields inherited from interface net.jini.core.transaction.server.TransactionConstants
ABORTED, ACTIVE, COMMITTED, NOTCHANGED, PREPARED, VOTING -
Constructor Summary
ConstructorsConstructorDescriptionPrepareAndCommitJob(Transaction tr, TaskManager pool, WakeupManager wm, ClientLog log, com.sun.jini.mahalo.ParticipantHandle handle, boolean directCall, Object tid) Constructs aPrepareAndCommitJob. -
Method Summary
Modifier and TypeMethodDescriptionstatic intcommitAndPreparePartitionWithEnabledFailover(com.sun.jini.mahalo.ParticipantHandle handle, TransactionManager mgr, long id, Object xid) Methods inherited from class com.sun.jini.mahalo.Job
getMgr, getPool, isCompleted, isDirectCall, numberOfRetriesDueToConnectionExceptionExceeded, reportDone, scheduleTasks, stop
-
Constructor Details
-
PrepareAndCommitJob
public PrepareAndCommitJob(Transaction tr, TaskManager pool, WakeupManager wm, ClientLog log, com.sun.jini.mahalo.ParticipantHandle handle, boolean directCall, Object tid) Constructs aPrepareAndCommitJob.- Parameters:
tr- TheTransactionwhose participants will be instructed to vote and roll-forward/back.pool- TheTaskManagerwhich provides the threads used for interacting with participants.log- TheClientLogused for recording recovery data.handle- The array of participants which will be contacted and informed to vote and roll-forward/back.directCall- no worker thread was activated.- See Also:
-
-
Method Details
-
commitAndPreparePartitionWithEnabledFailover
public static int commitAndPreparePartitionWithEnabledFailover(com.sun.jini.mahalo.ParticipantHandle handle, TransactionManager mgr, long id, Object xid)
-