public ObjectName registerSlowConsumerStrategy(AbortSlowConsumerStrategy strategy) throws MalformedObjectNameException { ObjectName objectName = null; try { objectName = BrokerMBeanSupport.createAbortSlowConsumerStrategyName(brokerObjectName, strategy); if (!registeredMBeans.contains(objectName)) { AbortSlowConsumerStrategyView view = null; if (strategy instanceof AbortSlowAckConsumerStrategy) { view = new AbortSlowAckConsumerStrategyView(this, (AbortSlowAckConsumerStrategy) strategy); } else { view = new AbortSlowConsumerStrategyView(this, strategy); } if (AsyncAnnotatedMBean.registerMBean(asyncInvokeService, mbeanTimeout, managementContext, view, objectName) != null) { registeredMBeans.add(objectName); } } } catch (Exception e) { LOG.warn("Failed to register MBean {}", strategy); LOG.debug("Failure reason: ", e); } return objectName; }
public void abortConnection(String objectNameOfConsumerToAbort) { abortConnection(toObjectName(objectNameOfConsumerToAbort)); }
public void abortConsumer(String objectNameOfConsumerToAbort) { abortConsumer(toObjectName(objectNameOfConsumerToAbort)); }
public void abortConnection(String objectNameOfConsumerToAbort) { abortConnection(toObjectName(objectNameOfConsumerToAbort)); }
public void abortConsumer(String objectNameOfConsumerToAbort) { abortConsumer(toObjectName(objectNameOfConsumerToAbort)); }
public ObjectName registerSlowConsumerStrategy(AbortSlowConsumerStrategy strategy) throws MalformedObjectNameException { ObjectName objectName = null; try { objectName = createObjectName(strategy); if (!registeredMBeans.contains(objectName)) { AbortSlowConsumerStrategyView view = new AbortSlowConsumerStrategyView(this, strategy); AnnotatedMBean.registerMBean(managementContext, view, objectName); registeredMBeans.add(objectName); } } catch (Exception e) { LOG.warn("Failed to register MBean: " + strategy); LOG.debug("Failure reason: " + e, e); } return objectName; }
public void abortConnection(String objectNameOfConsumerToAbort) { abortConnection(toObjectName(objectNameOfConsumerToAbort)); }
public void abortConsumer(String objectNameOfConsumerToAbort) { abortConsumer(toObjectName(objectNameOfConsumerToAbort)); }
public ObjectName registerSlowConsumerStrategy(AbortSlowConsumerStrategy strategy) throws MalformedObjectNameException { ObjectName objectName = null; try { objectName = BrokerMBeanSupport.createAbortSlowConsumerStrategyName(brokerObjectName, strategy); if (!registeredMBeans.contains(objectName)) { AbortSlowConsumerStrategyView view = null; if (strategy instanceof AbortSlowAckConsumerStrategy) { view = new AbortSlowAckConsumerStrategyView(this, (AbortSlowAckConsumerStrategy) strategy); } else { view = new AbortSlowConsumerStrategyView(this, strategy); } AsyncAnnotatedMBean.registerMBean(asyncInvokeService, mbeanTimeout, managementContext, view, objectName); registeredMBeans.add(objectName); } } catch (Exception e) { LOG.warn("Failed to register MBean {}", strategy); LOG.debug("Failure reason: ", e); } return objectName; }
public void abortConnection(String objectNameOfConsumerToAbort) { abortConnection(toObjectName(objectNameOfConsumerToAbort)); }
public void abortConsumer(String objectNameOfConsumerToAbort) { abortConsumer(toObjectName(objectNameOfConsumerToAbort)); }
public ObjectName registerSlowConsumerStrategy(AbortSlowConsumerStrategy strategy) throws MalformedObjectNameException { ObjectName objectName = null; try { objectName = BrokerMBeanSupport.createAbortSlowConsumerStrategyName(brokerObjectName, strategy); if (!registeredMBeans.contains(objectName)) { AbortSlowConsumerStrategyView view = null; if (strategy instanceof AbortSlowAckConsumerStrategy) { view = new AbortSlowAckConsumerStrategyView(this, (AbortSlowAckConsumerStrategy) strategy); } else { view = new AbortSlowConsumerStrategyView(this, strategy); } AsyncAnnotatedMBean.registerMBean(asyncInvokeService, mbeanTimeout, managementContext, view, objectName); registeredMBeans.add(objectName); } } catch (Exception e) { LOG.warn("Failed to register MBean {}", strategy); LOG.debug("Failure reason: ", e); } return objectName; }
public void abortConnection(String objectNameOfConsumerToAbort) { abortConnection(toObjectName(objectNameOfConsumerToAbort)); }
public void abortConsumer(String objectNameOfConsumerToAbort) { abortConsumer(toObjectName(objectNameOfConsumerToAbort)); }
public ObjectName registerSlowConsumerStrategy(AbortSlowConsumerStrategy strategy) throws MalformedObjectNameException { ObjectName objectName = null; try { objectName = BrokerMBeanSupport.createAbortSlowConsumerStrategyName(brokerObjectName, strategy); if (!registeredMBeans.contains(objectName)) { AbortSlowConsumerStrategyView view = null; if (strategy instanceof AbortSlowAckConsumerStrategy) { view = new AbortSlowAckConsumerStrategyView(this, (AbortSlowAckConsumerStrategy) strategy); } else { view = new AbortSlowConsumerStrategyView(this, strategy); } AsyncAnnotatedMBean.registerMBean(asyncInvokeService, mbeanTimeout, managementContext, view, objectName); registeredMBeans.add(objectName); } } catch (Exception e) { LOG.warn("Failed to register MBean {}", strategy); LOG.debug("Failure reason: ", e); } return objectName; }