Class RasserverKeepAlive


  • public class RasserverKeepAlive
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RasserverKeepAlive​(org.rasdaman.rasnet.service.ClientRassrvrServiceGrpc.ClientRassrvrServiceBlockingStub rasserverService, int clientUUID, int sessionId, long aliveIntervalMilliseconds)
      Create a new RasserverKeepAlive object that, when started, connects throw the given ClientRassrvrServiceGrpc to the rasserver and sends keep alive messages.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void finalize()
      If the stop method was not called, this method will call it.
      boolean isRunning()
      Check if the worker thread is running.
      void start()
      Creates and starts a thread that will send KeepAlive messages to the server.
      void stop()
      Stop the thread that is sending KeepAlive messages to the server.
      • Methods inherited from class java.lang.Object

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

      • RasserverKeepAlive

        public RasserverKeepAlive​(org.rasdaman.rasnet.service.ClientRassrvrServiceGrpc.ClientRassrvrServiceBlockingStub rasserverService,
                                  int clientUUID,
                                  int sessionId,
                                  long aliveIntervalMilliseconds)
        Create a new RasserverKeepAlive object that, when started, connects throw the given ClientRassrvrServiceGrpc to the rasserver and sends keep alive messages.
        Parameters:
        rasserverService - GRPC service that is connected to a rasserver
        clientUUID - String that uniquely identifies the client on the server
        sessionId - String that uniquely identifies the database session on the server
    • Method Detail

      • start

        public void start()
        Creates and starts a thread that will send KeepAlive messages to the server. After this method is called, stop must be called.
      • isRunning

        public boolean isRunning()
        Check if the worker thread is running.
        Returns:
      • stop

        public void stop()
        Stop the thread that is sending KeepAlive messages to the server.
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        If the stop method was not called, this method will call it.
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable