/** * @return the name of the DestinationView */ public String getName() { return destination.getName(); }
@Override public String getName() { return next.getName(); }
@Override public String getName() { return destination.getName(); }
@Override public void addDestination(Destination destination) { this.destinations.put(destination.getName(), destination); }
protected boolean shouldDispatch(Broker broker, Message message, Destination dest) throws IOException { //if can't find .* in the prefix, default back to old logic and return true return prefix.contains(".*") && !prefix.startsWith("*") ? dest.getName().startsWith(prefix.substring(0, prefix.indexOf(".*"))) : true; }
public boolean checkQueueSize(String queueName) { long count = 0; long queueSize = 0; Map<ActiveMQDestination, Destination> destinationMap = regionBroker.getDestinationMap(); for (Map.Entry<ActiveMQDestination, Destination> entry : destinationMap.entrySet()) { if (entry.getKey().isQueue()) { if (entry.getValue().getName().matches(queueName)) { queueSize = entry.getValue().getDestinationStatistics().getMessages().getCount(); count += queueSize; if (queueSize > 0) { LOG.info("Queue has pending message: {} queueSize is: {}", entry.getValue().getName(), queueSize); } } } } return count == 0; }
@Override public void slowConsumer(ConnectionContext context, Destination destination, Subscription subs) { if (isLogAll() || isLogConsumerEvents() || isLogInternalEvents()) { LOG.info("Detected slow consumer on {}", destination.getName()); StringBuffer buf = new StringBuffer("Connection("); buf.append(subs.getConsumerInfo().getConsumerId().getConnectionId()); buf.append(") Session("); buf.append(subs.getConsumerInfo().getConsumerId().getSessionId()); buf.append(")"); LOG.info(buf.toString()); } super.slowConsumer(context, destination, subs); }
@Override public void isFull(ConnectionContext context, Destination destination, Usage<?> usage) { if (isLogAll() || isLogProducerEvents() || isLogInternalEvents()) { LOG.info("Destination is full: {}", destination.getName()); } super.isFull(context, destination, usage); }
destinations.remove(destination.getName());
log = ((BaseDestination) dest).getLog(); log.info("{} Inactive for longer than {} ms - removing ...", dest.getName(), dest.getInactiveTimeoutBeforeGC()); try { getRoot().removeDestination(context, dest.getActiveMQDestination(), isAllowTempAutoCreationOnSend() ? 1 : 0);
/** * @return the name of the DestinationView */ public String getName() { return destination.getName(); }
/** * @return the name of the DestinationView */ public String getName() { return destination.getName(); }
@Override public String getName() { return destination.getName(); }
@Override public void addDestination(Destination destination) { this.destinations.put(destination.getName(), destination); }
protected boolean shouldDispatch(Broker broker, Message message, Destination dest) throws IOException { //if can't find .* in the prefix, default back to old logic and return true return prefix.contains(".*") && !prefix.startsWith("*") ? dest.getName().startsWith(prefix.substring(0, prefix.indexOf(".*"))) : true; }
@Override public void slowConsumer(ConnectionContext context, Destination destination, Subscription subs) { if (isLogAll() || isLogConsumerEvents() || isLogInternalEvents()) { LOG.info("Detected slow consumer on {}", destination.getName()); StringBuffer buf = new StringBuffer("Connection("); buf.append(subs.getConsumerInfo().getConsumerId().getConnectionId()); buf.append(") Session("); buf.append(subs.getConsumerInfo().getConsumerId().getSessionId()); buf.append(")"); LOG.info(buf.toString()); } super.slowConsumer(context, destination, subs); }
@Override public void slowConsumer(ConnectionContext context, Destination destination, Subscription subs) { if (isLogAll() || isLogConsumerEvents() || isLogInternalEvents()) { LOG.info("Detected slow consumer on {}", destination.getName()); StringBuffer buf = new StringBuffer("Connection("); buf.append(subs.getConsumerInfo().getConsumerId().getConnectionId()); buf.append(") Session("); buf.append(subs.getConsumerInfo().getConsumerId().getSessionId()); buf.append(")"); LOG.info(buf.toString()); } super.slowConsumer(context, destination, subs); }
@Override public void isFull(ConnectionContext context, Destination destination, Usage<?> usage) { if (isLogAll() || isLogProducerEvents() || isLogInternalEvents()) { LOG.info("Destination is full: {}", destination.getName()); } super.isFull(context, destination, usage); }
@Override public void isFull(ConnectionContext context, Destination destination, Usage<?> usage) { if (isLogAll() || isLogProducerEvents() || isLogInternalEvents()) { LOG.info("Destination is full: {}", destination.getName()); } super.isFull(context, destination, usage); }
@Override public void isFull(ConnectionContext context, Destination destination, Usage usage) { if (isLogAll() || isLogProducerEvents() || isLogInternalEvents()) { LOG.info("Destination is full : " + destination.getName()); } super.isFull(context, destination, usage); }