Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Feb 2012
    Location
    lodi
    Posts
    3

    pause LightStreamer

    Good evening,

    I have a question.

    we need to stop the LightStreamer with no push under certain conditions, i.e. a calendar behaviour.
    We need to stop the Lightstreamer when the data provider is not available.
    At the moment we stop the LS server by crontab. but i would like to know if is there a better solution. We built a data provider that could be called by the Lighstreamer to test if is service time or not. Is it possible to do this?

    thanks in advance.
    Bye

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    539
    Hi Bruno,

    Please could you specify if your Adapters are Remote or In-process?
    This because, in the first case leveraging the robust option of Remote Adapters you can simply disconnect and re-connect the Data Adapter according to your service calendar.
    The Lightstreamer server would always be active, but the push is interrupted and the clients can be notified of the situation with a special item.

    Instead, in case of In-process Adapters you could add some logic to your Metadata Adapter in order to allow new client sessions and/or new client subscriptions according to your service calendar.

    Furthermore, you could also leverage the JMX interface where the stop and start method can fit your requirements.

    Regards,
    Giuseppe

  3. #3
    Member
    Join Date
    Feb 2012
    Location
    lodi
    Posts
    3
    thanks a lot, we have the in process adapter, so we will explore the second case.

    Bye

 

 

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 10:10 PM.