|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.jass.hls.ont.ONT
ONT service main class. It implements the UserOpenNested service
interface offered to applications throught JNDI by the
ONTService class. A singleton ONT
object is created.
| Method Summary | |
void |
activityBegin(int timeout)
A new Activity is created. |
void |
activityCommit(javax.activity.opennested.Compensator compensator_object)
The transactional Activity associated with the client thread is committed; this implicitly causes the commit of the associated transaction. |
int |
activityGetStatus()
This operation returns the ActivityStatus of the activity associated with the calling thread. |
void |
activityRollback()
The transactional Activity associated with the client thread is rolled back; this implicitly causes the rollback of the associated transaction. |
void |
activitySetRollbackOnly()
The current Activity is modified so that the only possible outcome is rollback. |
void |
activitySetTimeout(int seconds)
This method resets the default timeout value for ONT Activities. |
java.lang.String |
getActivityName()
This operation returns a printable string describing the current activity. |
int |
getActivityTimeout()
This operation returns the default timeout value that is used for activities that are begun with a timeout value of 0. |
static ONT |
getSingleton()
Returns the unique ONT service instance. |
java.lang.String |
getTransactionName()
This operation returns a printable string describing the transaction associated with the current activity. |
void |
resume(javax.activity.opennested.ONTActivity activity)
This is a TEST method!!! It allows to resume the last suspended activity. |
javax.activity.opennested.ONTActivity |
suspend()
This is a TEST method!!! It allows to suspend the current activity. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ONT getSingleton()
public void activityBegin(int timeout)
throws javax.activity.InvalidActivityException,
javax.activity.TimeoutRangeException
activityBegin in interface javax.activity.opennested.UserOpenNestedtimeout - - is used to control the lifetime of the transactional
Activity. If the Activity has not completed by the time timeout seconds
elapses, then it is subject to being rolled back. The timeout defined by
the Open Nested Current interface is not controlled by the Open
Nested Service which rather relies on the underlying Activity Service
to manage it. Values the timeout can have are those defined by the
Activity Service.
javax.activity.InvalidActivityException
javax.activity.TimeoutRangeException
public void activityCommit(javax.activity.opennested.Compensator compensator_object)
throws javax.activity.NoActivityException,
javax.transaction.HeuristicMixedException,
javax.transaction.HeuristicRollbackException,
javax.activity.ActivityPendingException,
javax.activity.ContextPendingException,
javax.activity.NotOriginatorException,
javax.activity.opennested.ActivityRolledBackException,
javax.activity.opennested.HeuristicCompensateException,
javax.activity.opennested.HeuristicNoCompensateException
activityCommit in interface javax.activity.opennested.UserOpenNestedcompensator_object - - If the Activity/transaction can commit,
this object will be registered as the compensating action for this
activity/transaction. Failure to register the Compensator will cause the
Activity to rollback.
javax.activity.NoActivityException
javax.transaction.HeuristicMixedException
javax.transaction.HeuristicRollbackException
javax.activity.ActivityPendingException
javax.activity.ContextPendingException
javax.activity.NotOriginatorException
javax.activity.opennested.ActivityRolledBackException
javax.activity.opennested.HeuristicCompensateException
javax.activity.opennested.HeuristicNoCompensateException
public void activityRollback()
throws javax.activity.NoActivityException,
javax.activity.opennested.HeuristicNoCompensateException
activityRollback in interface javax.activity.opennested.UserOpenNestedjavax.activity.NoActivityException
javax.activity.opennested.HeuristicNoCompensateException
public void activitySetRollbackOnly()
throws javax.activity.NoActivityException
activitySetRollbackOnly in interface javax.activity.opennested.UserOpenNestedjavax.activity.NoActivityException
public void activitySetTimeout(int seconds)
throws javax.activity.TimeoutRangeException
activitySetTimeout in interface javax.activity.opennested.UserOpenNestedjavax.activity.TimeoutRangeExceptionpublic int getActivityTimeout()
getActivityTimeout in interface javax.activity.opennested.UserOpenNestedpublic int activityGetStatus()
activityGetStatus in interface javax.activity.opennested.UserOpenNestedpublic java.lang.String getActivityName()
getActivityName in interface javax.activity.opennested.UserOpenNestedpublic java.lang.String getTransactionName()
getTransactionName in interface javax.activity.opennested.UserOpenNestedpublic javax.activity.opennested.ONTActivity suspend()
suspend in interface javax.activity.opennested.UserOpenNestedpublic void resume(javax.activity.opennested.ONTActivity activity)
resume in interface javax.activity.opennested.UserOpenNestedactivity - the ONTActivity to be resumed.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||