Class BaseRemoteServiceStub<T extends RemoteService>


  • public abstract class BaseRemoteServiceStub<T extends RemoteService>
    extends java.lang.Object

    Abstract BaseRemoteServiceStub class.

    Version:
    $Id: $Id
    Author:
    another
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract T getDelegate()
      getDelegate.
      protected abstract void notifyDelegateFailed()
      notifyDelegateFailed.
      long ping()
      Sends echo request to remote service and receives response.
      long ping​(int packetSize)
      Sends echo request to remote service and receives response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseRemoteServiceStub

        public BaseRemoteServiceStub()
    • Method Detail

      • notifyDelegateFailed

        protected abstract void notifyDelegateFailed()

        notifyDelegateFailed.

      • ping

        public long ping()
                  throws java.rmi.RemoteException
        Sends 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.RemoteException
        Sends 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.