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 interfaceSseCommandHelper.ActionReportProcessorIf 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.EventOutputinvokeAsync(CommandRunner.CommandInvocation commandInvocation, SseCommandHelper.ActionReportProcessor processor)voidonAdminCommandEvent(String name, Object event)voidrun()
-
-
-
Method Detail
-
onAdminCommandEvent
public void onAdminCommandEvent(String name, Object event)
- Specified by:
onAdminCommandEventin interfaceAdminCommandEventBroker.AdminCommandListener
-
invokeAsync
public static org.glassfish.jersey.media.sse.EventOutput invokeAsync(CommandRunner.CommandInvocation commandInvocation, SseCommandHelper.ActionReportProcessor processor)
-
-