Refine search
@Override public void addDestinationInfo(ConnectionContext context, DestinationInfo info) throws Exception { if (isLogAll() || isLogInternalEvents()) { LOG.info("Adding destination info: {}", info); } super.addDestinationInfo(context, info); }
@Override public String toString() { StringBuffer buf = new StringBuffer(); buf.append("LoggingBrokerPlugin("); buf.append("logAll="); buf.append(isLogAll()); buf.append(", logConnectionEvents="); buf.append(isLogConnectionEvents()); buf.append(", logSessionEvents="); buf.append(isLogSessionEvents()); buf.append(", logConsumerEvents="); buf.append(isLogConsumerEvents()); buf.append(", logProducerEvents="); buf.append(isLogProducerEvents()); buf.append(", logTransactionEvents="); buf.append(isLogTransactionEvents()); buf.append(", logInternalEvents="); buf.append(isLogInternalEvents()); buf.append(")"); return buf.toString(); }
@Override public void removeDestinationInfo(ConnectionContext context, DestinationInfo info) throws Exception { if (isLogAll() || isLogInternalEvents()) { LOG.info("Removing destination info: {}", info); } super.removeDestinationInfo(context, info); }
@Override public void start() throws Exception { if (isLogAll() || isLogInternalEvents()) { LOG.info("Starting {}", getBrokerName()); } super.start(); }
@Override public void postProcessDispatch(MessageDispatch messageDispatch) { if (isLogAll() || isLogInternalEvents() || isLogConsumerEvents()) { LOG.info("postProcessDispatch: {}", messageDispatch); } super.postProcessDispatch(messageDispatch); }
@Override public void processDispatchNotification(MessageDispatchNotification messageDispatchNotification) throws Exception { if (isLogAll() || isLogInternalEvents() || isLogConsumerEvents()) { LOG.info("ProcessDispatchNotification: {}", messageDispatchNotification); } super.processDispatchNotification(messageDispatchNotification); }
@Override public void fastProducer(ConnectionContext context, ProducerInfo producerInfo,ActiveMQDestination destination) { if (isLogAll() || isLogProducerEvents() || isLogInternalEvents()) { LOG.info("Fast Producer: {}", producerInfo); } super.fastProducer(context, producerInfo, destination); }
@Override public void nowMasterBroker() { if (isLogAll() || isLogInternalEvents()) { LOG.info("Is now the master broker: {}", getBrokerName()); } super.nowMasterBroker(); }
@Override public void addBroker(Connection connection, BrokerInfo info) { if (isLogAll() || isLogInternalEvents()) { LOG.info("Adding Broker {}", info.getBrokerName()); } super.addBroker(connection, info); }
@Override public void removeBroker(Connection connection, BrokerInfo info) { if (isLogAll() || isLogInternalEvents()) { LOG.info("Removing Broker {}", info.getBrokerName()); } super.removeBroker(connection, info); }
@Override public void stop() throws Exception { if (isLogAll() || isLogInternalEvents()) { LOG.info("Stopping {}", getBrokerName()); } super.stop(); }