Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Dec 2019
    Posts
    66

    Cool 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.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    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.

  3. #3
    Senior Member
    Join Date
    Dec 2019
    Posts
    66
    Thanks Dario

    I have already implemented it using :

    Runtime.getRuntime().addShutdownHook

    thanks

 

 

Similar Threads

  1. Replies: 0
    Last Post: December 29th, 2019, 12:56 PM
  2. Replies: 3
    Last Post: September 25th, 2013, 10:24 AM
  3. Replies: 1
    Last Post: April 23rd, 2013, 10:27 AM
  4. Replies: 3
    Last Post: November 14th, 2011, 10:33 AM
  5. Replies: 1
    Last Post: February 1st, 2008, 02:52 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 11:30 AM.