U - The generic type of the Callable's aggregate result.V - The generic type of the resources in the chunk.public interface IAsynchronousClientTask<U,V> extends Remote
Callables which process chunks of resources as
 assigned by the MappedTaskMaster. This interface extends
 Remote since its methods are invoked using RMI.| Modifier and Type | Method and Description | 
|---|---|
| void | accept(V[] chunk)Accept a chunk of resources for processing. | 
| void | close()Signal that no new chunks will be tasked to client. | 
| Future<U> | getFuture()Return a proxy for the future of this task (this allows us to have both
 the proxy for the task and the proxy for its  Future). | 
void accept(V[] chunk) throws RemoteException, InterruptedException
chunk - The chunk of resources to be processed. Each resource is
            normally a file path, URL, etc.RemoteException - if there is an RMI problem.InterruptedException - if the client thread accepting the request is interrupted.void close()
           throws RemoteException,
                  InterruptedException
Callable.call() until the master
 interrupts the client using Future.cancel(boolean). However, if
 all work is complete, then the client MAY interrupt the main thread.RemoteException - if there is an RMI problem.InterruptedException - if the client thread accepting the request is interrupted.Future<U> getFuture() throws RemoteException
Future). The
 Future is required in order to interrupt the client tasks when
 the MappedTaskMaster terminates.IllegalStateException - if the future has not been set.RemoteExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.