[ 
https://issues.apache.org/jira/browse/CXF-5582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14113633#comment-14113633
 ] 

Sergey Beryozkin commented on CXF-5582:
---------------------------------------

Hi Aki
This is massive, thanks for experimenting :-). 
I guess we can keep the non web-socket option for regular blog readers to 
experiment with Atom Pull Server.

You are right, we can now think of getting it integrated in the log browser; 
once a user adds a new endpoint, the browser can get an immediate WebSocket 
connection established to the endpoint. I'm not 100% sure what sort of the UI 
model to support there. Right now a user has to periodically press "Refresh" to 
get the new log events which does not seem to fit well into the process where 
someone wants to see the current events as soon as they happen. On the other 
hand having a constant continuous stream may cause the admin  lose the focus...
Here are just few possible variations:
- Remove Refresh button completely, get a stream of log events from 
AtomPullServer via web socket but with a delay between each event, say we'd 
have a delay configurable on the server, and say every 5 secs a new event is 
written to StreamingOutput. The delay will make it easier for the admin read 
the stream of events. 
- Keep Refresh button and HTTP pull in place, the admin will use Refresh 
whenever the time is right, but a browser would also have a 3rd little window 
on the right, the list of logs window is top, the selected log details window 
is in the middle and this little window at the bottom (similar to those we can 
see in the news where the running/top news or results are displayed)  and we'd 
have as you suggested AtomPushEngine pushing fatal/warning only level log 
titles into this little window, and then the admin may spot something and press 
Refresh to get more events...May be this little window would show the major log 
events from across all the registered endpoints...
May be other  combinations are possible :-)
What do you think ?
Thanks, Sergey


> Enhance CXF LogBrowser to receive Log events in real time via WebSocket 
> ------------------------------------------------------------------------
>
>                 Key: CXF-5582
>                 URL: https://issues.apache.org/jira/browse/CXF-5582
>             Project: CXF
>          Issue Type: Improvement
>          Components: Management
>            Reporter: Sergey Beryozkin
>
> CXF Log Browser is GWT based and can be used to monitor log events on 
> per-endpoint basis.
> The user registers CXF endpoints in the left-side pane and can see the 
> per-endpoint specific log events in the right pane, but the user can only get 
> these events by initiating the browser to poll the endpoints, by pressing 
> "Refresh" button.
> The browser should be able to receive real-time log notifications via Web 
> Socket and show them to the user.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to