Package net.anotheria.asg.service.remote
Class BaseRemoteServiceStub<T extends RemoteService>
- java.lang.Object
-
- net.anotheria.asg.service.remote.BaseRemoteServiceStub<T>
-
public abstract class BaseRemoteServiceStub<T extends RemoteService> extends java.lang.ObjectAbstract BaseRemoteServiceStub class.
- Version:
- $Id: $Id
- Author:
- another
-
-
Constructor Summary
Constructors Constructor Description BaseRemoteServiceStub()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract TgetDelegate()getDelegate.protected abstract voidnotifyDelegateFailed()notifyDelegateFailed.longping()Sends echo request to remote service and receives response.longping(int packetSize)Sends echo request to remote service and receives response.
-
-
-
Method Detail
-
notifyDelegateFailed
protected abstract void notifyDelegateFailed()
notifyDelegateFailed.
-
getDelegate
protected abstract T getDelegate() throws ASGRuntimeException
getDelegate.
- Returns:
- a T object.
- Throws:
ASGRuntimeException- if any.
-
ping
public long ping() throws java.rmi.RemoteExceptionSends echo request to remote service and receives response. Return duration off echo request/response in mills- Returns:
- a long.
- Throws:
java.rmi.RemoteException- if any.
-
ping
public long ping(int packetSize) throws java.rmi.RemoteExceptionSends echo request to remote service and receives response. Return duration off echo request/response in mills- Parameters:
packetSize- a int.- Returns:
- a long.
- Throws:
java.rmi.RemoteException- if any.
-
-