public final class JobMasterServiceImpl extends Object implements SimpleRMI.ServerListener, JobMasterService
| Constructor and Description |
|---|
JobMasterServiceImpl(FileClient fileClient,
String nodeID,
JobServerInformation jobWorkerInfo,
StorageManagerSpecifier storageSpec,
ClusterSpecifier clusterSpec,
boolean wrap) |
| Modifier and Type | Method and Description |
|---|---|
CancelResult |
cancel(GUID guid,
boolean mayInterruptIfRunning) |
boolean |
deleteResult(GUID guid) |
void |
destroy()
Called upon server shutdown.
|
String |
getDiagnostic() |
JobStatus |
getFinalStatus() |
NodeStatistics |
getStatistics() |
String |
getVersion()
Returns the version number of this command service instance
|
void |
init(GenericTCPServer.ServerContext context)
Called upon server start to inform the handler of context information
such as the listening address.
|
CommandStatus |
poll(GUID resultGUID,
long timeout,
TimeUnit timeunit) |
protected void |
reportStatistics(JobStatistics statistics) |
void |
startShutdown(JobStatus status) |
MonitoredFutureHandle |
submit(JobCallable<?> jobCallable) |
public JobMasterServiceImpl(FileClient fileClient, String nodeID, JobServerInformation jobWorkerInfo, StorageManagerSpecifier storageSpec, ClusterSpecifier clusterSpec, boolean wrap)
public MonitoredFutureHandle submit(JobCallable<?> jobCallable) throws RMIException, RMIInterruptedException
submit in interface JobMasterServiceRMIExceptionRMIInterruptedExceptionpublic void startShutdown(JobStatus status) throws RemoteException
startShutdown in interface JobMasterServiceRemoteExceptionpublic JobStatus getFinalStatus()
public String getDiagnostic()
protected void reportStatistics(JobStatistics statistics)
public void init(GenericTCPServer.ServerContext context)
SimpleRMI.ServerListenerinit in interface SimpleRMI.ServerListenercontext - the server contextpublic void destroy()
SimpleRMI.ServerListenerdestroy in interface SimpleRMI.ServerListenerpublic NodeStatistics getStatistics()
getStatistics in interface WorkerServicepublic String getVersion()
WorkerServicegetVersion in interface WorkerServicepublic CommandStatus poll(GUID resultGUID, long timeout, TimeUnit timeunit) throws TaskNotFoundException, InterruptedException
poll in interface MonitoredFutureServiceTaskNotFoundExceptionInterruptedExceptionpublic boolean deleteResult(GUID guid)
deleteResult in interface MonitoredFutureServicepublic CancelResult cancel(GUID guid, boolean mayInterruptIfRunning) throws TaskNotFoundException
cancel in interface MonitoredFutureServiceTaskNotFoundExceptionCopyright © 2015 Actian Corporation. All Rights Reserved.