Results 1 to 7 of 7

Hybrid View

  1. #1
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    Hi Naga

    Refer to page 3 of the included DOCS-SDKs\sdk_adapter_dotnet\doc\DotNet Adapters.pdf for an overview of the involved architecture.
    The "Proxy Data Adapter" is provided by Lightstreamer to forward all requests to the remote part. It is implemented as the "NetworkedDataProvider" class and its source code is not provided.
    The "Remote .NET Adapter Server" is also provided by Lightstreamer and its job is to load and manage the "Remote .NET Data Adapter", which is the only part that has to be written by you. The "Remote .NET Adapter Server" contains the definition of the API classes; again, the source code of the API classes is not provided, whereas their documentation is provided in DOCS-SDKs\sdk_adapter_dotnet\doc\DotNetAdapterAPI.chm.

    Your goal is still unclear to me. Is the sentence
    is it possible to subscribe to multiple items using a single thread
    referred to the client side? May you please expand on this? Also, please check if your case is the one addressed by COMMAND mode (see chapter 3.1 in DOCS-SDKs\General Concepts.pdf).

    Dario

  2. #2
    Member
    Join Date
    Sep 2007
    Location
    Mumbai
    Posts
    4

    Post

    Hi
    What is the problem is to subscribe for each item that we define in the html(i used the sdk_clientweb\doc\tutorial_resources to create a test webapp), a new thread starts in the Subscribe method defined in the "burst.cs". what i want is for the total number of items we define in the html page like "item1, item2, ...itemn(n is constant so i use merge mode only i am not using command mode right now)", only one thread should start in the subscribe method.

    In the "/stocklistdemo/index.html" there is one object used "updateItem" but i can't find the definition of it.
    and for the same item, i am having two fields (say buyprice, sellprice") the value of the two fields vary differently ie for a give particular instance, if both the values decreases, then i have to update the buy price field by green color and sell price field by red color. But now the background color changes for the total row corresponding to the updated items(either by green or red). can u give info regarding this.

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    Hi Naga,

    the "updateItem" event handler is defined at line 152 in "/stocklistdemo/index.html".
    Together with the "formatValues" event handler, defined at line 192, they take care of formatting the displayed fields based on the field values. By using the "setRowAttribute" and "setAttribute" APIs properly, you can change the behaviour to suit your needs. The full API documentation of the provided javascript library is available in DOCS-SDKs\sdk_client_web\doc\jsdoc.

    The above answers to the Lightstreamer-related part of the question.
    About how a scalable version of our sample data generator can be designed, we leave the question open to any contributor.

    Dario

  4. #4
    Member
    Join Date
    Sep 2007
    Location
    Mumbai
    Posts
    4
    Thanks for ur reply.
    I find the definition of "setAttribute". I am now able to change the background colors of the cells individually. Its working fine.

 

 

Similar Threads

  1. Total JVM Threads
    By faa666 in forum General
    Replies: 1
    Last Post: February 20th, 2012, 09:53 AM
  2. Automatic subscribe to different items
    By abhijeetgk in forum Adapter SDKs
    Replies: 1
    Last Post: September 28th, 2011, 10:53 AM
  3. Non-blocking IDataProvider.Subscribe
    By bartol82 in forum Adapter SDKs
    Replies: 1
    Last Post: August 30th, 2011, 10:15 AM
  4. Calling IItemEventListener.Update from multiple threads
    By lizsedley in forum Adapter SDKs
    Replies: 1
    Last Post: January 22nd, 2010, 02:16 PM
  5. dynamically subscribe items
    By rd2008 in forum General
    Replies: 9
    Last Post: October 10th, 2008, 10:38 AM

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 04:49 PM.