|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbitronix.tm.twopc.AbstractPhaseEngine
bitronix.tm.twopc.Preparer
public class Preparer
Phase 1 Prepare logic engine.
Constructor Summary | |
---|---|
Preparer(Executor executor)
|
Method Summary | |
---|---|
protected Job |
createJob(XAResourceHolderState xaResourceHolderState)
Create a Job that is going to execute the phase command on the given resource. |
protected boolean |
isParticipating(XAResourceHolderState xaResourceHolderState)
Determine if a resource is participating in the phase or not. |
java.util.List |
prepare(BitronixTransaction transaction)
Execute phase 1 prepare. |
Methods inherited from class bitronix.tm.twopc.AbstractPhaseEngine |
---|
collectNotInterestedResources, collectResourcesUniqueNames, executePhase, logFailedResources |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Preparer(Executor executor)
Method Detail |
---|
public java.util.List prepare(BitronixTransaction transaction) throws javax.transaction.RollbackException, BitronixSystemException
transaction
- the transaction to prepare.
XAResource.XA_OK
.
javax.transaction.RollbackException
- when an error occured that can be fixed with a rollback.
BitronixSystemException
- when an internal error occured.protected Job createJob(XAResourceHolderState xaResourceHolderState)
AbstractPhaseEngine
Job
that is going to execute the phase command on the given resource.
createJob
in class AbstractPhaseEngine
xaResourceHolderState
- the resource that is going to receive a command.
Job
that is going to execute the command.protected boolean isParticipating(XAResourceHolderState xaResourceHolderState)
AbstractPhaseEngine
isParticipating
in class AbstractPhaseEngine
xaResourceHolderState
- the resource to check for its participation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |