private abstract class MapReduceTask.TaskPart<V> extends java.lang.Object implements MapReduceTask.CancellableTaskPart
Modifier and Type | Field and Description |
---|---|
private org.infinispan.remoting.transport.Address |
executionTarget |
private java.util.concurrent.Future<V> |
f |
Constructor and Description |
---|
MapReduceTask.TaskPart(org.infinispan.remoting.transport.Address executionTarget) |
Modifier and Type | Method and Description |
---|---|
|
attachListener( |
boolean |
cancel(boolean mayInterruptIfRunning) |
abstract void |
execute() |
V |
get() |
V |
get(long timeout,
java.util.concurrent.TimeUnit unit) |
protected org.infinispan.remoting.transport.Address |
getAddress() |
org.infinispan.remoting.transport.Address |
getExecutionTarget() |
boolean |
isCancelled() |
boolean |
isDone() |
protected boolean |
locallyExecuted() |
void |
notifyDone() |
private V |
retrieveResult(java.lang.Object response) |
void |
setNetworkFuture(java.util.concurrent.Future<V> future) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUUID
private java.util.concurrent.Future<V> f
private final org.infinispan.remoting.transport.Address executionTarget
public MapReduceTask.TaskPart(org.infinispan.remoting.transport.Address executionTarget)
public org.infinispan.remoting.transport.Address getExecutionTarget()
getExecutionTarget
in interface MapReduceTask.CancellableTaskPart
publicattachListener( listener)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
public boolean isDone()
public V get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
protected org.infinispan.remoting.transport.Address getAddress()
protected boolean locallyExecuted()
public abstract void execute()
private V retrieveResult(java.lang.Object response) throws java.util.concurrent.ExecutionException
java.util.concurrent.ExecutionException
public V get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void notifyDone()
public void setNetworkFuture(java.util.concurrent.Future<V> future)