/** * Creates the part of the ObjectName that will be used by all MBeans. * This method is public so it can be used by the TransportLoggerControl class. * @param managementContext * @return A String with the part of the ObjectName common to all the TransportLoggerView MBeans. */ public static String createTransportLoggerObjectNameRoot(ManagementContext managementContext) { return managementContext.getJmxDomainName()+":"+"Type=TransportLogger,"+"TransportLoggerName="; }
private ObjectName createConsumerQueury(String clientId) throws IOException { try { return BrokerMBeanSupport.createConsumerQueury(managementContext.getJmxDomainName(), clientId); } catch (Throwable e) { throw IOExceptionSupport.create(e); } }
private ObjectName createConnectionQuery(ManagementContext ctx, String brokerName) throws IOException { try { return BrokerMBeanSupport.createConnectionQuery(ctx.getJmxDomainName(), brokerName, clientId); } catch (Throwable e) { throw IOExceptionSupport.create(e); } }
private ObjectName createProducerQueury(String clientId) throws IOException { try { return BrokerMBeanSupport.createProducerQueury(managementContext.getJmxDomainName(), clientId); } catch (Throwable e) { throw IOExceptionSupport.create(e); } }
protected ObjectName createBrokerObjectName() throws MalformedObjectNameException { return BrokerMBeanSupport.createBrokerObjectName(getManagementContext().getJmxDomainName(), getBrokerName()); }
/** * Starts the management context. * Creates and registers a TransportLoggerControl MBean which enables the user * to enable/disable logging for all transport loggers at once. */ private void createTransportLoggerControl(int port) { try { this.managementContext = new ManagementContext(); this.managementContext.setConnectorPort(port); this.managementContext.start(); } catch (Exception e) { LOG.error("Management context could not be started, reason: " + e, e); } try { this.objectName = new ObjectName(this.managementContext.getJmxDomainName()+":"+ "Type=TransportLoggerControl"); AnnotatedMBean.registerMBean(this.managementContext, new TransportLoggerControl(this.managementContext),this.objectName); this.transportLoggerControlCreated = true; } catch (Exception e) { LOG.error("TransportLoggerControlMBean could not be registered, reason: " + e, e); } }
/** * Creates the part of the ObjectName that will be used by all MBeans. * This method is public so it can be used by the TransportLoggerControl class. * @param managementContext * @return A String with the part of the ObjectName common to all the TransportLoggerView MBeans. */ public static String createTransportLoggerObjectNameRoot(ManagementContext managementContext) { return managementContext.getJmxDomainName()+":"+"Type=TransportLogger,"+"TransportLoggerName="; }
/** * Creates the part of the ObjectName that will be used by all MBeans. * This method is public so it can be used by the TransportLoggerControl class. * @param managementContext * @return A String with the part of the ObjectName common to all the TransportLoggerView MBeans. */ public static String createTransportLoggerObjectNameRoot(ManagementContext managementContext) { return managementContext.getJmxDomainName()+":"+"Type=TransportLogger,"+"TransportLoggerName="; }
/** * Creates the part of the ObjectName that will be used by all MBeans. * This method is public so it can be used by the TransportLoggerControl class. * @param managementContext * @return A String with the part of the ObjectName common to all the TransportLoggerView MBeans. */ public static String createTransportLoggerObjectNameRoot(ManagementContext managementContext) { return managementContext.getJmxDomainName()+":"+"Type=TransportLogger,"+"TransportLoggerName="; }
/** * Creates the part of the ObjectName that will be used by all MBeans. * This method is public so it can be used by the TransportLoggerControl class. * @param managementContext * @return A String with the part of the ObjectName common to all the TransportLoggerView MBeans. */ public static String createTransportLoggerObjectNameRoot(ManagementContext managementContext) { return managementContext.getJmxDomainName()+":"+"Type=TransportLogger,"+"TransportLoggerName="; }
private ObjectName createProducerQueury(String clientId) throws IOException { try { return BrokerMBeanSupport.createProducerQueury(managementContext.getJmxDomainName(), clientId); } catch (Throwable e) { throw IOExceptionSupport.create(e); } }
private ObjectName createConsumerQueury(String clientId) throws IOException { try { return BrokerMBeanSupport.createConsumerQueury(managementContext.getJmxDomainName(), clientId); } catch (Throwable e) { throw IOExceptionSupport.create(e); } }
private ObjectName createProducerQueury(String clientId) throws IOException { try { return BrokerMBeanSupport.createProducerQueury(managementContext.getJmxDomainName(), clientId); } catch (Throwable e) { throw IOExceptionSupport.create(e); } }
private ObjectName createConnectionQuery(ManagementContext ctx, String brokerName) throws IOException { try { return BrokerMBeanSupport.createConnectionQuery(ctx.getJmxDomainName(), brokerName, clientId); } catch (Throwable e) { throw IOExceptionSupport.create(e); } }
private ObjectName createConnectionQuery(ManagementContext ctx, String brokerName) throws IOException { try { return BrokerMBeanSupport.createConnectionQuery(ctx.getJmxDomainName(), brokerName, clientId); } catch (Throwable e) { throw IOExceptionSupport.create(e); } }
private ObjectName createConnectionQuery(ManagementContext ctx, String brokerName) throws IOException { try { return BrokerMBeanSupport.createConnectionQuery(ctx.getJmxDomainName(), brokerName, clientId); } catch (Throwable e) { throw IOExceptionSupport.create(e); } }
private ObjectName createConsumerQueury(String clientId) throws IOException { try { return BrokerMBeanSupport.createConsumerQueury(managementContext.getJmxDomainName(), clientId); } catch (Throwable e) { throw IOExceptionSupport.create(e); } }
private ObjectName createProducerQueury(String clientId) throws IOException { try { return BrokerMBeanSupport.createProducerQueury(managementContext.getJmxDomainName(), clientId); } catch (Throwable e) { throw IOExceptionSupport.create(e); } }
private ObjectName createConsumerQueury(String clientId) throws IOException { try { return BrokerMBeanSupport.createConsumerQueury(managementContext.getJmxDomainName(), clientId); } catch (Throwable e) { throw IOExceptionSupport.create(e); } }
public ObjectName createDuplexNetworkConnectorObjectName(String transport) throws MalformedObjectNameException { return new ObjectName(getManagementContext().getJmxDomainName() + ":" + "BrokerName=" + JMXSupport.encodeObjectNamePart(getBrokerName()) + "," + "Type=NetworkConnector," + "NetworkConnectorName=duplex" + JMXSupport.encodeObjectNamePart(transport)); }