com.sun.jini.mahalo
Class PrepareAndCommitJob
java.lang.Object
com.sun.jini.mahalo.Job
com.sun.jini.mahalo.PrepareAndCommitJob
- All Implemented Interfaces:
- TransactionConstants
public class PrepareAndCommitJob
- extends Job
- implements TransactionConstants
An implementation of a Job
which interacts with
a set of TransactionParticipant
s to inform them
to vote and roll forward/back changes associated with a given
Transaction
.
- Author:
- Sun Microsystems, Inc.
- See Also:
Job
,
ParticipantTask
,
Transaction
,
TransactionParticipant
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrepareAndCommitJob
public PrepareAndCommitJob(Transaction tr,
TaskManager pool,
WakeupManager wm,
ClientLog log,
com.sun.jini.mahalo.ParticipantHandle handle,
boolean directCall,
Object tid)
- Constructs a
PrepareAndCommitJob
.
- Parameters:
tr
- The Transaction
whose participants
will be instructed to vote and roll-forward/back.pool
- The TaskManager
which provides the
threads used for interacting with participants.log
- The ClientLog
used 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:
TaskManager
,
ClientLog
,
TransactionParticipant
commitAndPreparePartitionWithEnabledFailover
public static int commitAndPreparePartitionWithEnabledFailover(com.sun.jini.mahalo.ParticipantHandle handle,
TransactionManager mgr,
long id,
Object xid)
Copyright © GigaSpaces.