public class TucsonListenerWrapper extends java.lang.Object implements TucsonOperationCompletionListener
AsynchOpsHelper
and handling queues
update.Constructor and Description |
---|
TucsonListenerWrapper(TucsonOperationCompletionListener l,
AsynchOpsHelper aoh)
Builds a wrapper to an operation listener given the actual listener and
the asynchronous operations handler
|
Modifier and Type | Method and Description |
---|---|
TucsonOperationCompletionListener |
getActualListener()
Gets the associated TuCSoN operation completion listener
|
TucsonOpWrapper |
getOp()
Gets the operation whose completion is handled by the wrapped listener
|
AsynchOpsHelper |
getOpHelper()
Gets the associated helper
|
void |
operationCompleted(AbstractTupleCentreOperation atco) |
void |
operationCompleted(ITucsonOperation top) |
void |
setTucsonOpWrapper(TucsonOpWrapper tow)
Sets the wrapper of the TuCSoN operation whose completion should be
handled
|
public TucsonListenerWrapper(TucsonOperationCompletionListener l, AsynchOpsHelper aoh)
l
- the actual listener to trigger for operation handlingaoh
- the helper in charge of the operationpublic AsynchOpsHelper getOpHelper()
public TucsonOperationCompletionListener getActualListener()
public TucsonOpWrapper getOp()
public void operationCompleted(AbstractTupleCentreOperation atco)
operationCompleted
in interface OperationCompletionListener
atco
- the operation completedpublic void operationCompleted(ITucsonOperation top)
operationCompleted
in interface TucsonOperationCompletionListener
top
- the TuCSoN operation just completedpublic final void setTucsonOpWrapper(TucsonOpWrapper tow)
tow
- the wrapper of the TuCSoN operation whose completion should be
handled