Class RemoteServiceImpl
- java.lang.Object
- 
- org.eclipse.ecf.remoteservice.asyncproxy.AbstractAsyncProxyRemoteService
- 
- org.eclipse.ecf.remoteservice.AbstractRemoteService
- 
- org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceImpl
 
 
 
- 
- All Implemented Interfaces:
- InvocationHandler,- IRemoteService
 
 public class RemoteServiceImpl extends AbstractRemoteService 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.eclipse.ecf.remoteservice.AbstractRemoteServiceAbstractRemoteService.AsyncArgs, AbstractRemoteService.ProxyClassLoader
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected static longDEFAULT_TIMEOUTprotected RemoteServiceRegistrationImplregistrationprotected RegistrySharedObjectsharedObject- 
Fields inherited from class org.eclipse.ecf.remoteservice.AbstractRemoteServiceEMPTY_ARGS, futureExecutorService, futureExecutorServiceMaxThreads, iFutureExecutor
 
- 
 - 
Constructor SummaryConstructors Constructor Description RemoteServiceImpl(RegistrySharedObject sharedObject, RemoteServiceRegistrationImpl registration)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcallAsync(IRemoteCall call, IRemoteCallListener listener)Call remote method specified by call parameter asynchronously, and notify specified listener when call starts and completes.ObjectcallSync(IRemoteCall call)Call remote method specified by call parameter synchronously.protected ObjectcreateProxy(ClassLoader cl, Class[] classes)voidfireAsync(IRemoteCall call)Fire remote method specified by call parameter.protected String[]getInterfaceClassNames()protected IRemoteServiceIDgetRemoteServiceID()protected IRemoteServiceReferencegetRemoteServiceReference()- 
Methods inherited from class org.eclipse.ecf.remoteservice.AbstractRemoteServiceaddAsyncProxyClasses, addRemoteServiceProxyToProxy, callAsync, callAsync, callAsync, callAsyncWithResult, callAsyncWithTimeout, callAsyncWithTimeout, callCompletableAsync, callFutureAsync, callFutureAsync, callSync, convertInterfaceNameToAsyncInterfaceName, 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, setIFutureExecutor
 - 
Methods inherited from class org.eclipse.ecf.remoteservice.asyncproxy.AbstractAsyncProxyRemoteServicecallFuture, isReturnAsync
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_TIMEOUTprotected static final long DEFAULT_TIMEOUT 
 - 
registrationprotected RemoteServiceRegistrationImpl registration 
 - 
sharedObjectprotected RegistrySharedObject sharedObject 
 
- 
 - 
Constructor Detail- 
RemoteServiceImplpublic RemoteServiceImpl(RegistrySharedObject sharedObject, RemoteServiceRegistrationImpl registration) 
 
- 
 - 
Method Detail- 
getRemoteServiceIDprotected IRemoteServiceID getRemoteServiceID() - Specified by:
- getRemoteServiceIDin class- AbstractRemoteService
 
 - 
getRemoteServiceReferenceprotected IRemoteServiceReference getRemoteServiceReference() - Specified by:
- getRemoteServiceReferencein class- AbstractRemoteService
 
 - 
getInterfaceClassNamesprotected String[] getInterfaceClassNames() - Specified by:
- getInterfaceClassNamesin class- AbstractRemoteService
 
 - 
callAsyncpublic void callAsync(IRemoteCall call, IRemoteCallListener listener) Description copied from interface:IRemoteServiceCall remote method specified by call parameter asynchronously, and notify specified listener when call starts and completes.- Parameters:
- 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.
- Since:
- 3.0
- See Also:
- IRemoteService.callAsync(org.eclipse.ecf.remoteservice.IRemoteCall, org.eclipse.ecf.remoteservice.IRemoteCallListener)
 
 - 
callSyncpublic Object callSync(IRemoteCall call) throws ECFException Description copied from interface:IRemoteServiceCall remote method specified by call parameter synchronously.- Parameters:
- call- the remote call to make
- Returns:
- Object the result of the call. Will be nullif remote providesnullas result.
- Throws:
- ECFException- thrown if disconnect occurs, caller not currently connected, or remote throws Exception
- Since:
- 3.0
- See Also:
- IRemoteService.callSync(org.eclipse.ecf.remoteservice.IRemoteCall)
 
 - 
fireAsyncpublic void fireAsync(IRemoteCall call) throws ECFException Description copied from interface:IRemoteServiceFire remote method specified by call parameter. The remote method will be invoked as a result of asynchronous message send, but no failure/exception information will be returned, and no result will be returned- Parameters:
- call- the remote call to make. Must not be- null.
- Throws:
- ECFException- if caller not currently connected
- Since:
- 3.0
- See Also:
- IRemoteService.fireAsync(org.eclipse.ecf.remoteservice.IRemoteCall)
 
 - 
createProxyprotected Object createProxy(ClassLoader cl, Class[] classes) - Overrides:
- createProxyin class- AbstractRemoteService
- Parameters:
- cl- ClassLoader for proxy creation
- classes- the Class[] for proxy classes
- Returns:
- Object the proxy implementing the given Class[]
 
 
- 
 
-