public abstract class AbstractTucsonAction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected alice.tucson.api.TucsonTupleCentreId |
tcid
the id of tuple centre target of the operation
|
protected java.lang.String |
tupleCentreName
the name of the tuple centre target of the operation
|
Constructor and Description |
---|
AbstractTucsonAction(alice.tucson.api.TucsonTupleCentreId tc) |
Modifier and Type | Method and Description |
---|---|
abstract alice.tucson.api.ITucsonOperation |
executeAsynch(alice.tucson.api.EnhancedAsynchACC acc,
alice.tucson.api.TucsonOperationCompletionListener listener) |
abstract alice.tucson.api.ITucsonOperation |
executeSynch(alice.tucson.api.EnhancedSynchACC acc,
java.lang.Long timeout) |
protected alice.tucson.api.TucsonTupleCentreId tcid
protected java.lang.String tupleCentreName
public AbstractTucsonAction(alice.tucson.api.TucsonTupleCentreId tc)
tc
- the TuCSoN tuple centre id target of the coordination
operationpublic abstract alice.tucson.api.ITucsonOperation executeAsynch(alice.tucson.api.EnhancedAsynchACC acc, alice.tucson.api.TucsonOperationCompletionListener listener) throws alice.tucson.api.exceptions.TucsonOperationNotPossibleException, alice.tucson.api.exceptions.UnreachableNodeException
acc
- the TuCSoN ACC ultimately in charge of action executionlistener
- the TuCSoN listener responsible for handling completion
notificationsalice.tucson.api.exceptions.TucsonOperationNotPossibleException
- if the coordination operation request cannot be carried outalice.tucson.api.exceptions.UnreachableNodeException
- if the target TuCSoN node is not available on the networkpublic abstract alice.tucson.api.ITucsonOperation executeSynch(alice.tucson.api.EnhancedSynchACC acc, java.lang.Long timeout) throws alice.tucson.api.exceptions.TucsonOperationNotPossibleException, alice.tucson.api.exceptions.UnreachableNodeException, alice.tuplecentre.api.exceptions.OperationTimeOutException
acc
- the TuCSoN ACC ultimately in charge of action executiontimeout
- the maximum timeout the caller is willing to waitalice.tucson.api.exceptions.TucsonOperationNotPossibleException
- if the coordination operation request cannot be carried outalice.tucson.api.exceptions.UnreachableNodeException
- if the target TuCSoN node is not available on the networkalice.tuplecentre.api.exceptions.OperationTimeOutException
- if the chosen timeout elapses prior to completion
notification