Package com.sun.jini.mahalo
Class CommitJob
java.lang.Object
com.sun.jini.mahalo.Job
com.sun.jini.mahalo.CommitJob
- All Implemented Interfaces:
TransactionConstants
An implementation of a
Job which interacts with a set of
TransactionParticipants to inform them to roll forward 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
ConstructorsConstructorDescriptionCommitJob(Transaction tr, TaskManager pool, WakeupManager wm, ClientLog log, com.sun.jini.mahalo.ParticipantHandle[] handles, Object xid) Constructs anCommitJob -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcommitPartitionWithEnabledFailover(com.sun.jini.mahalo.ParticipantHandle handle, ExtendedTransactionManager mgr, long id, Object xid, int numPrepared) Methods inherited from class com.sun.jini.mahalo.Job
getMgr, getPool, isCompleted, isDirectCall, numberOfRetriesDueToConnectionExceptionExceeded, reportDone, scheduleTasks, stop
-
Constructor Details
-
CommitJob
public CommitJob(Transaction tr, TaskManager pool, WakeupManager wm, ClientLog log, com.sun.jini.mahalo.ParticipantHandle[] handles, Object xid) Constructs anCommitJob- Parameters:
tr- TheTransactionwhose participants will be instructed to roll-forward.pool- TheTaskManagerwhich provides the threads used for interacting with participants.log- TheClientLogused for recording recovery data.handles- The array of participants which will be contacted and informed to roll-forward.- See Also:
-
-
Method Details
-
commitPartitionWithEnabledFailover
public static void commitPartitionWithEnabledFailover(com.sun.jini.mahalo.ParticipantHandle handle, ExtendedTransactionManager mgr, long id, Object xid, int numPrepared)
-