Class RasserverKeepAlive
java.lang.Object
org.rasdaman.rasnet.communication.RasserverKeepAlive
-
Constructor Summary
ConstructorsConstructorDescriptionRasserverKeepAlive(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
Modifier and TypeMethodDescriptionprotected voidfinalize()If the stop method was not called, this method will call it.booleanCheck if the worker thread is running.voidstart()Creates and starts a thread that will send KeepAlive messages to the server.voidstop()Stop the thread that is sending KeepAlive messages to the server.
-
Constructor Details
-
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 rasserverclientUUID- String that uniquely identifies the client on the serversessionId- String that uniquely identifies the database session on the server
-
-
Method Details
-
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
If the stop method was not called, this method will call it.
-