public class InterTupleCentreACCProxy extends java.lang.Object implements InterTupleCentreACC, OperationCompletionListener
Constructor and Description |
---|
InterTupleCentreACCProxy(java.lang.Object id) |
Modifier and Type | Method and Description |
---|---|
TucsonOpId |
doOperation(java.lang.Object tid,
AbstractTupleCentreOperation op) |
void |
operationCompleted(AbstractTupleCentreOperation op) |
TucsonOpCompletionEvent |
waitForCompletion(TucsonOpId id) |
TucsonOpCompletionEvent |
waitForCompletion(TucsonOpId id,
int timeout) |
public InterTupleCentreACCProxy(java.lang.Object id) throws TucsonInvalidTupleCentreIdException
id
- tuplecentre sourceTucsonInvalidTupleCentreIdException
- if the given Object is not a valid identifier of a tuple
centrepublic TucsonOpId doOperation(java.lang.Object tid, AbstractTupleCentreOperation op) throws TucsonOperationNotPossibleException, UnreachableNodeException, TucsonInvalidTupleCentreIdException
doOperation
in interface InterTupleCentreACC
tid
- the identifier of the tuple centre target of the operation
requestedop
- the operation requestedTucsonOperationNotPossibleException
- if the operation requested cannot be performedUnreachableNodeException
- if the target tuple centre cannot be reached over the networkTucsonInvalidTupleCentreIdException
- if the given Object is not a valid identifier of a tuple
centrepublic void operationCompleted(AbstractTupleCentreOperation op)
operationCompleted
in interface OperationCompletionListener
op
- the operation completedpublic TucsonOpCompletionEvent waitForCompletion(TucsonOpId id)
waitForCompletion
in interface InterTupleCentreACC
id
- the identifier of the operation requestedpublic TucsonOpCompletionEvent waitForCompletion(TucsonOpId id, int timeout)
waitForCompletion
in interface InterTupleCentreACC
id
- the identifier of the operation requestedtimeout
- the timeout associated to the operation