Class ServerTopLevelAction
java.lang.Object
com.arjuna.ats.internal.jts.interposition.resources.arjuna.ServerResource
com.arjuna.ats.internal.jts.orbspecific.interposition.resources.arjuna.ServerTopLevelAction
- All Implemented Interfaces:
ResourceOperations
- Direct Known Subclasses:
ServerRecoveryTopLevelAction
,ServerRestrictedTopLevelAction
,ServerStrictTopLevelAction
This looks like an atomic action, but is not actually derived from
BasicAction or Transaction. This is because of the way in which the
OTS creates and manipulates transactions.
As with Transaction, we only create actions here, and do not associated
these contexts with any thread. We do the association later.
If we were to do the creation via a suitably modified current interface
then the thread association would be done for us automatically, and we
would not have to call resume at all.
This is a top-level action proxy.
-
Field Summary
Fields inherited from class com.arjuna.ats.internal.jts.interposition.resources.arjuna.ServerResource
_children, _destroyed, _parent, _theControl, _theUid, _valid
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
commit()
void
protected void
void
forget()
boolean
prepare()
protected boolean
registerResource
(Coordinator theCoordinator) void
rollback()
type()
Methods inherited from class com.arjuna.ats.internal.jts.interposition.resources.arjuna.ServerResource
abortChild, addChild, control, destroyed, finalize, get_uid, getChild, getChildren, getChildren, getParentHandle, interposeResource, otsStatus, removeChild, setParentHandle, tidyup, valid
-
Field Details
-
_registered
protected boolean _registered -
_theResource
-
_resourceRef
-
-
Constructor Details
-
ServerTopLevelAction
-
ServerTopLevelAction
protected ServerTopLevelAction()
-
-
Method Details
-
getReference
-
prepare
- Specified by:
prepare
in interfaceResourceOperations
- Throws:
HeuristicMixed
HeuristicHazard
org.omg.CORBA.SystemException
-
rollback
public void rollback() throws HeuristicCommit, HeuristicMixed, HeuristicHazard, org.omg.CORBA.SystemException- Specified by:
rollback
in interfaceResourceOperations
- Throws:
HeuristicCommit
HeuristicMixed
HeuristicHazard
org.omg.CORBA.SystemException
-
commit
public void commit() throws NotPrepared, HeuristicRollback, HeuristicMixed, HeuristicHazard, org.omg.CORBA.SystemException- Specified by:
commit
in interfaceResourceOperations
- Throws:
NotPrepared
HeuristicRollback
HeuristicMixed
HeuristicHazard
org.omg.CORBA.SystemException
-
forget
public void forget() throws org.omg.CORBA.SystemException- Specified by:
forget
in interfaceResourceOperations
- Throws:
org.omg.CORBA.SystemException
-
commit_one_phase
- Specified by:
commit_one_phase
in interfaceResourceOperations
- Throws:
HeuristicHazard
org.omg.CORBA.SystemException
-
type
-
destroyResource
protected void destroyResource() -
registerResource
-
isTransactionInactive
public boolean isTransactionInactive()
-