Package org.glassfish.admin.rest.utils
Class SseCommandHelper
- java.lang.Object
-
- org.glassfish.admin.rest.utils.SseCommandHelper
-
- All Implemented Interfaces:
Runnable
,AdminCommandEventBroker.AdminCommandListener
public class SseCommandHelper extends Object implements Runnable, AdminCommandEventBroker.AdminCommandListener
Provides bridge between CommandInvocation and ReST Response for SSE. Create it and call execute.- Author:
- martinmares
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SseCommandHelper.ActionReportProcessor
If implementation of this interface is registered then it's process() method is used to convert ActionReport before it is transfered to the client.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.glassfish.jersey.media.sse.EventOutput
invokeAsync(CommandRunner.CommandInvocation commandInvocation, SseCommandHelper.ActionReportProcessor processor)
void
onAdminCommandEvent(String name, Object event)
void
run()
-
-
-
Method Detail
-
onAdminCommandEvent
public void onAdminCommandEvent(String name, Object event)
- Specified by:
onAdminCommandEvent
in interfaceAdminCommandEventBroker.AdminCommandListener
-
invokeAsync
public static org.glassfish.jersey.media.sse.EventOutput invokeAsync(CommandRunner.CommandInvocation commandInvocation, SseCommandHelper.ActionReportProcessor processor)
-
-