/** * @throws Exception * @see org.apache.activemq.Service#stop() */ @Override public void doStop(ServiceStopper stopper) throws Exception { this.letter.stop(); if (brokerService != null && brokerService.isUseJmx()) { ObjectName brokerObjectName = brokerService.getBrokerObjectName(); brokerService.getManagementContext().unregisterMBean(createPersistenceAdapterName(brokerObjectName.toString(), toString())); } }
/** * @throws Exception * @see org.apache.activemq.Service#start() */ @Override public void doStart() throws Exception { this.letter.start(); if (brokerService != null && brokerService.isUseJmx()) { PersistenceAdapterView view = new PersistenceAdapterView(this); view.setInflightTransactionViewCallable(new Callable<String>() { @Override public String call() throws Exception { return letter.getTransactions(); } }); view.setDataViewCallable(new Callable<String>() { @Override public String call() throws Exception { return letter.getJournal().getFileMap().keySet().toString(); } }); AnnotatedMBean.registerMBean(brokerService.getManagementContext(), view, createPersistenceAdapterName(brokerService.getBrokerObjectName().toString(), toString())); } }
/** * @throws Exception * @see org.apache.activemq.Service#stop() */ @Override public void doStop(ServiceStopper stopper) throws Exception { this.letter.stop(); if (brokerService != null && brokerService.isUseJmx()) { ObjectName brokerObjectName = brokerService.getBrokerObjectName(); brokerService.getManagementContext().unregisterMBean(createPersistenceAdapterName(brokerObjectName.toString(), toString())); } }
/** * @throws Exception * @see org.apache.activemq.Service#stop() */ @Override public void doStop(ServiceStopper stopper) throws Exception { this.letter.stop(); if (brokerService != null && brokerService.isUseJmx()) { ObjectName brokerObjectName = brokerService.getBrokerObjectName(); brokerService.getManagementContext().unregisterMBean(createPersistenceAdapterName(brokerObjectName.toString(), toString())); } }
/** * @throws Exception * @see org.apache.activemq.Service#stop() */ @Override public void doStop(ServiceStopper stopper) throws Exception { this.letter.stop(); if (brokerService != null && brokerService.isUseJmx()) { ObjectName brokerObjectName = brokerService.getBrokerObjectName(); brokerService.getManagementContext().unregisterMBean(createPersistenceAdapterName(brokerObjectName.toString(), toString())); } }
/** * @throws Exception * @see org.apache.activemq.Service#start() */ @Override public void doStart() throws Exception { this.letter.start(); if (brokerService != null && brokerService.isUseJmx()) { PersistenceAdapterView view = new PersistenceAdapterView(this); view.setInflightTransactionViewCallable(new Callable<String>() { @Override public String call() throws Exception { return letter.getTransactions(); } }); view.setDataViewCallable(new Callable<String>() { @Override public String call() throws Exception { return letter.getJournal().getFileMap().keySet().toString(); } }); AnnotatedMBean.registerMBean(brokerService.getManagementContext(), view, createPersistenceAdapterName(brokerService.getBrokerObjectName().toString(), toString())); } }
/** * @throws Exception * @see org.apache.activemq.Service#start() */ @Override public void doStart() throws Exception { this.letter.start(); if (brokerService != null && brokerService.isUseJmx()) { PersistenceAdapterView view = new PersistenceAdapterView(this); view.setInflightTransactionViewCallable(new Callable<String>() { @Override public String call() throws Exception { return letter.getTransactions(); } }); view.setDataViewCallable(new Callable<String>() { @Override public String call() throws Exception { return letter.getJournal().getFileMap().keySet().toString(); } }); AnnotatedMBean.registerMBean(brokerService.getManagementContext(), view, createPersistenceAdapterName(brokerService.getBrokerObjectName().toString(), toString())); } }
/** * @throws Exception * @see org.apache.activemq.Service#start() */ @Override public void doStart() throws Exception { this.letter.start(); if (brokerService != null && brokerService.isUseJmx()) { PersistenceAdapterView view = new PersistenceAdapterView(this); view.setInflightTransactionViewCallable(new Callable<String>() { @Override public String call() throws Exception { return letter.getTransactions(); } }); view.setDataViewCallable(new Callable<String>() { @Override public String call() throws Exception { return letter.getJournal().getFileMap().keySet().toString(); } }); AnnotatedMBean.registerMBean(brokerService.getManagementContext(), view, createPersistenceAdapterName(brokerService.getBrokerObjectName().toString(), toString())); } }