Results 1 to 6 of 6

Hybrid View

  1. #1
    Member
    Join Date
    Nov 2010
    Location
    Beijing
    Posts
    5
    Hi Mone,

    Thank you very much for your reply. From you reply, I understand the difference between subscription and selector-filtering further.

    But I am still not clear about the workflow of selector-filtering. I have searched all the documents in lightstreamer installation files, but I don't find that.

    Can you give me a workflow chart about the selector-filtering?

    Thanks & Regards
    Gary

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Note that the selector is sent by the client during table subscription; the selector is just a string, as it is handled by custom code it can be potentially anything.

    Per each item/user combination the isSelectorAllowed method is called so you can avoid a user or item or combination from having selectors applied to their updates.

    Then on each update the isSelected is called per each update/user

    I don't have a workflow chart about selectors, please take a look at these javadoc: http://bit.ly/grxqRg

  3. #3
    Member
    Join Date
    Nov 2010
    Location
    Beijing
    Posts
    5
    Hi Mone,

    The lightstreamer filter was done in the front end, not back end, right?

    So if there are a lot of data in the front end, will there be a performance issue?

    I have another question about the mechanism adapter-to-front end, as I know the adapter class is a singleton class, so when multiple users connects to the same page, and we need to display different data to different user, how can we do that?

    And when one user left that page, the adapter will execute the unsubscribe method, so why other users still can work normally?

    Thanks & Regards
    Gary

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    The lightstreamer filter was done in the front end, not back end, right?
    The isSelected method is part of the MetadataProvider that runs in process with the Lightstreamer server. The client receives only the filtered data

    So if there are a lot of data in the front end, will there be a performance issue?
    As said the filtering is done in the server, btw as stated in the previously linked javadocs the isSelected method should execute fast.

    I have another question about the mechanism adapter-to-front end, as I know the adapter class is a singleton class, so when multiple users connects to the same page, and we need to display different data to different user, how can we do that?
    there are some threads in the forum about this topic; see in example this one: http://goo.gl/t0gfm

    And when one user left that page, the adapter will execute the unsubscribe method, so why other users still can work normally?
    the subscribe method is called when a client subscribes to an item and no other clients are subscribed to that item.
    the unsubscribe method is called when the last client unsubscribes from the item.
    This flow is illustrated in the LS_HOME/DOCS-SDKs/Genral Concepts.pdf file

 

 

Similar Threads

  1. Replies: 5
    Last Post: September 8th, 2009, 03:07 PM
  2. filter/query
    By jamesclinton in forum Client SDKs
    Replies: 2
    Last Post: April 16th, 2007, 12:54 PM

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 06:37 PM.