public class PrepareAndCommitJob extends Job implements TransactionConstants
Job which interacts with a set of
 TransactionParticipants to inform them to vote and roll forward/back changes
 associated with a given Transaction.Job, 
ParticipantTask, 
Transaction, 
TransactionParticipant_directCall, pending, results, tasksABORTED, ACTIVE, COMMITTED, NOTCHANGED, PREPARED, VOTING| Constructor and Description | 
|---|
| PrepareAndCommitJob(Transaction tr,
                   TaskManager pool,
                   WakeupManager wm,
                   ClientLog log,
                   com.sun.jini.mahalo.ParticipantHandle handle,
                   boolean directCall,
                   Object tid)Constructs a  PrepareAndCommitJob. | 
| Modifier and Type | Method and Description | 
|---|---|
| static int | commitAndPreparePartitionWithEnabledFailover(com.sun.jini.mahalo.ParticipantHandle handle,
                                            TransactionManager mgr,
                                            long id,
                                            Object xid) | 
getMgr, getPool, isCompleted, isDirectCall, numberOfRetriesDueToConnectionExceptionExceeded, reportDone, scheduleTasks, stoppublic PrepareAndCommitJob(Transaction tr, TaskManager pool, WakeupManager wm, ClientLog log, com.sun.jini.mahalo.ParticipantHandle handle, boolean directCall, Object tid)
PrepareAndCommitJob.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.TaskManager, 
ClientLog, 
TransactionParticipantpublic static int commitAndPreparePartitionWithEnabledFailover(com.sun.jini.mahalo.ParticipantHandle handle,
                                                               TransactionManager mgr,
                                                               long id,
                                                               Object xid)
Copyright © GigaSpaces.