Class ServerControlWrapper
java.lang.Object
com.arjuna.ats.internal.jts.ControlWrapper
com.arjuna.ats.internal.jts.interposition.ServerControlWrapper
- All Implemented Interfaces:
Reapable
public class ServerControlWrapper
extends com.arjuna.ats.internal.jts.ControlWrapper
This class attempts to mask the local/remote control issue. We try to use
local controls directly as much as possible and not register them with the
ORB until the last minute. This improves performance *significantly*. At
present we only do this for top-level transactions, but extending for nested
transactions is straightforward.
It also acts as a convenience class for ease of use. Therefore, some
Coordinator and Terminator methods may be found directly on this class.
Because of the way in which the implementation works, however, some of their
signatures may be slightly different.
- Since:
- JTS 3.3.
- Version:
- $Id: ServerControlWrapper.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark.little@arjuna.com)
-
Constructor Summary
ConstructorDescriptionServerControlWrapper
(Control c, Uid u) ServerControlWrapper
(Control c, ControlImple impl) -
Method Summary
Methods inherited from class com.arjuna.ats.internal.jts.ControlWrapper
commit, determineLocality, equals, get_control, get_coordinator, get_status, get_terminator, get_transaction_name, get_uid, getControl, getImple, getSynchronizations, hash_transaction, hashCode, isLocal, preventCommit, register_resource, register_subtran_aware, register_synchronization, rollback, rollback_only, running, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.arjuna.ats.arjuna.coordinator.Reapable
outputCapturedStackTraces, recordStackTraces
-
Constructor Details
-
ServerControlWrapper
-
ServerControlWrapper
-
ServerControlWrapper
-
ServerControlWrapper
-
-
Method Details
-
cancel
public int cancel() -
create_subtransaction
public com.arjuna.ats.internal.jts.ControlWrapper create_subtransaction() throws Unavailable, Inactive, SubtransactionsUnavailable, org.omg.CORBA.SystemException- Overrides:
create_subtransaction
in classcom.arjuna.ats.internal.jts.ControlWrapper
- Throws:
Unavailable
Inactive
SubtransactionsUnavailable
org.omg.CORBA.SystemException
-