-
August 18th, 2014, 01:16 PM
#1
RoundTripDemo assistance required to increase number of items
Hello,
I have just started using LS Moderato and have successfully integrated segments of the RoundTrip Demo code into my "Second Screen" JS project for which the results have been sensational.
My application is a broadcast-only, low demand application requiring a maximum realtime update rate of approximately one item every 20s.
The challenge I currently face is to increase the number of subscribed items on the Static Grid from the existing five, to at least fifteen or more if possible.
After spending time on the Forums and studying the adapter java code, I realise that I don't know enough to make the required changes.
Please assist me in modifying the code to increase the number of items.
Thanks in advance.
-
August 19th, 2014, 09:32 AM
#2
The number of items in the roundtrip adapter is simply limited by a check in the subscribe method of the RoundTripDataAdapter class
see https://github.com/Weswit/Lightstrea...pter.java#L115
Releasing that check should be enough to increase the number of items. The check is made using a regular expression (see http://docs.oracle.com/javase/7/docs...x/Pattern.html )
-
August 20th, 2014, 07:37 AM
#3
Hello Mone,
Thank you so much for your timely response.
You have just confirmed that I have been on the right track because my java code modification are pretty close to your recommendations for L115.
I now know my problem lies with compiling the class files and creating the new jar in Eclipse.
Another question if I may, would you recommend installing LS Moderato on a Raspberry Pi that runs Raspbian with Java JDK 7 pre-installed?
best regards,
longtrain0
-
August 20th, 2014, 09:42 AM
#4
I don't see anything wrong in installing Lightstreamer on a raspberry pi, go on!
-
August 23rd, 2014, 07:16 PM
#5
RoundTripAdapter.jar problem solved
Hello Mone,
I have solved the problem with the archiving error by replacing the suggested path
>jar cvf LS_roundtrip_data_adapter.jar -C tmp_classes src_data with
>jar cvf LS_roundtrip_data_adapter.jar -C tmp_classes roundtrip_demo\adapters.
Using the suggested options creates a jar containing only one class file.
My path modification gets the two missing class files included and I can now increase the number of items.
Moderato seemed to stress the Rpi CPU, so I'll uninstall and revert to a Windows implementation on a laptop.
Thanks once again for an amazing product and great support.
regards,
longtrain0
Similar Threads
-
By syacharn in forum General
Replies: 1
Last Post: January 8th, 2014, 08:41 AM
-
By John Pick in forum Adapter SDKs
Replies: 0
Last Post: March 17th, 2013, 05:17 AM
-
By afshin_a in forum Client SDKs
Replies: 6
Last Post: August 27th, 2011, 04:43 AM
-
By jaguarg in forum Client SDKs
Replies: 1
Last Post: November 6th, 2008, 08:44 AM
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 06:07 AM.
Bookmarks