Package org.eclipse.ecf.remoteservice
Class AbstractRemoteCallListener
- java.lang.Object
- 
- org.eclipse.ecf.remoteservice.AbstractRemoteCallListener
 
- 
- All Implemented Interfaces:
- IRemoteCallListener
 
 public abstract class AbstractRemoteCallListener extends Object implements IRemoteCallListener Abstract implementer of IRemoteCallListener. This utility class may be used to simplify the implementation of IRemoteCallListener.- Since:
- 3.0
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected IRemoteCallremoteCallprotected IRemoteServiceReferenceremoteReference
 - 
Constructor SummaryConstructors Constructor Description AbstractRemoteCallListener()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected IRemoteCallgetRemoteCall()protected IRemoteServiceReferencegetRemoteServiceReference()voidhandleEvent(IRemoteCallEvent event)Handle remote call events.protected abstract voidhandleRemoteCallComplete(Object result)Handle remote call complete.protected voidhandleRemoteCallCompleteEvent(IRemoteCallCompleteEvent event)protected abstract voidhandleRemoteCallException(Throwable exception)Handle remote call exception.protected voidhandleRemoteCallStartEvent(IRemoteCallStartEvent event)
 
- 
- 
- 
Field Detail- 
remoteCallprotected IRemoteCall remoteCall 
 - 
remoteReferenceprotected IRemoteServiceReference remoteReference 
 
- 
 - 
Method Detail- 
handleEventpublic void handleEvent(IRemoteCallEvent event) Description copied from interface:IRemoteCallListenerHandle remote call events. The two remote call events are IRemoteCallStartEvent, and IRemoteCallCompleteEvent- Specified by:
- handleEventin interface- IRemoteCallListener
- Parameters:
- event- the event. Will not be- null.
 
 - 
getRemoteCallprotected IRemoteCall getRemoteCall() 
 - 
getRemoteServiceReferenceprotected IRemoteServiceReference getRemoteServiceReference() 
 - 
handleRemoteCallCompleteEventprotected void handleRemoteCallCompleteEvent(IRemoteCallCompleteEvent event) 
 - 
handleRemoteCallCompleteprotected abstract void handleRemoteCallComplete(Object result) Handle remote call complete. If the remote call completes successfully, this method will then be called with the given result of the call passed as the parameter. If the remote call throws an exception, thenhandleRemoteCallException(Throwable)will be called instead.- Parameters:
- result- the result of the remote call. May be- null.
- See Also:
- handleRemoteCallException(Throwable)
 
 - 
handleRemoteCallExceptionprotected abstract void handleRemoteCallException(Throwable exception) Handle remote call exception. If the remote call does not complete successfully, this method will be called with the Throwable exception that occurred. If it did complete successfully, then- Parameters:
- exception- the Throwable that occurred during execution of the remote call. Will not be- null.
 
 - 
handleRemoteCallStartEventprotected void handleRemoteCallStartEvent(IRemoteCallStartEvent event) 
 
- 
 
-