public class RemoteServiceImpl extends AbstractRemoteService
AbstractRemoteService.AsyncArgs, AbstractRemoteService.ProxyClassLoader
Modifier and Type | Field and Description |
---|---|
protected static long |
DEFAULT_TIMEOUT |
protected RemoteServiceRegistrationImpl |
registration |
protected RegistrySharedObject |
sharedObject |
EMPTY_ARGS, futureExecutorService, futureExecutorServiceMaxThreads, iFutureExecutor
Constructor and Description |
---|
RemoteServiceImpl(RegistrySharedObject sharedObject,
RemoteServiceRegistrationImpl registration) |
Modifier and Type | Method and Description |
---|---|
void |
callAsync(IRemoteCall call,
IRemoteCallListener listener)
Call remote method specified by call parameter asynchronously, and notify
specified listener when call starts and completes.
|
Object |
callSync(IRemoteCall call)
Call remote method specified by call parameter synchronously.
|
void |
fireAsync(IRemoteCall call)
Fire remote method specified by call parameter.
|
protected long |
getDefaultTimeout() |
protected String[] |
getInterfaceClassNames() |
protected IRemoteServiceID |
getRemoteServiceID() |
protected IRemoteServiceReference |
getRemoteServiceReference() |
addAsyncProxyClasses, addRemoteServiceProxyToProxy, callAsync, callAsync, callAsyncWithResult, callCompletableAsync, callFutureAsync, callFutureAsync, convertInterfaceNameToAsyncInterfaceName, createProxy, createProxy, createRemoteCall, dispose, findAsyncRemoteServiceProxyClass, findAsyncRemoteServiceProxyClass, getAsyncArgs, getAsyncInvokeMethodName, getAsyncRemoteCall, getCallMethodNameForProxyInvoke, getCallParametersForProxyInvoke, getCallTimeoutForProxyInvoke, getFutureExecutorService, getIFutureExecutor, getProxy, getProxy, getRemoteService, getRemoteServiceProxyCreator, handleInvokeSyncException, handleProxyException, invoke, invokeAsync, invokeObject, invokeSync, isAsync, loadInterfaceClass, loadInterfaceClass, logWarning, setFutureExecutorService, setIFutureExecutor
callFuture
protected static final long DEFAULT_TIMEOUT
protected RemoteServiceRegistrationImpl registration
protected RegistrySharedObject sharedObject
public RemoteServiceImpl(RegistrySharedObject sharedObject, RemoteServiceRegistrationImpl registration)
protected IRemoteServiceID getRemoteServiceID()
getRemoteServiceID
in class AbstractRemoteService
protected IRemoteServiceReference getRemoteServiceReference()
getRemoteServiceReference
in class AbstractRemoteService
protected String[] getInterfaceClassNames()
getInterfaceClassNames
in class AbstractRemoteService
protected long getDefaultTimeout()
getDefaultTimeout
in class AbstractRemoteService
public void callAsync(IRemoteCall call, IRemoteCallListener listener)
IRemoteService
call
- the remote call to make. Must not be null
.listener
- the listener to notify when call starts and is completed. The
listener will be notified via the two event types
IRemoteCallStartEvent and IRemoteCallCompleteEvent. Must not
be null
.IRemoteService.callAsync(org.eclipse.ecf.remoteservice.IRemoteCall, org.eclipse.ecf.remoteservice.IRemoteCallListener)
public Object callSync(IRemoteCall call) throws ECFException
IRemoteService
call
- the remote call to makenull
if
remote provides null
as result.ECFException
- thrown if disconnect occurs, caller not currently connected,
or remote throws ExceptionIRemoteService.callSync(org.eclipse.ecf.remoteservice.IRemoteCall)
public void fireAsync(IRemoteCall call) throws ECFException
IRemoteService
call
- the remote call to make. Must not be null
.ECFException
- if caller not currently connectedIRemoteService.fireAsync(org.eclipse.ecf.remoteservice.IRemoteCall)
Copyright © 2017 Eclipse Foundation. All rights reserved.