public abstract class JMSDestination extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
CLUSTER_CONFIG_MBEAN_NAME |
static String |
DEFAULT_MAX_ACTIVE_CONSUMERS |
protected static String |
DESTINATION_MANAGER_CONFIG_MBEAN_NAME |
protected static String |
DESTINATION_TYPE_QUEUE |
protected static String |
DESTINATION_TYPE_TOPIC |
static String |
JMS_DEST_TYPE_QUEUE |
static String |
JMS_DEST_TYPE_TOPIC |
static String |
JMXCONNECTORENV |
static String |
JMXSERVICEURLLIST |
protected static Logger |
logger |
static String |
MAX_ACTIVE_CONSUMERS_ATTRIBUTE |
static String |
MAX_ACTIVE_CONSUMERS_PROPERTY |
protected static String |
MBEAN_DOMAIN_NAME |
Constructor and Description |
---|
JMSDestination() |
Modifier and Type | Method and Description |
---|---|
protected MQJMXConnectorInfo |
_getMQJMXConnectorInfo(String targetName,
JmsService jmsService,
Class mqRAClassName,
ServerContext serverContext,
Config config,
Domain domain) |
protected MQJMXConnectorInfo |
_getMQJMXConnectorInfoForCluster(String target,
JmsService jmsService,
Class mqRAClassName,
ServerContext serverContext)
Gets the
MQJMXConnector object for a cluster. |
protected AttributeList |
convertProp2Attrs(Properties destProps) |
protected javax.resource.spi.ResourceAdapter |
getConfiguredRA(Class mqRAclassname,
String connectionURL,
String adminuser,
String adminpasswd) |
protected MQAddressList |
getDefaultAddressList(JmsService jmsService) |
protected String |
getFirstJMXServiceURL(String jmxServiceURLList) |
protected ActiveJmsResourceAdapter |
getMQAdapter(ConnectorRuntime connectorRuntime) |
protected MQJMXConnectorInfo |
getMQJMXConnectorInfo(String target,
Config config,
ServerContext serverContext,
Domain domain,
ConnectorRuntime connectorRuntime) |
protected MQJMXConnectorInfo[] |
getMQJMXConnectorInfos(String target,
Config config,
ServerContext serverContext,
Domain domain,
ConnectorRuntime connectorRuntime) |
protected CommandTarget |
getTypeForTarget(String target) |
protected void |
handleException(Exception e) |
protected void |
logAndHandleException(Exception e,
String errorMsg) |
protected void |
validateJMSDestName(String destName) |
protected void |
validateJMSDestType(String destType) |
protected static final Logger logger
public static final String JMS_DEST_TYPE_TOPIC
public static final String JMS_DEST_TYPE_QUEUE
public static final String DEFAULT_MAX_ACTIVE_CONSUMERS
public static final String MAX_ACTIVE_CONSUMERS_ATTRIBUTE
public static final String MAX_ACTIVE_CONSUMERS_PROPERTY
public static final String JMXSERVICEURLLIST
public static final String JMXCONNECTORENV
protected static final String MBEAN_DOMAIN_NAME
protected static final String DESTINATION_MANAGER_CONFIG_MBEAN_NAME
protected static final String CLUSTER_CONFIG_MBEAN_NAME
protected static final String DESTINATION_TYPE_QUEUE
protected static final String DESTINATION_TYPE_TOPIC
protected void validateJMSDestName(String destName)
protected void validateJMSDestType(String destType)
protected MQJMXConnectorInfo getMQJMXConnectorInfo(String target, Config config, ServerContext serverContext, Domain domain, ConnectorRuntime connectorRuntime) throws Exception
Exception
protected MQJMXConnectorInfo[] getMQJMXConnectorInfos(String target, Config config, ServerContext serverContext, Domain domain, ConnectorRuntime connectorRuntime) throws ConnectorRuntimeException
ConnectorRuntimeException
protected MQJMXConnectorInfo _getMQJMXConnectorInfo(String targetName, JmsService jmsService, Class mqRAClassName, ServerContext serverContext, Config config, Domain domain) throws ConnectorRuntimeException
ConnectorRuntimeException
protected MQJMXConnectorInfo _getMQJMXConnectorInfoForCluster(String target, JmsService jmsService, Class mqRAClassName, ServerContext serverContext) throws ConnectorRuntimeException
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.ConnectorRuntimeException
protected javax.resource.spi.ResourceAdapter getConfiguredRA(Class mqRAclassname, String connectionURL, String adminuser, String adminpasswd) throws Exception
Exception
protected CommandTarget getTypeForTarget(String target)
protected ActiveJmsResourceAdapter getMQAdapter(ConnectorRuntime connectorRuntime) throws Exception
Exception
protected MQAddressList getDefaultAddressList(JmsService jmsService) throws Exception
Exception
protected void logAndHandleException(Exception e, String errorMsg) throws JMSAdminException
JMSAdminException
protected void handleException(Exception e) throws JMSAdminException
JMSAdminException
protected AttributeList convertProp2Attrs(Properties destProps)
Copyright © 2021. All rights reserved.