@Override public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception { next.removeDestination(context, destination, timeout); Broker brokers[] = getListeners(); for (int i = 0; i < brokers.length; i++) { brokers[i].removeDestination(context, destination, timeout); } }
@Override public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception { next.removeDestination(context, destination, timeout); for (SecurityContext sc : securityContexts) { sc.getAuthorizedWriteDests().remove(destination); } }
@Override public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception { getNext().removeDestination(context, destination, timeout); }
public void removeDestination(ActiveMQDestination destination) throws Exception { getBroker().removeDestination(getAdminConnectionContext(), destination, 0); }
getRoot().removeDestination(context, dest.getActiveMQDestination(), isAllowTempAutoCreationOnSend() ? 1 : 0); } catch (Throwable e) { LOG.error("Failed to remove inactive destination {}", dest, e);
DestinationInfo di = iter.next(); try { broker.removeDestination(cs.getContext(), di.getDestination(), 0); } catch (Throwable e) { SERVICELOG.warn("Failed to remove tmp destination {}", di.getDestination(), e);
@Override public void removeTopic(String name) throws Exception { safeGetBroker().getContextBroker().removeDestination(BrokerSupport.getConnectionContext(safeGetBroker().getContextBroker()), new ActiveMQTopic(name), 1000); }
@Override public void removeQueue(String name) throws Exception { safeGetBroker().getContextBroker().removeDestination(BrokerSupport.getConnectionContext(safeGetBroker().getContextBroker()), new ActiveMQQueue(name), 1000); }
for (ActiveMQTopic advisoryDestination : advisoryDestinations) { try { next.removeDestination(context, advisoryDestination, -1); } catch (Exception expectedIfDestinationDidNotExistYet) {
public void removeQueue(String queueName) { try { ActiveMQQueue destination = new ActiveMQQueue(queueName); ConnectionContext connectionContext = BrokerSupport.getConnectionContext(broker.getBroker()); Destination brokerDestination = broker.getDestination(destination); List<Subscription> consumers = brokerDestination.getConsumers(); for (Subscription consumer : consumers) { consumer.remove(connectionContext, brokerDestination); brokerDestination.removeSubscription(connectionContext, consumer, 0); } broker.getBroker().removeDestination(connectionContext, destination, 1000); broker.removeDestination(destination); } catch (Exception e) { throw bomb(e); } }
@Override public void removeDestinationInfo(ConnectionContext context, DestinationInfo destInfo) throws Exception { super.removeDestinationInfo(context, destInfo); DestinationInfo info = destinations.remove(destInfo.getDestination()); if (info != null) { // ensure we don't modify (and loose/overwrite) an in-flight add advisory, so duplicate info = info.copy(); info.setDestination(destInfo.getDestination()); info.setOperationType(DestinationInfo.REMOVE_OPERATION_TYPE); ActiveMQTopic topic = AdvisorySupport.getDestinationAdvisoryTopic(destInfo.getDestination()); fireAdvisory(context, topic, info); ActiveMQTopic[] advisoryDestinations = AdvisorySupport.getAllDestinationAdvisoryTopics(destInfo.getDestination()); for (ActiveMQTopic advisoryDestination : advisoryDestinations) { try { next.removeDestination(context, advisoryDestination, -1); } catch (Exception expectedIfDestinationDidNotExistYet) { } } } }
@Override public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception { next.removeDestination(context, destination, timeout); Broker brokers[] = getListeners(); for (int i = 0; i < brokers.length; i++) { brokers[i].removeDestination(context, destination, timeout); } }
@Override public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception { next.removeDestination(context, destination, timeout); Broker brokers[] = getListeners(); for (int i = 0; i < brokers.length; i++) { brokers[i].removeDestination(context, destination, timeout); } }
@Override public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception { next.removeDestination(context, destination, timeout); Broker brokers[] = getListeners(); for (int i = 0; i < brokers.length; i++) { brokers[i].removeDestination(context, destination, timeout); } }
@Override public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception { next.removeDestination(context, destination, timeout); Broker brokers[] = getListeners(); for (int i = 0; i < brokers.length; i++) { brokers[i].removeDestination(context, destination, timeout); } }
@Override public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception { next.removeDestination(context, destination, timeout); for (SecurityContext sc : securityContexts) { sc.getAuthorizedWriteDests().remove(destination); } }
@Override public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception { getNext().removeDestination(context, destination, timeout); }
@Override public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception { next.removeDestination(context, destination, timeout); for (SecurityContext sc : securityContexts) { sc.getAuthorizedWriteDests().remove(destination); } }
@Override public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception { next.removeDestination(context, destination, timeout); for (SecurityContext sc : securityContexts) { sc.getAuthorizedWriteDests().remove(destination); } }
public void removeDestination(ActiveMQDestination destination) throws Exception { getBroker().removeDestination(getAdminConnectionContext(), destination, 0); }