org.glassfish.admingui.plugin.jms
Class JmsHandlers

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

public class JmsHandlers
extends Object

Author:
jasonlee

Field Summary
protected static String ATTR_AVG_NUM_ACTIVE_CONSUMERS
           
protected static String ATTR_AVG_NUM_BACKUP_CONSUMERS
           
protected static String ATTR_AVG_NUM_CONSUMERS
           
protected static String ATTR_AVG_NUM_MSGS
           
protected static String ATTR_AVG_TOTAL_MSG_BYTES
           
protected static String ATTR_CONNECTION_ID
           
protected static String ATTR_CONSUMER_FLOW_LIMIT
           
protected static String ATTR_CREATED_BY_ADMIN
           
protected static String ATTR_DISK_RESERVED
           
protected static String ATTR_DISK_USED
           
protected static String ATTR_DISK_UTILIZATION_RATIO
           
protected static String ATTR_LIMIT_BEHAVIOR
           
protected static String ATTR_LOCAL_DELIVERY_PREFERRED
           
protected static String ATTR_MAX_BYTES_PER_MSG
           
protected static String ATTR_MAX_NUM_ACTIVE_CONSUMERS
           
protected static String ATTR_MAX_NUM_BACKUP_CONSUMERS
           
protected static String ATTR_MAX_NUM_MSGS
           
protected static String ATTR_MAX_NUM_PRODUCERS
           
protected static String ATTR_MAX_TOTAL_MSG_BYTES
           
protected static String ATTR_MSG_BYTES_IN
           
protected static String ATTR_MSG_BYTES_OUT
           
protected static String ATTR_NEXT_MESSAGE_ID
           
protected static String ATTR_NUM_ACTIVE_CONSUMERS
           
protected static String ATTR_NUM_BACKUP_CONSUMERS
           
protected static String ATTR_NUM_CONSUMERS
           
protected static String ATTR_NUM_MSGS
           
protected static String ATTR_NUM_MSGS_HELD_IN_TRANSACTION
           
protected static String ATTR_NUM_MSGS_IN
           
protected static String ATTR_NUM_MSGS_OUT
           
protected static String ATTR_NUM_MSGS_PENDING_ACKS
           
protected static String ATTR_NUM_MSGS_REMOTE
           
protected static String ATTR_NUM_PRODUCERS
           
protected static String ATTR_NUM_WILDCARD_CONSUMERS
           
protected static String ATTR_NUM_WILDCARD_PRODUCERS
           
protected static String ATTR_NUM_WILDCARDS
           
protected static String ATTR_PEAK_MSG_BYTES
           
protected static String ATTR_PEAK_NUM_ACTIVE_CONSUMERS
           
protected static String ATTR_PEAK_NUM_BACKUP_CONSUMERS
           
protected static String ATTR_PEAK_NUM_CONSUMERS
           
protected static String ATTR_PEAK_NUM_MSGS
           
protected static String ATTR_PEAK_TOTAL_MSG_BYTES
           
protected static String ATTR_STATE
           
protected static String ATTR_STATE_LABEL
           
protected static String ATTR_TEMPORARY
           
protected static String ATTR_TOTAL_MSG_BYTES
           
protected static String ATTR_TOTAL_MSG_BYTES_HELD_IN_TRANSACTION
           
protected static String ATTR_TOTAL_MSG_BYTES_REMOTE
           
protected static String ATTR_USE_DMQ
           
protected static String ATTR_VALIDATE_XML_SCHEMA_ENABLED
           
protected static String ATTR_XML_SCHEMA_URI_LIST
           
protected static String OBJECT_DEST_BASE
           
protected static String OBJECT_DEST_MGR
           
protected static String OP_CREATE
           
protected static String OP_DESTROY
           
protected static String OP_LIST_DESTINATIONS
           
protected static String OP_PURGE
           
protected static String PROP_DEST_TYPE
           
protected static String PROP_NAME
           
protected static String SUBTYPE_CONFIG
           
protected static String SUBTYPE_MONITOR
           
 
Constructor Summary
JmsHandlers()
           
 
Method Summary
protected static void buildAttributeList(AttributeList list, Map attrMap, String type)
           
static void createPhysicalDestination(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
          This handler creates a physical destination.
static void deleteJMSDest(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
           
static void flushJMSDestination(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
           This handler takes in selected rows, and removes selected config
static void getDefaultPhysicalDestinationValues(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
           This handler returns a map populated with the default values for a destination.
static void getDestinations(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
           
protected static String getJmsDestinationObjectName(String objectType, String name, String destType)
           
static void getPhysicalDestination(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
           
static void getPhysicalDestinations(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
           
static void getPhysicalDestinationStats(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
           
protected static void insureJmsBrokerIsRunning()
           
static boolean isSelected(String name, List<Map> selectedList)
           
static void pingJms(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
           
static void updatePhysicalDestination(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
          This handler updates a physical destination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT_DEST_MGR

protected static final String OBJECT_DEST_MGR
See Also:
Constant Field Values

OBJECT_DEST_BASE

protected static final String OBJECT_DEST_BASE
See Also:
Constant Field Values

SUBTYPE_CONFIG

protected static final String SUBTYPE_CONFIG
See Also:
Constant Field Values

SUBTYPE_MONITOR

protected static final String SUBTYPE_MONITOR
See Also:
Constant Field Values

OP_LIST_DESTINATIONS

protected static final String OP_LIST_DESTINATIONS
See Also:
Constant Field Values

OP_CREATE

protected static final String OP_CREATE
See Also:
Constant Field Values

OP_DESTROY

protected static final String OP_DESTROY
See Also:
Constant Field Values

OP_PURGE

protected static final String OP_PURGE
See Also:
Constant Field Values

ATTR_CONSUMER_FLOW_LIMIT

protected static final String ATTR_CONSUMER_FLOW_LIMIT
See Also:
Constant Field Values

ATTR_LIMIT_BEHAVIOR

protected static final String ATTR_LIMIT_BEHAVIOR
See Also:
Constant Field Values

ATTR_LOCAL_DELIVERY_PREFERRED

protected static final String ATTR_LOCAL_DELIVERY_PREFERRED
See Also:
Constant Field Values

ATTR_MAX_BYTES_PER_MSG

protected static final String ATTR_MAX_BYTES_PER_MSG
See Also:
Constant Field Values

ATTR_MAX_NUM_ACTIVE_CONSUMERS

protected static final String ATTR_MAX_NUM_ACTIVE_CONSUMERS
See Also:
Constant Field Values

ATTR_MAX_NUM_BACKUP_CONSUMERS

protected static final String ATTR_MAX_NUM_BACKUP_CONSUMERS
See Also:
Constant Field Values

ATTR_MAX_NUM_PRODUCERS

protected static final String ATTR_MAX_NUM_PRODUCERS
See Also:
Constant Field Values

ATTR_USE_DMQ

protected static final String ATTR_USE_DMQ
See Also:
Constant Field Values

ATTR_MAX_NUM_MSGS

protected static final String ATTR_MAX_NUM_MSGS
See Also:
Constant Field Values

ATTR_MAX_TOTAL_MSG_BYTES

protected static final String ATTR_MAX_TOTAL_MSG_BYTES
See Also:
Constant Field Values

ATTR_VALIDATE_XML_SCHEMA_ENABLED

protected static final String ATTR_VALIDATE_XML_SCHEMA_ENABLED
See Also:
Constant Field Values

ATTR_XML_SCHEMA_URI_LIST

protected static final String ATTR_XML_SCHEMA_URI_LIST
See Also:
Constant Field Values

ATTR_CREATED_BY_ADMIN

protected static final String ATTR_CREATED_BY_ADMIN
See Also:
Constant Field Values

ATTR_TEMPORARY

protected static final String ATTR_TEMPORARY
See Also:
Constant Field Values

ATTR_CONNECTION_ID

protected static final String ATTR_CONNECTION_ID
See Also:
Constant Field Values

ATTR_STATE

protected static final String ATTR_STATE
See Also:
Constant Field Values

ATTR_STATE_LABEL

protected static final String ATTR_STATE_LABEL
See Also:
Constant Field Values

ATTR_NUM_PRODUCERS

protected static final String ATTR_NUM_PRODUCERS
See Also:
Constant Field Values

ATTR_NUM_CONSUMERS

protected static final String ATTR_NUM_CONSUMERS
See Also:
Constant Field Values

ATTR_NUM_WILDCARD_PRODUCERS

protected static final String ATTR_NUM_WILDCARD_PRODUCERS
See Also:
Constant Field Values

ATTR_NUM_WILDCARD_CONSUMERS

protected static final String ATTR_NUM_WILDCARD_CONSUMERS
See Also:
Constant Field Values

ATTR_NUM_WILDCARDS

protected static final String ATTR_NUM_WILDCARDS
See Also:
Constant Field Values

ATTR_PEAK_NUM_CONSUMERS

protected static final String ATTR_PEAK_NUM_CONSUMERS
See Also:
Constant Field Values

ATTR_AVG_NUM_CONSUMERS

protected static final String ATTR_AVG_NUM_CONSUMERS
See Also:
Constant Field Values

ATTR_NUM_ACTIVE_CONSUMERS

protected static final String ATTR_NUM_ACTIVE_CONSUMERS
See Also:
Constant Field Values

ATTR_PEAK_NUM_ACTIVE_CONSUMERS

protected static final String ATTR_PEAK_NUM_ACTIVE_CONSUMERS
See Also:
Constant Field Values

ATTR_AVG_NUM_ACTIVE_CONSUMERS

protected static final String ATTR_AVG_NUM_ACTIVE_CONSUMERS
See Also:
Constant Field Values

ATTR_NUM_BACKUP_CONSUMERS

protected static final String ATTR_NUM_BACKUP_CONSUMERS
See Also:
Constant Field Values

ATTR_PEAK_NUM_BACKUP_CONSUMERS

protected static final String ATTR_PEAK_NUM_BACKUP_CONSUMERS
See Also:
Constant Field Values

ATTR_AVG_NUM_BACKUP_CONSUMERS

protected static final String ATTR_AVG_NUM_BACKUP_CONSUMERS
See Also:
Constant Field Values

ATTR_NUM_MSGS

protected static final String ATTR_NUM_MSGS
See Also:
Constant Field Values

ATTR_NUM_MSGS_REMOTE

protected static final String ATTR_NUM_MSGS_REMOTE
See Also:
Constant Field Values

ATTR_NUM_MSGS_PENDING_ACKS

protected static final String ATTR_NUM_MSGS_PENDING_ACKS
See Also:
Constant Field Values

ATTR_NUM_MSGS_HELD_IN_TRANSACTION

protected static final String ATTR_NUM_MSGS_HELD_IN_TRANSACTION
See Also:
Constant Field Values

ATTR_NEXT_MESSAGE_ID

protected static final String ATTR_NEXT_MESSAGE_ID
See Also:
Constant Field Values

ATTR_PEAK_NUM_MSGS

protected static final String ATTR_PEAK_NUM_MSGS
See Also:
Constant Field Values

ATTR_AVG_NUM_MSGS

protected static final String ATTR_AVG_NUM_MSGS
See Also:
Constant Field Values

ATTR_NUM_MSGS_IN

protected static final String ATTR_NUM_MSGS_IN
See Also:
Constant Field Values

ATTR_NUM_MSGS_OUT

protected static final String ATTR_NUM_MSGS_OUT
See Also:
Constant Field Values

ATTR_MSG_BYTES_IN

protected static final String ATTR_MSG_BYTES_IN
See Also:
Constant Field Values

ATTR_MSG_BYTES_OUT

protected static final String ATTR_MSG_BYTES_OUT
See Also:
Constant Field Values

ATTR_PEAK_MSG_BYTES

protected static final String ATTR_PEAK_MSG_BYTES
See Also:
Constant Field Values

ATTR_TOTAL_MSG_BYTES

protected static final String ATTR_TOTAL_MSG_BYTES
See Also:
Constant Field Values

ATTR_TOTAL_MSG_BYTES_REMOTE

protected static final String ATTR_TOTAL_MSG_BYTES_REMOTE
See Also:
Constant Field Values

ATTR_TOTAL_MSG_BYTES_HELD_IN_TRANSACTION

protected static final String ATTR_TOTAL_MSG_BYTES_HELD_IN_TRANSACTION
See Also:
Constant Field Values

ATTR_PEAK_TOTAL_MSG_BYTES

protected static final String ATTR_PEAK_TOTAL_MSG_BYTES
See Also:
Constant Field Values

ATTR_AVG_TOTAL_MSG_BYTES

protected static final String ATTR_AVG_TOTAL_MSG_BYTES
See Also:
Constant Field Values

ATTR_DISK_RESERVED

protected static final String ATTR_DISK_RESERVED
See Also:
Constant Field Values

ATTR_DISK_USED

protected static final String ATTR_DISK_USED
See Also:
Constant Field Values

ATTR_DISK_UTILIZATION_RATIO

protected static final String ATTR_DISK_UTILIZATION_RATIO
See Also:
Constant Field Values

PROP_NAME

protected static final String PROP_NAME
See Also:
Constant Field Values

PROP_DEST_TYPE

protected static final String PROP_DEST_TYPE
See Also:
Constant Field Values
Constructor Detail

JmsHandlers

public JmsHandlers()
Method Detail

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 ConnectorRuntimeException
Throws:
ConnectorRuntimeException


Copyright © 2012. All Rights Reserved.