|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omg.PortableServer.Servant
com.sun.jts.codegen.otsidl.JControlPOA
com.sun.jts.CosTransactions.ControlImpl
public class ControlImpl
The ControlImpl interface is our implementation of the standard Control interface. It provides operations to set and subsequently obtain the Terminator and Coordinator objects from the given context. Our implementation also provides a method to obtain the corresponding transaction identifiers, and stacking methods.
,
Serialized Form| Field Summary | |
|---|---|
protected int |
association
|
protected org.omg.CosTransactions.PropagationContext |
cachedContext
|
protected com.sun.jts.CosTransactions.CoordinatorImpl |
coord
|
protected org.omg.CosTransactions.Coordinator |
coordRef
|
protected GlobalTID |
globalTID
|
protected boolean |
inSuspended
|
protected java.lang.Long |
localTID
|
protected int |
outgoing
|
protected boolean |
representsRemote
|
protected ControlImpl |
stacked
|
protected boolean |
temporary
|
protected com.sun.jts.CosTransactions.TerminatorImpl |
term
|
protected org.omg.CosTransactions.Terminator |
termRef
|
protected org.omg.CosTransactions.Status |
tranState
|
| Method Summary | |
|---|---|
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result)
|
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exceptions,
org.omg.CORBA.ContextList contexts)
|
org.omg.CORBA.Object |
_duplicate()
|
org.omg.CORBA.DomainManager[] |
_get_domain_managers()
|
org.omg.CORBA.Object |
_get_interface_def()
|
org.omg.CORBA.Policy |
_get_policy(int policy_type)
|
int |
_hash(int maximum)
|
boolean |
_is_a(java.lang.String repository_id)
|
boolean |
_is_equivalent(org.omg.CORBA.Object that)
|
boolean |
_non_existent()
|
void |
_release()
|
org.omg.CORBA.Request |
_request(java.lang.String operation)
|
org.omg.CORBA.Object |
_set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add)
|
void |
doFinalize()
Cleans up the state of the object. |
boolean |
equals(java.lang.Object o)
Added to prevent null delegate problem. |
org.omg.CosTransactions.Coordinator |
get_coordinator()
Returns the Coordinator for the transaction. |
org.omg.CosTransactions.Coordinator |
get_localCoordinator()
Returns the Coordinator for the transaction. |
org.omg.CosTransactions.Terminator |
get_localTerminator()
|
org.omg.CosTransactions.Terminator |
get_terminator()
Returns the Terminator object for the transaction. |
GlobalTID |
getGlobalTID()
Returns the identifier that globally represents the transaction |
org.omg.CosTransactions.otid_t |
getGlobalTID(org.omg.CosTransactions.StatusHolder status)
Returns the identifier that globally represents the transaction, and a value that indicates the state of the transaction. |
long |
getLocalTID(org.omg.CosTransactions.StatusHolder status)
Returns the identifier that locally represents the transaction, and a value that indicates the state of the transaction. |
org.omg.CosTransactions.Status |
getTranState()
Returns the state of the transaction as the Control object knows it. |
int |
hashCode()
Added because this class overrides equals() method. |
static ControlImpl |
servant(JControl control)
Returns the ControlImpl which serves the given object. |
void |
setTranState(org.omg.CosTransactions.Status newState)
Sets the state of the transaction as the Control object knows it. |
| Methods inherited from class com.sun.jts.codegen.otsidl.JControlPOA |
|---|
_all_interfaces, _invoke, _this, _this |
| Methods inherited from class org.omg.PortableServer.Servant |
|---|
_default_POA, _get_delegate, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean temporary
protected boolean inSuspended
protected org.omg.CosTransactions.Status tranState
protected com.sun.jts.CosTransactions.CoordinatorImpl coord
protected org.omg.CosTransactions.Coordinator coordRef
protected com.sun.jts.CosTransactions.TerminatorImpl term
protected org.omg.CosTransactions.Terminator termRef
protected ControlImpl stacked
protected GlobalTID globalTID
protected java.lang.Long localTID
protected boolean representsRemote
protected org.omg.CosTransactions.PropagationContext cachedContext
protected int outgoing
protected int association
| Method Detail |
|---|
public void doFinalize()
- public GlobalTID getGlobalTID()
-
public org.omg.CosTransactions.otid_t getGlobalTID(org.omg.CosTransactions.StatusHolder status)
throws org.omg.CORBA.SystemException
getGlobalTID in interface JControlOperationsstatus - An object to hold the status value, or null.
org.omg.CORBA.SystemException - An error occurred. The minor code indicates
the reason for the exception.
public long getLocalTID(org.omg.CosTransactions.StatusHolder status)
throws org.omg.CORBA.SystemException
If the transaction represented by the Control object has been completed, the identifier is still returned if possible.
getLocalTID in interface JControlOperationsstatus - An object to hold the status value, or null.
org.omg.CORBA.SystemException - An error occurred. The minor code indicates
the reason for the exception.
public org.omg.CosTransactions.Terminator get_terminator()
throws org.omg.CosTransactions.Unavailable,
org.omg.CORBA.SystemException
get_terminator in interface org.omg.CosTransactions.ControlOperations -
org.omg.CosTransactions.Unavailable - The Terminator object is not available.
org.omg.CORBA.SystemException - The operation failed.
public org.omg.CosTransactions.Terminator get_localTerminator()
throws org.omg.CosTransactions.Unavailable,
org.omg.CORBA.SystemException
org.omg.CosTransactions.Unavailable
org.omg.CORBA.SystemException
public org.omg.CosTransactions.Coordinator get_coordinator()
throws org.omg.CosTransactions.Unavailable,
org.omg.CORBA.SystemException
get_coordinator in interface org.omg.CosTransactions.ControlOperations -
org.omg.CosTransactions.Unavailable - The Coordinator is not available.
org.omg.CORBA.SystemException - The operation failed.
public org.omg.CosTransactions.Coordinator get_localCoordinator()
throws org.omg.CosTransactions.Unavailable,
org.omg.CORBA.SystemException
-
org.omg.CosTransactions.Unavailable - The Coordinator is not available.
org.omg.CORBA.SystemException - The operation failed.public org.omg.CosTransactions.Status getTranState()
getTranState in interface JControlOperations -
public void setTranState(org.omg.CosTransactions.Status newState)
setTranState in interface JControlOperationsint - The new state.public static final ControlImpl servant(JControl control)
The - CORBA Object.
public boolean equals(java.lang.Object o)
equals in class java.lang.Object -
public int hashCode()
hashCode in class java.lang.Objectpublic org.omg.CORBA.Object _duplicate()
_duplicate in interface org.omg.CORBA.Objectpublic void _release()
_release in interface org.omg.CORBA.Objectpublic boolean _is_a(java.lang.String repository_id)
_is_a in interface org.omg.CORBA.Object_is_a in class org.omg.PortableServer.Servantpublic boolean _is_equivalent(org.omg.CORBA.Object that)
_is_equivalent in interface org.omg.CORBA.Objectpublic boolean _non_existent()
_non_existent in interface org.omg.CORBA.Object_non_existent in class org.omg.PortableServer.Servantpublic int _hash(int maximum)
_hash in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Request _request(java.lang.String operation)
_request in interface org.omg.CORBA.Object
public org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result)
_create_request in interface org.omg.CORBA.Object
public org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exceptions,
org.omg.CORBA.ContextList contexts)
_create_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Object _get_interface_def()
_get_interface_def in interface org.omg.CORBA.Object_get_interface_def in class org.omg.PortableServer.Servantpublic org.omg.CORBA.Policy _get_policy(int policy_type)
_get_policy in interface org.omg.CORBA.Objectpublic org.omg.CORBA.DomainManager[] _get_domain_managers()
_get_domain_managers in interface org.omg.CORBA.Object
public org.omg.CORBA.Object _set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add)
_set_policy_override in interface org.omg.CORBA.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||