public class TucsonOpWrapper
extends java.lang.Object
AbstractTupleCentreOperation
to enable search based on operation type in queues.Constructor and Description |
---|
TucsonOpWrapper(EnhancedAsynchACC eaacc,
AbstractTucsonAction a,
TucsonOperationCompletionListener l)
Builds the wrapper to a TuCSoN operation.
|
TucsonOpWrapper(EnhancedAsynchACC eaacc,
AbstractTucsonAction a,
TucsonOperationCompletionListener l,
long timeout)
Builds the wrapper to a TuCSoN operation.
|
Modifier and Type | Method and Description |
---|---|
ITucsonOperation |
execute()
Executes the operation.
|
AbstractTucsonAction |
getAction()
Gets the TuCSoN action to execute
|
AbstractTupleCentreOperation |
getOp()
Gets the TuCSoN operation to execute
|
boolean |
hasBeenRemoved()
Checks whether this operation has been removed from the list of pending
operations
|
void |
setHasBeenRemoved(boolean removed)
Checks whether this operation has been removed from the list of pending
operations
|
void |
setOp(AbstractTupleCentreOperation a)
Sets the TuCSoN operation to perform
|
java.lang.String |
toString() |
public TucsonOpWrapper(EnhancedAsynchACC eaacc, AbstractTucsonAction a, TucsonOperationCompletionListener l)
eaacc
- the ACC through which the operation should be executeda
- the TuCSoN operation to executel
- the TuCSoN listener handling operation completionpublic TucsonOpWrapper(EnhancedAsynchACC eaacc, AbstractTucsonAction a, TucsonOperationCompletionListener l, long timeout)
eaacc
- the ACC through which the operation should be executeda
- the TuCSoN operation to executel
- the TuCSoN listener handling operation completiontimeout
- the maximum waiting time for operation completion (not used
atm)public final ITucsonOperation execute() throws TucsonOperationNotPossibleException, UnreachableNodeException
TucsonOperationNotPossibleException
- if the requested operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of the operation is not
network-reachablepublic final AbstractTucsonAction getAction()
public AbstractTupleCentreOperation getOp()
public boolean hasBeenRemoved()
true
or false
depending on whether this operation
has been removed from the list of pending operationspublic void setHasBeenRemoved(boolean removed)
removed
- whether this operation has been removed from the list of
pending operationspublic void setOp(AbstractTupleCentreOperation a)
a
- the TuCSoN operation to performpublic java.lang.String toString()
toString
in class java.lang.Object