com.bigdata.service
Interface IRemoteExecutor
- All Superinterfaces:
- Remote
- All Known Subinterfaces:
- IClientService, IDataService, IMetadataService
- All Known Implementing Classes:
- AbstractEmbeddedDataService, ClientServer.AdministrableClientService, ClientService, DataServer.AdministrableDataService, DataService, EmbeddedFederation.EmbeddedDataServiceImpl, EmbeddedMetadataService, LocalDataServiceFederation.LocalDataServiceImpl, MetadataServer.AdministrableMetadataService, MetadataService
public interface IRemoteExecutor
- extends Remote
Interface for running procedures on a remote service. In general,
applications SHOULD restrict their discovery of IRemoteExecutor to
IClientServices. Applications SHOULD NOT run arbitrary
Callables against an IDataService or an
IMetadataService unless it is necessary to access the index objects
locally on the service (index partition moves, scale-out joins, and rule
execution all do this).
- Version:
- $Id: IRemoteExecutor.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
submit
Future<? extends Object> submit(Callable<? extends Object> task)
throws RemoteException
- Submit a
Callable and return its Future. The
Callable will execute on the
IBigdataFederation.getExecutorService().
- Returns:
- The
Future for that task.
- Throws:
RejectedExecutionException - if the task can not be accepted for execution.
IOException - if there is an RMI problem.
RemoteException- TODO:
- change API to Future submit(Callable proc). This will
break existing code but reflects the correct use of generics.
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.