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 String[] |
getInterfaceClassNames() |
protected IRemoteServiceID |
getRemoteServiceID() |
protected IRemoteServiceReference |
getRemoteServiceReference() |
addAsyncProxyClasses, addRemoteServiceProxyToProxy, callAsync, callAsync, callAsync, callAsyncWithResult, callAsyncWithTimeout, callAsyncWithTimeout, callCompletableAsync, callFutureAsync, callFutureAsync, callSync, convertInterfaceNameToAsyncInterfaceName, createProxy, createProxy, createRCCE, createRCCEFailure, createRCCESuccess, createRemoteCall, dispose, findAsyncRemoteServiceProxyClass, findAsyncRemoteServiceProxyClass, getAsyncArgs, getAsyncInvokeMethodName, getAsyncRemoteCall, getCallMethodNameForProxyInvoke, getCallParametersForProxyInvoke, getCallTimeoutForProxyInvoke, getDefaultTimeout, getFutureExecutorService, getIFutureExecutor, getProxy, getProxy, getRemoteService, getRemoteServiceProxyCreator, handleInvokeSyncException, handleProxyException, invoke, invokeAsync, invokeObject, invokeReturnAsync, invokeSync, isAsync, isInterfaceAsync, isMethodAsync, isOSGIAsync, loadInterfaceClass, loadInterfaceClass, logWarning, setFutureExecutorService, setIFutureExecutorcallFuture, isReturnAsyncprotected static final long DEFAULT_TIMEOUT
protected RemoteServiceRegistrationImpl registration
protected RegistrySharedObject sharedObject
public RemoteServiceImpl(RegistrySharedObject sharedObject, RemoteServiceRegistrationImpl registration)
protected IRemoteServiceID getRemoteServiceID()
getRemoteServiceID in class AbstractRemoteServiceprotected IRemoteServiceReference getRemoteServiceReference()
getRemoteServiceReference in class AbstractRemoteServiceprotected String[] getInterfaceClassNames()
getInterfaceClassNames in class AbstractRemoteServicepublic void callAsync(IRemoteCall call, IRemoteCallListener listener)
IRemoteServicecall - 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
IRemoteServicecall - 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
IRemoteServicecall - the remote call to make. Must not be null .ECFException - if caller not currently connectedIRemoteService.fireAsync(org.eclipse.ecf.remoteservice.IRemoteCall)Copyright © 2004–2020 Eclipse Foundation. All rights reserved.