Class JmsHandlers

java.lang.Object
org.glassfish.admingui.plugin.jms.JmsHandlers

public class JmsHandlers extends Object
Author:
jasonlee
  • Field Details

  • Constructor Details

    • JmsHandlers

      public JmsHandlers()
  • Method Details

    • getPhysicalDestination

      public static void getPhysicalDestination(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
    • getPhysicalDestinationStats

      public static void getPhysicalDestinationStats(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
    • getPhysicalDestinations

      public static void getPhysicalDestinations(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
    • createPhysicalDestination

      public static void createPhysicalDestination(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)

      This handler creates a physical destination.

      Parameters:
      context - The HandlerContext.
    • updatePhysicalDestination

      public static void updatePhysicalDestination(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)

      This handler updates a physical destination.

      Parameters:
      context - The HandlerContext.
    • deleteJMSDest

      public static void deleteJMSDest(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
    • flushJMSDestination

      public static void flushJMSDestination(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)

      This handler takes in selected rows, and removes selected config

      Parameters:
      context - The HandlerContext.
    • getDefaultPhysicalDestinationValues

      public static void getDefaultPhysicalDestinationValues(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)

      This handler returns a map populated with the default values for a destination. Currently, this is all hard-coded, based on data from the MQ documentation. When/if they expose an API for determining this programmatically, the implementation will be updated.

      If an orig map is passed in, the default value will be set to this orig map instead of creating a new one. This is used for restoring back to the default value during edit.
      Parameters:
      context - The HandlerContext.
    • pingJms

      public static void pingJms(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
    • getDestinations

      public static void getDestinations(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
    • isSelected

      public static boolean isSelected(String name, List<Map> selectedList)
    • getJmsDestinationObjectName

      protected static String getJmsDestinationObjectName(String objectType, String name, String destType)
    • buildAttributeList

      protected static void buildAttributeList(AttributeList list, Map attrMap, String type)
    • insureJmsBrokerIsRunning

      protected static void insureJmsBrokerIsRunning() throws com.sun.appserv.connectors.internal.api.ConnectorRuntimeException
      Throws:
      com.sun.appserv.connectors.internal.api.ConnectorRuntimeException