Class DetachListener

  • All Implemented Interfaces:
    org.glassfish.api.admin.AdminCommandEventBroker.AdminCommandListener<com.sun.enterprise.admin.remote.sse.GfSseInboundEvent>

    public class DetachListener
    extends Object
    implements org.glassfish.api.admin.AdminCommandEventBroker.AdminCommandListener<com.sun.enterprise.admin.remote.sse.GfSseInboundEvent>
    Whenever a command is executed with --detach this class will close the Server Sent Events for detached commands and give a job id.
    Author:
    Bhakti Mehta
    • Constructor Detail

      • DetachListener

        public DetachListener​(Logger logger,
                              com.sun.enterprise.admin.remote.RemoteRestAdminCommand rac,
                              boolean terse)
    • Method Detail

      • onAdminCommandEvent

        public void onAdminCommandEvent​(String name,
                                        com.sun.enterprise.admin.remote.sse.GfSseInboundEvent event)
        Specified by:
        onAdminCommandEvent in interface org.glassfish.api.admin.AdminCommandEventBroker.AdminCommandListener<com.sun.enterprise.admin.remote.sse.GfSseInboundEvent>