public class ControlImple extends ActionControlPOA
Modifier and Type | Field and Description |
---|---|
protected boolean |
_destroyed |
protected ActionControl |
_myControl |
protected Control |
_parentControl |
protected Coordinator |
_theCoordinator |
protected Terminator |
_theTerminator |
protected Uid |
_theUid |
protected ArjunaTransactionImple |
_transactionHandle |
protected ArjunaTransactionPOATie |
_transactionImpl |
static Hashtable |
allControls |
Modifier | Constructor and Description |
---|---|
protected |
ControlImple()
Protected constructor for inheritance.
|
|
ControlImple(Control parentCon,
ArjunaTransactionImple parentTran)
Create a new instance with the specified parent.
|
protected |
ControlImple(Coordinator coordinator,
Terminator terminator)
This is used for implicit context propagation, and for Current.resume on
remote transactions.
|
protected |
ControlImple(Coordinator coordinator,
Terminator terminator,
Control parentControl,
Uid uid) |
protected |
ControlImple(Coordinator coordinator,
Terminator terminator,
Uid uid) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addControl()
Transaction needs to call these methods to enable garbage collection to
occur.
|
protected void |
canDestroy() |
protected void |
canDestroy(boolean force)
Generally we do not want to destroy the transaction if it is doing some
work, or other threads are still registered with it.
|
protected void |
createTransactionHandle() |
void |
destroy()
destroy should only be called for remote Control objects.
|
protected void |
duplicateTransactionHandle(Coordinator coord,
Terminator term) |
boolean |
equals(Object obj) |
void |
finalize() |
Coordinator |
get_coordinator() |
Terminator |
get_terminator() |
Uid |
get_uid()
Used for garbage collection so we can keep a list of controls and delete
local ones.
|
Control |
getControl() |
Status |
getFinalStatus()
In the case that the transaction is terminated by the reaper then it will
also be tidied up.
|
ArjunaTransactionImple |
getImplHandle() |
Control |
getParentControl() |
ControlImple |
getParentImple() |
protected boolean |
removeControl() |
void |
set_coordinator(Coordinator coordinator) |
void |
set_terminator(Terminator terminator) |
protected void |
tidyup()
No need to protect with mutex since only called from destroy (and
destructor), which is protected with a mutex.
|
String |
toString() |
_all_interfaces, _invoke, _this, _this
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
public static Hashtable allControls
protected Terminator _theTerminator
protected Coordinator _theCoordinator
protected Control _parentControl
protected ArjunaTransactionImple _transactionHandle
protected Uid _theUid
protected ActionControl _myControl
protected ArjunaTransactionPOATie _transactionImpl
protected boolean _destroyed
public ControlImple(Control parentCon, ArjunaTransactionImple parentTran)
protected ControlImple(Coordinator coordinator, Terminator terminator)
protected ControlImple(Coordinator coordinator, Terminator terminator, Uid uid)
protected ControlImple(Coordinator coordinator, Terminator terminator, Control parentControl, Uid uid)
protected ControlImple()
public void finalize() throws Throwable
public Uid get_uid()
public final ArjunaTransactionImple getImplHandle()
public final Control getControl()
public Terminator get_terminator() throws SystemException, Unavailable
SystemException
Unavailable
public Coordinator get_coordinator() throws SystemException, Unavailable
SystemException
Unavailable
public void set_terminator(Terminator terminator) throws SystemException, Unavailable
SystemException
Unavailable
public void set_coordinator(Coordinator coordinator) throws SystemException, Unavailable
SystemException
Unavailable
public Control getParentControl() throws Unavailable, SystemException
Unavailable
SystemException
public void destroy() throws ActiveTransaction, ActiveThreads, BadControl, Destroyed, SystemException
public ControlImple getParentImple()
public Status getFinalStatus() throws IllegalStateException
IllegalStateException
- thrown if the transaction is still available.protected void canDestroy() throws ActiveTransaction, ActiveThreads, BadControl, Destroyed, SystemException
protected void canDestroy(boolean force) throws ActiveTransaction, ActiveThreads, BadControl, Destroyed, SystemException
protected final void createTransactionHandle()
protected final void duplicateTransactionHandle(Coordinator coord, Terminator term)
protected boolean addControl()
protected boolean removeControl()
protected final void tidyup()
Copyright © 2021 JBoss by Red Hat. All rights reserved.