public abstract class ClientService extends AbstractService implements IClientService, ISession
Callable
s across an
IBigdataFederation
.Modifier and Type | Class and Description |
---|---|
static class |
ClientService.ClientServiceFederationDelegate
Extended to attach the various performance counters reported by the
DistributedTransactionService . |
static interface |
ClientService.Options
Configuration options.
|
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
ClientService(Properties properties) |
Modifier and Type | Method and Description |
---|---|
Class<? extends IClientService> |
getServiceIface()
Returns either
IClientService . |
Session |
getSession()
A transient and dynamic property set (aka session).
|
boolean |
isOpen() |
void |
shutdown() |
void |
shutdownNow() |
AbstractService |
start()
Starts the
AbstractService . |
Future<? extends Object> |
submit(Callable<? extends Object> task)
Note: When the
ClientService is accessed via RMI the
Future MUST be a proxy. |
clearLoggingContext, destroy, getFederation, getHostname, getServiceName, getServiceUUID, setServiceUUID, setupLoggingContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, getHostname, getServiceName, getServiceUUID
public ClientService(Properties properties)
public Session getSession()
ISession
getSession
in interface ISession
public void shutdown()
shutdown
in class AbstractService
public void shutdownNow()
shutdownNow
in class AbstractService
public final boolean isOpen()
public AbstractService start()
AbstractService
AbstractService
.
Note: A AbstractService.start()
is required in order to give subclasses an
opportunity to be fully initialized before they are required to begin
operations. It is impossible to encapsulate the startup logic cleanly
without this ctor() + start() pattern. Those familiar with Objective-C
will recognized this.
start
in class AbstractService
public Class<? extends IClientService> getServiceIface()
IClientService
.getServiceIface
in interface IService
getServiceIface
in class AbstractService
public Future<? extends Object> submit(Callable<? extends Object> task)
ClientService
is accessed via RMI the
Future
MUST be a proxy. This gets handled by the concrete server
implementation.submit
in interface IRemoteExecutor
Future
for that task.AbstractDistributedFederation.getProxy(Future)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.