-
July 26th, 2020, 01:51 PM
#1
how can I detect if the lightstreamer server is terminated
Hi,
Is there anyway to detect if the lightstreamer service is terminated in order to do some action before the termination of the lightsreamer.
-
July 27th, 2020, 09:24 AM
#2
Hi,
Since your goal is to "do some action before the termination of the lightsreamer", I will answer to a slightly different question, that is:
"Is there anyway to detect if the lightstreamer service is about to terminate (obviously in case of a graceful shutdown)"?
The Server does not provide a callback to notify this; it just logs "Server shutdown requested".
We lean on the JVM support for the "shutdown hooks".
More details in this thread.
-
July 27th, 2020, 11:41 AM
#3
Thanks Dario
I have already implemented it using :
Runtime.getRuntime().addShutdownHook
thanks
Similar Threads
-
By ManKeer in forum General
Replies: 0
Last Post: December 29th, 2019, 12:56 PM
-
By cwt237 in forum Client SDKs
Replies: 3
Last Post: September 25th, 2013, 10:24 AM
-
By shabbirh in forum Client SDKs
Replies: 1
Last Post: April 23rd, 2013, 10:27 AM
-
By vnipt in forum General
Replies: 3
Last Post: November 14th, 2011, 10:33 AM
-
By yen_praveen in forum General
Replies: 1
Last Post: February 1st, 2008, 02:52 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 08:58 AM.
Bookmarks