org.glassfish.jms.admin.cli
Class JMSDestination

java.lang.Object
  extended by org.glassfish.jms.admin.cli.JMSDestination
Direct Known Subclasses:
ChangeMasterBrokerCommand, CreateJMSDestination, DeleteJMSDestination, FlushJMSDestination, GetJmsPhysicalDestinationCommand, ListJMSDestinations, UpdateJmsPhysicalDestinationCommand

public abstract class JMSDestination
extends java.lang.Object


Field Summary
protected static java.lang.String CLUSTER_CONFIG_MBEAN_NAME
           
static java.lang.String DEFAULT_MAX_ACTIVE_CONSUMERS
           
protected static java.lang.String DESTINATION_MANAGER_CONFIG_MBEAN_NAME
           
protected static java.lang.String DESTINATION_TYPE_QUEUE
           
protected static java.lang.String DESTINATION_TYPE_TOPIC
           
static java.lang.String JMS_DEST_TYPE_QUEUE
           
static java.lang.String JMS_DEST_TYPE_TOPIC
           
static java.lang.String JMXCONNECTORENV
           
static java.lang.String JMXSERVICEURLLIST
           
static java.lang.String MAX_ACTIVE_CONSUMERS_ATTRIBUTE
           
static java.lang.String MAX_ACTIVE_CONSUMERS_PROPERTY
           
protected static java.lang.String MBEAN_DOMAIN_NAME
           
 
Constructor Summary
JMSDestination()
           
 
Method Summary
protected  MQJMXConnectorInfo _getMQJMXConnectorInfo(java.lang.String targetName, JmsService jmsService, java.lang.Class mqRAClassName, ServerContext serverContext, Config config, Domain domain)
           
protected  MQJMXConnectorInfo _getMQJMXConnectorInfoForCluster(java.lang.String target, JmsService jmsService, java.lang.Class mqRAClassName, ServerContext serverContext)
          Gets the MQJMXConnector object for a cluster.
protected  javax.management.AttributeList convertProp2Attrs(java.util.Properties destProps)
           
protected  ResourceAdapter getConfiguredRA(java.lang.Class mqRAclassname, java.lang.String connectionURL, java.lang.String adminuser, java.lang.String adminpasswd)
           
protected  MQAddressList getDefaultAddressList(JmsService jmsService)
           
protected  java.lang.String getFirstJMXServiceURL(java.lang.String jmxServiceURLList)
           
protected  ActiveJmsResourceAdapter getMQAdapter(ConnectorRuntime connectorRuntime)
           
protected  MQJMXConnectorInfo getMQJMXConnectorInfo(java.lang.String target, Config config, ServerContext serverContext, Domain domain, ConnectorRuntime connectorRuntime)
           
protected  MQJMXConnectorInfo[] getMQJMXConnectorInfos(java.lang.String target, Config config, ServerContext serverContext, Domain domain, ConnectorRuntime connectorRuntime)
           
protected  CommandTarget getTypeForTarget(java.lang.String target)
           
protected  void handleException(java.lang.Exception e)
           
protected  void logAndHandleException(java.lang.Exception e, java.lang.String errorMsg)
           
protected  void validateJMSDestName(java.lang.String destName)
           
protected  void validateJMSDestType(java.lang.String destType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JMS_DEST_TYPE_TOPIC

public static final java.lang.String JMS_DEST_TYPE_TOPIC
See Also:
Constant Field Values

JMS_DEST_TYPE_QUEUE

public static final java.lang.String JMS_DEST_TYPE_QUEUE
See Also:
Constant Field Values

DEFAULT_MAX_ACTIVE_CONSUMERS

public static final java.lang.String DEFAULT_MAX_ACTIVE_CONSUMERS
See Also:
Constant Field Values

MAX_ACTIVE_CONSUMERS_ATTRIBUTE

public static final java.lang.String MAX_ACTIVE_CONSUMERS_ATTRIBUTE
See Also:
Constant Field Values

MAX_ACTIVE_CONSUMERS_PROPERTY

public static final java.lang.String MAX_ACTIVE_CONSUMERS_PROPERTY
See Also:
Constant Field Values

JMXSERVICEURLLIST

public static final java.lang.String JMXSERVICEURLLIST
See Also:
Constant Field Values

JMXCONNECTORENV

public static final java.lang.String JMXCONNECTORENV
See Also:
Constant Field Values

MBEAN_DOMAIN_NAME

protected static final java.lang.String MBEAN_DOMAIN_NAME
See Also:
Constant Field Values

DESTINATION_MANAGER_CONFIG_MBEAN_NAME

protected static final java.lang.String DESTINATION_MANAGER_CONFIG_MBEAN_NAME
See Also:
Constant Field Values

CLUSTER_CONFIG_MBEAN_NAME

protected static final java.lang.String CLUSTER_CONFIG_MBEAN_NAME
See Also:
Constant Field Values

DESTINATION_TYPE_QUEUE

protected static final java.lang.String DESTINATION_TYPE_QUEUE
See Also:
Constant Field Values

DESTINATION_TYPE_TOPIC

protected static final java.lang.String DESTINATION_TYPE_TOPIC
See Also:
Constant Field Values
Constructor Detail

JMSDestination

public JMSDestination()
Method Detail

validateJMSDestName

protected void validateJMSDestName(java.lang.String destName)

validateJMSDestType

protected void validateJMSDestType(java.lang.String destType)

getMQJMXConnectorInfo

protected MQJMXConnectorInfo getMQJMXConnectorInfo(java.lang.String target,
                                                   Config config,
                                                   ServerContext serverContext,
                                                   Domain domain,
                                                   ConnectorRuntime connectorRuntime)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

getMQJMXConnectorInfos

protected MQJMXConnectorInfo[] getMQJMXConnectorInfos(java.lang.String target,
                                                      Config config,
                                                      ServerContext serverContext,
                                                      Domain domain,
                                                      ConnectorRuntime connectorRuntime)
                                               throws ConnectorRuntimeException
Throws:
ConnectorRuntimeException

_getMQJMXConnectorInfo

protected MQJMXConnectorInfo _getMQJMXConnectorInfo(java.lang.String targetName,
                                                    JmsService jmsService,
                                                    java.lang.Class mqRAClassName,
                                                    ServerContext serverContext,
                                                    Config config,
                                                    Domain domain)
                                             throws ConnectorRuntimeException
Throws:
ConnectorRuntimeException

_getMQJMXConnectorInfoForCluster

protected MQJMXConnectorInfo _getMQJMXConnectorInfoForCluster(java.lang.String target,
                                                              JmsService jmsService,
                                                              java.lang.Class mqRAClassName,
                                                              ServerContext serverContext)
                                                       throws ConnectorRuntimeException
Gets the MQJMXConnector object for a cluster. Since this code is executed in DAS, an admin API is used to resolve hostnames and ports of cluster instances for LOCAL type brokers while creating the connectionURL.

Throws:
ConnectorRuntimeException

getConfiguredRA

protected ResourceAdapter getConfiguredRA(java.lang.Class mqRAclassname,
                                          java.lang.String connectionURL,
                                          java.lang.String adminuser,
                                          java.lang.String adminpasswd)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getFirstJMXServiceURL

protected java.lang.String getFirstJMXServiceURL(java.lang.String jmxServiceURLList)

getTypeForTarget

protected CommandTarget getTypeForTarget(java.lang.String target)

getMQAdapter

protected ActiveJmsResourceAdapter getMQAdapter(ConnectorRuntime connectorRuntime)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

getDefaultAddressList

protected MQAddressList getDefaultAddressList(JmsService jmsService)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

logAndHandleException

protected void logAndHandleException(java.lang.Exception e,
                                     java.lang.String errorMsg)
                              throws JMSAdminException
Throws:
JMSAdminException

handleException

protected void handleException(java.lang.Exception e)
                        throws JMSAdminException
Throws:
JMSAdminException

convertProp2Attrs

protected javax.management.AttributeList convertProp2Attrs(java.util.Properties destProps)


Copyright © 2012 GlassFish Community. All Rights Reserved.