Methods Summary |
---|
public Request | _create_request(Context ctx, java.lang.String operation, NVList arg_list, NamedValue result)
throw no_implement;
|
public Request | _create_request(Context ctx, java.lang.String operation, NVList arg_list, NamedValue result, ExceptionList exceptions, ContextList contexts)
throw no_implement;
|
public org.omg.CORBA.Object | _duplicate()
throw no_implement;
|
public org.omg.CORBA.DomainManager[] | _get_domain_managers()
throw no_implement;
|
public org.omg.CORBA.Object | _get_interface_def()
throw no_implement;
|
public org.omg.CORBA.Policy | _get_policy(int policy_type)
throw no_implement;
|
public int | _hash(int maximum)
throw no_implement;
|
public boolean | _is_a(java.lang.String repository_id)
throw no_implement;
|
public boolean | _is_equivalent(org.omg.CORBA.Object that)
throw no_implement;
|
public boolean | _non_existent()
throw no_implement;
|
public void | _release()
throw no_implement;
|
public Request | _request(java.lang.String operation)
throw no_implement;
|
public org.omg.CORBA.Object | _set_policy_override(org.omg.CORBA.Policy[] policies, org.omg.CORBA.SetOverrideType set_add)
throw no_implement;
|
abstract boolean | addChild(com.sun.jts.CosTransactions.CoordinatorImpl child)Add the given Coordinator reference to the set of children of the target
object.
|
abstract void | cleanUpEmpty(com.sun.jts.CosTransactions.CoordinatorImpl forgetParent)Cleans up an empty Coordinator object which was created temporarily for a
read-only transactional request.
|
abstract void | commit()Direct the CoordinatorImpl to commit. The CoordinatorImpl directs all
registered Resources to commit. Those Resources that raised heuristic
exceptions are subsequently told to forget the transaction. If there are
no registered Synchronization objects, and the CoordinatorImpl is not the
root, it removes itself from the TransactionManager associations and
destroys itself before returning.
|
abstract boolean | commitOnePhase()Direct the CoordinatorImpl to commit in one phase if possible. If the
coordinator has a single resource registered it will flow the
commit_one_phase mehtod to it, if it has >1 resource the method will
return false indicating two phase commit is required.
Other than that the method behaves as commit.
|
public abstract Control | create_subtransaction()OMG Coordinator operation required of all subclasses.
|
final synchronized void | destroy()Destroys the CoordinatorImpl object reference.
if( poa != null && thisRef != null )
try {
poa.deactivate_object(poa.reference_to_id(thisRef));
thisRef = null;
} catch( Exception exc ) {
_logger.log(Level.WARNING,"jts.object_destroy_error","Coordinator");
}
|
public abstract void | doFinalize()Clean up the state of the object.
|
public abstract TransIdentity[] | getAncestors()IDL JCoordinator operation required of all subclasses.
|
public abstract otid_t | getGlobalTID()IDL JCoordinator operation required of all subclasses.
|
public abstract long | getLocalTID()IDL JCoordinator operation required of all subclasses.
|
abstract Coordinator | getParent()Return the parent coordinator.
|
abstract Coordinator | getSuperior()Return the superior coordinator.
|
abstract CompletionHandler | getTerminator()Returns the object normally responsible for terminating the transaction.
|
public abstract Status | get_parent_status()OMG Coordinator operation required of all subclasses.
|
public abstract Status | get_status()OMG Coordinator operation required of all subclasses.
|
public abstract Status | get_top_level_status()OMG Coordinator operation required of all subclasses.
|
public abstract java.lang.String | get_transaction_name()OMG Coordinator operation required of all subclasses.
|
public abstract PropagationContext | get_txcontext()OMG Coordinator operation required of all subclasses.
|
abstract boolean | hasRegistered()Return a boolean value indicating whether the CoordinatorImpl has registered
with its superior (if any).
|
public abstract int | hash_top_level_tran()OMG Coordinator operation required of all subclasses.
|
public abstract int | hash_transaction()OMG Coordinator operation required of all subclasses.
|
abstract boolean | isActive()Return a boolean value indicating whether the CoordinatorImpl is in an
active state (i.e. not preparing or later states).
|
public abstract boolean | isRollbackOnly()IDL JCoordinator operation required of all subclasses.
|
public abstract boolean | is_ancestor_transaction(Coordinator other)OMG Coordinator operation required of all subclasses.
|
public abstract boolean | is_descendant_transaction(Coordinator other)OMG Coordinator operation required of all subclasses.
|
public abstract boolean | is_related_transaction(Coordinator other)OMG Coordinator operation required of all subclasses.
|
public abstract boolean | is_same_transaction(Coordinator other)OMG Coordinator operation required of all subclasses.
|
public abstract boolean | is_top_level_transaction()OMG Coordinator operation required of all subclasses.
|
final synchronized Coordinator | object()Returns a CORBA object which represents the transaction.
if( thisRef == null ) {
if( poa == null )
poa = Configuration.getPOA("Coordinator"/*#Frozen*/);
try {
poa.activate_object(this);
thisRef = CoordinatorHelper.narrow(poa.servant_to_reference(this));
} catch( Exception exc ) {
_logger.log(Level.SEVERE,"jts.create_coordinator_object_error",exc);
String msg = LogFormatter.getLocalizedMessage(_logger,
"jts.create_coordinator_object_error");
throw new org.omg.CORBA.INTERNAL(msg);
}
}
return thisRef;
|
abstract Vote | prepare()Direct the CoordinatorImpl to prepare to commit. If there are active
subtransactions, the operation raises the INVALID_TRANSACTION standard
exception. Otherwise the CoordinatorImpl directs all registered Resources to
prepare, and returns the consolidated result to the caller. The
CoordinatorImpl must guarantee that each Resource object registered with it
receives at most one prepare request (This includes the case where the
Recoverable Server registers the same Resource twice).
|
public abstract RecoveryCoordinator | register_resource(Resource res)OMG Coordinator operation required of all subclasses.
|
public abstract void | register_subtran_aware(SubtransactionAwareResource sares)OMG Coordinator operation required of all subclasses.
|
public abstract void | register_synchronization(Synchronization sync)OMG Coordinator operation required of all subclasses.
|
abstract boolean | removeChild(com.sun.jts.CosTransactions.CoordinatorImpl child)Remove the given Coordinator reference from the set of children. If the
target object is temporary, and no longer has any children or registered
resources, it destroys itself before returning.
|
abstract com.sun.jts.CosTransactions.CoordinatorImpl | replyAction(int[] action)Inform the CoordinatorImpl of an imminent reply. If the CoordinatorImpl has
active children, it returns activeChildren. If the CoordinatorImpl has
already been registered, the operation returns doNothing. Otherwise the
CoordinatorImpl returns forgetMe, and the output parameter is set to the
parent CoordinatorImpl, if any.
|
abstract void | rollback(boolean force)Direct the CoordinatorImpl to rollback the transaction. It directs every
registered Resource to rollback. Those Resources that raised heuristic
exceptions are subsequently told to forget the transaction. If there are
no registered Synchronization objects, the CoordinatorImpl removes itself
from the TransactionManager associations and destroys itself before
returning.
If force is TRUE, the coordinator is rolled back even if this could compromise
data integrity (i.e. even if the coordinator is prepared). If force is FALSE,
no attempt is made to roll back the coordinator if it is prepared and FALSE
is returned from the method.
|
public abstract void | rollback_only()OMG Coordinator operation required of all subclasses.
|
static final synchronized com.sun.jts.CosTransactions.CoordinatorImpl | servant(Coordinator coord)Returns the CoordinatorImpl which serves the given object.
CoordinatorImpl result = null;
if( coord instanceof CoordinatorImpl )
result = (CoordinatorImpl)coord;
else if( poa != null ) {
JCoordinator jcoord = JCoordinatorHelper.narrow(coord);
if( jcoord != null )
try {
result = (CoordinatorImpl)poa.reference_to_servant(jcoord);
if( result.thisRef == null )
result.thisRef = jcoord;
} catch( Exception exc ) {
_logger.log(Level.WARNING,"jts.cannot_locate_servant","Coordinator");
}
}
return result;
|
abstract java.lang.Long | setPermanent()Inform the CoordinatorImpl that it is no longer a temporary construct.
This is used when a request is received for an CoordinatorImpl that was
created as a temporary ancestor of a subtransaction.
|
abstract void | setTerminator(CompletionHandler terminator)Record the object that is normally responsible for directing the
CoordinatorImpl through termination. For a root CoordinatorImpl, this is a
CoordinatorTerm object; for a subordinate it is a CoordinatorResource.
|