public abstract class AbstractTucsonAction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected TucsonTupleCentreId |
tcid
The ID of the TuCSoN tuple centre target of the operation
|
protected java.lang.String |
tupleCentreName
The name of the TuCSoN tuple centre target of the operation
|
Constructor and Description |
---|
AbstractTucsonAction(TucsonTupleCentreId tc)
Builds a TuCSoN action whose target is the given tuple centre
|
Modifier and Type | Method and Description |
---|---|
abstract ITucsonOperation |
executeAsynch(EnhancedAsynchACC acc,
TucsonOperationCompletionListener listener)
Requests execution of this TuCSoN action in ASYNCHRONOUS mode, that is,
without blocking the caller until operation completion, regardless of the
operation suspensive/predicative semantics (e.g., a
in without
matching tuples does not cause blocking the caller agent) |
abstract ITucsonOperation |
executeSynch(EnhancedSynchACC acc,
java.lang.Long timeout)
Requests execution of this TuCSoN action in SYNCHRONOUS mode, that is,
blocking the caller until operation completion (e.g., a
in
without matching tuples does cause blocking the caller agent). |
protected TucsonTupleCentreId tcid
protected java.lang.String tupleCentreName
public AbstractTucsonAction(TucsonTupleCentreId tc)
tc
- the ID of the TuCSoN tuple centre target of the operationpublic abstract ITucsonOperation executeAsynch(EnhancedAsynchACC acc, TucsonOperationCompletionListener listener) throws TucsonOperationNotPossibleException, UnreachableNodeException
in
without
matching tuples does not cause blocking the caller agent)acc
- the TuCSoN ACC in charge of action executionlistener
- the TuCSoN listener responsible for handling completion
notificationsTucsonOperationNotPossibleException
- if the coordination operation request cannot be carried outUnreachableNodeException
- if the target TuCSoN node is not available on the networkpublic abstract ITucsonOperation executeSynch(EnhancedSynchACC acc, java.lang.Long timeout) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
in
without matching tuples does cause blocking the caller agent). This
method is mainly conceived for usage within TuCSoN4JADE bridge component:
see more at http://bitbucket.org/smariani/tucson4jadeacc
- the TuCSoN ACC in charge of action executiontimeout
- the maximum timeout the caller is willing to waitTucsonOperationNotPossibleException
- if the coordination operation request cannot be carried outUnreachableNodeException
- if the target TuCSoN node is not available on the networkOperationTimeOutException
- if the chosen timeout elapses prior to completion
notification