public static ActiveMQTopic getSlowConsumerAdvisoryTopic(ActiveMQDestination destination) { String name = SLOW_CONSUMER_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName(); return new ActiveMQTopic(name); }
public static ActiveMQTopic getFastProducerAdvisoryTopic(ActiveMQDestination destination) { String name = FAST_PRODUCER_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName(); return new ActiveMQTopic(name); }
public static ActiveMQTopic getFullAdvisoryTopic(ActiveMQDestination destination) { String name = FULL_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName(); return new ActiveMQTopic(name); }
private static String createDestinationProperties(ActiveMQDestination destination){ String result = ""; if (destination != null){ result = createDestinationProperties(destination.getDestinationTypeAsString(), destination.getPhysicalName()); } return result; }
public static ActiveMQTopic getMessageDiscardedAdvisoryTopic(ActiveMQDestination destination) { String name = MESSAGE_DISCAREDED_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName(); return new ActiveMQTopic(name); }
public static ActiveMQTopic getMessageDLQdAdvisoryTopic(ActiveMQDestination destination) { String name = MESSAGE_DLQ_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName(); return new ActiveMQTopic(name); }
public static ActiveMQTopic getMessageDeliveredAdvisoryTopic(ActiveMQDestination destination) { String name = MESSAGE_DELIVERED_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName(); return new ActiveMQTopic(name); }
public static ActiveMQTopic getMessageConsumedAdvisoryTopic(ActiveMQDestination destination) { String name = MESSAGE_CONSUMED_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName(); return new ActiveMQTopic(name); }
private void logSend(Message copy) { copy.getSize(); Logger perDestinationsLogger = LOG; if (isPerDestinationLogger()) { ActiveMQDestination destination = copy.getDestination(); perDestinationsLogger = LoggerFactory.getLogger(LOG.getName() + "." + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName()); } perDestinationsLogger.info("Sending message: {}", copy); }
filter.append(delimiter); filter.append(AdvisorySupport.CONSUMER_ADVISORY_TOPIC_PREFIX); filter.append(destination.getDestinationTypeAsString()); filter.append("."); filter.append(destination.getPhysicalName()); filter.append(delimiter); filter.append(AdvisorySupport.VIRTUAL_DESTINATION_CONSUMER_ADVISORY_TOPIC_PREFIX); filter.append(destination.getDestinationTypeAsString()); filter.append("."); filter.append(destination.getPhysicalName());
@Override public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception { if (isLogAll() || isLogInternalEvents()) { LOG.info("Removing destination: {}:{}", destination.getDestinationTypeAsString(), destination.getPhysicalName()); } super.removeDestination(context, destination, timeout); }
@Override public org.apache.activemq.broker.region.Destination addDestination(ConnectionContext context, ActiveMQDestination destination, boolean create) throws Exception { if (isLogAll() || isLogInternalEvents()) { LOG.info("Adding destination: {}:{}", destination.getDestinationTypeAsString(), destination.getPhysicalName()); } return super.addDestination(context, destination, create); }
private static String createDestinationProperties(ActiveMQDestination destination){ String result = ""; if (destination != null){ result = createDestinationProperties(destination.getDestinationTypeAsString(), destination.getPhysicalName()); } return result; }
public static ActiveMQTopic getFastProducerAdvisoryTopic(ActiveMQDestination destination) { String name = FAST_PRODUCER_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName(); return new ActiveMQTopic(name); }
public static ActiveMQTopic getMessageDiscardedAdvisoryTopic(ActiveMQDestination destination) { String name = MESSAGE_DISCAREDED_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName(); return new ActiveMQTopic(name); }
public static ActiveMQTopic getMessageDiscardedAdvisoryTopic(ActiveMQDestination destination) { String name = MESSAGE_DISCAREDED_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName(); return new ActiveMQTopic(name); }
public static ActiveMQTopic getMessageDLQdAdvisoryTopic(ActiveMQDestination destination) { String name = MESSAGE_DLQ_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName(); return new ActiveMQTopic(name); }
public static ActiveMQTopic getMessageDeliveredAdvisoryTopic(ActiveMQDestination destination) { String name = MESSAGE_DELIVERED_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName(); return new ActiveMQTopic(name); }
private void logSend(Message copy) { copy.getSize(); Logger perDestinationsLogger = LOG; if (isPerDestinationLogger()) { ActiveMQDestination destination = copy.getDestination(); perDestinationsLogger = LoggerFactory.getLogger(LOG.getName() + "." + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName()); } perDestinationsLogger.info("Sending message: {}", copy); }
@Override public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception { if (isLogAll() || isLogInternalEvents()) { LOG.info("Removing destination: {}:{}", destination.getDestinationTypeAsString(), destination.getPhysicalName()); } super.removeDestination(context, destination, timeout); }