Page 1 of 4
Component for Network Speedtest
Posted: 13 Oct 2017, 12:47
by stefan.sibitz
What's about a component the measure the Up-/Download Speed and Ping Response Time
for using on "own" server and getting a callback on server when finished with the "Result's" ?
At current state i need a way to check if one of our customers have problems with
the speed to one of our server.
The access is worldwide so a performance-component like speedtest.net would be fine
for my user's and i also know how to implement
Re: Component for Network Speedtest
Posted: 13 Oct 2017, 14:39
by Melloware
Sounds good to me. Feel free to put something together and either submit a PR or send me the code and I can get into PF Extensions.
Re: Component for Network Speedtest
Posted: 16 Oct 2017, 14:39
by stefan.sibitz
OK,
I think it will take a little bit of time,
but my destination is to made a working beta version until the end of the year
So i will contact you when the component is generally working
Re: Component for Network Speedtest
Posted: 16 Oct 2017, 14:41
by Melloware
No problem!
Re: Component for Network Speedtest
Posted: 18 Oct 2017, 10:20
by stefan.sibitz
My current "plan" is to re-write an existing/working solution from PHP to Java EE/JSF
which is currently also open source.
First I will start by creating a new JSF-Testpage and when it work's in Java/JSF
i will create a component of it...
Re: Component for Network Speedtest
Posted: 30 Oct 2017, 18:15
by stefan.sibitz
I have now finished creating the needed JavaScripts and the SVG-Graphics by simply using justgage for showing the speed-results.
Here i have a first screen-shot of my already running JSF/Primefaces Page:
I will now try to build a component which can be used within the primefaces-extension...
By the way:
This example run against my virtual machine,
so the data's are shown are very good but real
Re: Component for Network Speedtest
Posted: 30 Oct 2017, 18:30
by Melloware
Nice progress!
Re: Component for Network Speedtest
Posted: 31 Oct 2017, 08:38
by stefan.sibitz
By the way:
What is the default process to implement a "new" component to Primefaces-Extensions Project ?
1.) By making a Fork of the Primefaces-Extension Project and implement it there
or
2.) Cloning the Primefaces-Extension Project, implement it and push it back
Greetings,
Stefan.
Re: Component for Network Speedtest
Posted: 31 Oct 2017, 13:35
by Melloware
#1. Fork the project and implement the component. Then in GitHub you can "submit it as a Pull Request" for me to review.
Re: Component for Network Speedtest
Posted: 01 Nov 2017, 20:11
by stefan.sibitz
Ok, so i have now implemented this as component and it's working by now:
It get be rendered and after you call the Method start via e.g.
in a button the speedtest does the test's and show the result.
The only thing i want to realize is to add a kind of listener for the component
to get all result's of the speedtest's javascript on the server.
Here i can't found any example on how i can pass the 5 double values from the javascript
via ajax back to the method which was entered into the listener MethodExpression...
Do you have any "example" how i can do this in primefaces via ajax ?