|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ecf.provider.remoteservice.generic.RemoteServiceImpl
public class RemoteServiceImpl
| Field Summary | |
|---|---|
protected static long |
DEFAULT_TIMEOUT
|
protected RemoteServiceRegistrationImpl |
registration
|
protected RegistrySharedObject |
sharedObject
|
| Constructor Summary | |
|---|---|
RemoteServiceImpl(RegistrySharedObject sharedObject,
RemoteServiceRegistrationImpl registration)
|
|
| Method Summary | |
|---|---|
org.eclipse.equinox.concurrent.future.IFuture |
callAsync(IRemoteCall call)
Call remote method specified by call parameter asynchronously, and immediately return IFuture instance. |
void |
callAsync(IRemoteCall call,
IRemoteCallListener listener)
Call remote method specified by call parameter asynchronously, and notify specified listener when call starts and completes. |
java.lang.Object |
callSync(IRemoteCall call)
Call remote method specified by call parameter synchronously. |
void |
fireAsync(IRemoteCall call)
Fire remote method specified by call parameter. |
java.lang.Object |
getProxy()
Get local proxy for remote interface. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final long DEFAULT_TIMEOUT
protected RemoteServiceRegistrationImpl registration
protected RegistrySharedObject sharedObject
| Constructor Detail |
|---|
public RemoteServiceImpl(RegistrySharedObject sharedObject,
RemoteServiceRegistrationImpl registration)
| Method Detail |
|---|
public void callAsync(IRemoteCall call,
IRemoteCallListener listener)
IRemoteService
callAsync in interface 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 org.eclipse.equinox.concurrent.future.IFuture callAsync(IRemoteCall call)
IRemoteServiceIFuture instance. Returned IFuture will not be null,
and allows the caller to retrieve the actual resulting value from the remote call
(or exception).
callAsync in interface IRemoteServicecall - the remote call to make. Must not be null .
IFuture.isDone(), and then to IFuture.get()
the actual result.IRemoteService.callAsync(org.eclipse.ecf.remoteservice.IRemoteCall)
public java.lang.Object callSync(IRemoteCall call)
throws ECFException
IRemoteService
callSync in interface IRemoteServicecall - the remote call to make
null 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
fireAsync in interface IRemoteServicecall - the remote call to make. Must not be null .
ECFException - if caller not currently connectedIRemoteService.fireAsync(org.eclipse.ecf.remoteservice.IRemoteCall)
public java.lang.Object getProxy()
throws ECFException
IRemoteService
getProxy in interface IRemoteServicenull .
ECFException - if not currently connected to remote service
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||