public interface OrdinaryAsynchACC extends RootACC
ACCProxyAgentSide
,
ACCProxyNodeSide
Modifier and Type | Method and Description |
---|---|
ITucsonOperation |
get(TupleCentreId tid,
TucsonOperationCompletionListener l)
get TuCSoN primitive, reads (w/o removing) all the tuples in
the given target tuplecentre. |
java.util.List<TucsonOpCompletionEvent> |
getCompletionEventsList() |
ITucsonOperation |
in(TupleCentreId tid,
Tuple tuple,
TucsonOperationCompletionListener l)
in Linda primitive, retrieves the specified tuple from the
given target tuplecentre. |
ITucsonOperation |
inp(TupleCentreId tid,
Tuple tuple,
TucsonOperationCompletionListener l)
inp Linda primitive, retrieves the specified tuple in the
given target tuplecentre. |
ITucsonOperation |
no(TupleCentreId tid,
Tuple tuple,
TucsonOperationCompletionListener l)
no TuCSoN primitive, checks absence of the specified tuple
in the given target tuplecentre. |
ITucsonOperation |
nop(TupleCentreId tid,
Tuple tuple,
TucsonOperationCompletionListener l)
nop TuCSoN primitive, checks absence of the specified tuple
in the given target tuplecentre. |
ITucsonOperation |
out(TupleCentreId tid,
Tuple tuple,
TucsonOperationCompletionListener l)
out Linda primitive, inserts the specified tuple in the
given target tuplecentre. |
ITucsonOperation |
rd(TupleCentreId tid,
Tuple tuple,
TucsonOperationCompletionListener l)
rd Linda primitive, reads (w/o removing) the specified tuple
from the given target tuplecentre. |
ITucsonOperation |
rdp(TupleCentreId tid,
Tuple tuple,
TucsonOperationCompletionListener l)
rdp Linda primitive, reads (w/o removing) the specified
tuple in the given target tuplecentre. |
ITucsonOperation |
set(TupleCentreId tid,
Tuple tuple,
TucsonOperationCompletionListener l)
set TuCSoN primitive, to replace all the tuples in the given
target tuplecentre with that specified in the given list. |
ITucsonOperation |
spawn(TupleCentreId tid,
Tuple toSpawn,
TucsonOperationCompletionListener l)
spawn TuCSoN primitive, starts a parallel computational
activity within the target node. |
enterACC, exit, getPassword, getPendingOperationsMap, getUsername, getUUID, isACCEntered
ITucsonOperation get(TupleCentreId tid, TucsonOperationCompletionListener l) throws TucsonOperationNotPossibleException, UnreachableNodeException
get
TuCSoN primitive, reads (w/o removing) all the tuples in
the given target tuplecentre.
Semantics is NOT SUSPENSIVE: if the tuple space is empty, an empty list
is returned to the TuCSoN Agent exploiting this ACC.tid
- the target TuCSoN tuplecentre id
tid
l
- the listener who should be notified upon operation completionTucsonOperationNotPossibleException
- if the requested operation cannot be carried outUnreachableNodeException
- if the target tuple centre is not reachable over the networkTupleCentreId
,
TucsonOperationCompletionListener
,
ITucsonOperation
java.util.List<TucsonOpCompletionEvent> getCompletionEventsList()
ITucsonOperation in(TupleCentreId tid, Tuple tuple, TucsonOperationCompletionListener l) throws TucsonOperationNotPossibleException, UnreachableNodeException
in
Linda primitive, retrieves the specified tuple from the
given target tuplecentre.
Notice that the primitive semantics is still SUSPENSIVE: until no tuple
is found to match the given template, no success completion answer is
forwarded to the TuCSoN Agent exploiting this ACC, but thanks to
asynchronous behaviour the TuCSoN Agent could do something else instead
of getting stuck.tid
- the target TuCSoN tuplecentre id
tid
tuple
- the tuple to be retrieved from the target tuplecentrel
- the listener who should be notified upon operation completionTucsonOperationNotPossibleException
- if the requested operation cannot be carried outUnreachableNodeException
- if the target tuple centre is not reachable over the networkTupleCentreId
,
TucsonOperationCompletionListener
,
ITucsonOperation
ITucsonOperation inp(TupleCentreId tid, Tuple tuple, TucsonOperationCompletionListener l) throws TucsonOperationNotPossibleException, UnreachableNodeException
inp
Linda primitive, retrieves the specified tuple in the
given target tuplecentre.
This time the primitive semantics is NOT SUSPENSIVE: if no tuple is found
to match the given template, a failure completion answer is forwarded to
the TuCSoN Agent exploiting this ACC.tid
- the target TuCSoN tuplecentre id
tid
tuple
- the tuple to be retrieved from the target tuplecentrel
- the listener who should be notified upon operation completionTucsonOperationNotPossibleException
- if the requested operation cannot be carried outUnreachableNodeException
- if the target tuple centre is not reachable over the networkTupleCentreId
,
TucsonOperationCompletionListener
,
ITucsonOperation
ITucsonOperation no(TupleCentreId tid, Tuple tuple, TucsonOperationCompletionListener l) throws TucsonOperationNotPossibleException, UnreachableNodeException
no
TuCSoN primitive, checks absence of the specified tuple
in the given target tuplecentre.
Notice that the primitive semantics is still SUSPENSIVE: until any tuple
is found to match the given template, no success completion answer is
forwarded to the TuCSoN Agent exploiting this ACC, but thanks to
asynchronous behaviour TuCSoN Agent could do something else instead of
getting stuck.tid
- the target TuCSoN tuplecentre id
tid
tuple
- the tuple to be checked for absence from the target
tuplecentrel
- the listener who should be notified upon operation completionTucsonOperationNotPossibleException
- if the requested operation cannot be carried outUnreachableNodeException
- if the target tuple centre is not reachable over the networkTupleCentreId
,
TucsonOperationCompletionListener
,
ITucsonOperation
ITucsonOperation nop(TupleCentreId tid, Tuple tuple, TucsonOperationCompletionListener l) throws TucsonOperationNotPossibleException, UnreachableNodeException
nop
TuCSoN primitive, checks absence of the specified tuple
in the given target tuplecentre.
This time the primitive semantics is NOT SUSPENSIVE: if a tuple is found
to match the given template, a failure completion answer is forwarded to
the TuCSoN Agent exploiting this ACC.tid
- the target TuCSoN tuplecentre id
tid
tuple
- the tuple to be checked for absence from the target
tuplecentrel
- the listener who should be notified upon operation completionTucsonOperationNotPossibleException
- if the requested operation cannot be carried outUnreachableNodeException
- if the target tuple centre is not reachable over the networkTupleCentreId
,
TucsonOperationCompletionListener
,
ITucsonOperation
ITucsonOperation out(TupleCentreId tid, Tuple tuple, TucsonOperationCompletionListener l) throws TucsonOperationNotPossibleException, UnreachableNodeException
out
Linda primitive, inserts the specified tuple in the
given target tuplecentre.
Notice that TuCSoN out primitive assumes the ORDERED version of this
primitive, hence the tuple is SUDDENLY injected in the target space (if
the primitive successfully completes)tid
- the target TuCSoN tuplecentre id
tid
tuple
- the tuple to be emitted in the target tuplecentrel
- the listener who should be notified upon operation completionTucsonOperationNotPossibleException
- if the requested operation cannot be carried outUnreachableNodeException
- if the target tuple centre is not reachable over the networkTupleCentreId
,
TucsonOperationCompletionListener
,
ITucsonOperation
ITucsonOperation rd(TupleCentreId tid, Tuple tuple, TucsonOperationCompletionListener l) throws TucsonOperationNotPossibleException, UnreachableNodeException
rd
Linda primitive, reads (w/o removing) the specified tuple
from the given target tuplecentre.
Notice that the primitive semantics is still SUSPENSIVE: until no tuple
is found to match the given template, no success completion answer is
forwarded to the TuCSoN Agent exploiting this ACC, but thanks to
asynchronous behaviour the TuCSoN Agent could do something else instead
of getting stuck.tid
- the target TuCSoN tuplecentre id
tid
tuple
- the tuple to be read from the target tuplecentrel
- the listener who should be notified upon operation completionTucsonOperationNotPossibleException
- if the requested operation cannot be carried outUnreachableNodeException
- if the target tuple centre is not reachable over the networkTupleCentreId
,
TucsonOperationCompletionListener
,
ITucsonOperation
ITucsonOperation rdp(TupleCentreId tid, Tuple tuple, TucsonOperationCompletionListener l) throws TucsonOperationNotPossibleException, UnreachableNodeException
rdp
Linda primitive, reads (w/o removing) the specified
tuple in the given target tuplecentre.
This time the primitive semantics is NOT SUSPENSIVE: if no tuple is found
to match the given template, a failure completion answer is forwarded to
the TuCSoN Agent exploiting this ACC.tid
- the target TuCSoN tuplecentre id
tid
tuple
- the tuple to be read from the target tuplecentrel
- the listener who should be notified upon operation completionTucsonOperationNotPossibleException
- if the requested operation cannot be carried outUnreachableNodeException
- if the target tuple centre is not reachable over the networkTupleCentreId
,
TucsonOperationCompletionListener
,
ITucsonOperation
ITucsonOperation set(TupleCentreId tid, Tuple tuple, TucsonOperationCompletionListener l) throws TucsonOperationNotPossibleException, UnreachableNodeException
set
TuCSoN primitive, to replace all the tuples in the given
target tuplecentre with that specified in the given list.tid
- the target TuCSoN tuplecentre id
tid
tuple
- the Prolog list of all the tuples to be injected (overwriting
space)l
- the listener who should be notified upon operation completionTucsonOperationNotPossibleException
- if the requested operation cannot be carried outUnreachableNodeException
- if the target tuple centre is not reachable over the networkTupleCentreId
,
TucsonOperationCompletionListener
,
ITucsonOperation
ITucsonOperation spawn(TupleCentreId tid, Tuple toSpawn, TucsonOperationCompletionListener l) throws TucsonOperationNotPossibleException, UnreachableNodeException
spawn
TuCSoN primitive, starts a parallel computational
activity within the target node.
Semantics is NOT SUSPENSIVE: as soon as the parallel activity has been
started by the node, the completion is returned to the TuCSoN Agent
exploiting this ACC.tid
- the target TuCSoN tuplecentre id
tid
toSpawn
- the tuple storing the activity to spawn as a parallel
computation. Must be a Prolog term with functor name
exec/solve
, storing either a Java qualified class
name (dotted-list of packages and .class
extension too) or the filepath to a valid Prolog theory and a
valid Prolog goal to be checked. E.g.:
exec('list.of.packages.YourClass.class')
OR
solve('path/to/Prolog/Theory.pl', yourGoal)
l
- the listener who should be notified upon operation completionTucsonOperationNotPossibleException
- if the requested operation cannot be carried outUnreachableNodeException
- if the target tuple centre is not reachable over the networkTupleCentreId
,
TucsonOperationCompletionListener
,
ITucsonOperation
,
Theory
,
Term