Package org.activemq.broker

Examples of org.activemq.broker.BrokerAdmin


    /**
     * @param command
     * @throws JMSException
     */
    private void consumeBrokerAdminCommand(BrokerAdminCommand command) throws JMSException {
        BrokerAdmin brokerAdmin = brokerConnector.getBrokerContainer().getBroker().getBrokerAdmin();
        if (BrokerAdminCommand.CREATE_DESTINATION.equals(command.getCommand())) {
            brokerAdmin.createMessageContainer(command.getDestination());
        }
        else if (BrokerAdminCommand.DESTROY_DESTINATION.equals(command.getCommand())) {
            brokerAdmin.destoryMessageContainer(command.getDestination());
        }
        else if (BrokerAdminCommand.EMPTY_DESTINATION.equals(command.getCommand())) {
            brokerAdmin.getMessageContainerAdmin(command.getDestination()).empty();
        }
        else {
            throw new JMSException("Broker Admin Command type: " + command.getCommand() + " not recognized.");
        }
    }
View Full Code Here


    /**
     * @param command
     * @throws JMSException
     */
    private void consumeBrokerAdminCommand(BrokerAdminCommand command) throws JMSException {
        BrokerAdmin brokerAdmin = brokerConnector.getBrokerContainer().getBroker().getBrokerAdmin();
        if (BrokerAdminCommand.CREATE_DESTINATION.equals(command.getCommand())) {
            brokerAdmin.createMessageContainer(command.getDestination());
        }
        else if (BrokerAdminCommand.DESTROY_DESTINATION.equals(command.getCommand())) {
            brokerAdmin.destoryMessageContainer(command.getDestination());
        }
        else if (BrokerAdminCommand.EMPTY_DESTINATION.equals(command.getCommand())) {
            brokerAdmin.getMessageContainerAdmin(command.getDestination()).empty();
        }
        else if (BrokerAdminCommand.SHUTDOWN_SERVER_VM.equals(command.getCommand())) {
            if (Boolean.getBoolean("enable.vm.shutdown")) {
                log.info("processing command=" + BrokerAdminCommand.SHUTDOWN_SERVER_VM);
                System.exit(1);
View Full Code Here

    /**
     * @param command
     * @throws JMSException
     */
    private void consumeBrokerAdminCommand(BrokerAdminCommand command) throws JMSException {
        BrokerAdmin brokerAdmin = brokerConnector.getBrokerContainer().getBroker().getBrokerAdmin();
        if (BrokerAdminCommand.CREATE_DESTINATION.equals(command.getCommand())) {
            brokerAdmin.createMessageContainer(command.getDestination());
        }
        else if (BrokerAdminCommand.DESTROY_DESTINATION.equals(command.getCommand())) {
            brokerAdmin.destoryMessageContainer(command.getDestination());
        }
        else if (BrokerAdminCommand.EMPTY_DESTINATION.equals(command.getCommand())) {
            brokerAdmin.getMessageContainerAdmin(command.getDestination()).empty();
        }
        else if (BrokerAdminCommand.SHUTDOWN_SERVER_VM.equals(command.getCommand())) {
            if (Boolean.getBoolean("enable.vm.shutdown")) {
                log.info("processing command=" + BrokerAdminCommand.SHUTDOWN_SERVER_VM);
                System.exit(1);
View Full Code Here

    /**
     * @param command
     * @throws JMSException
     */
    private void consumeBrokerAdminCommand(BrokerAdminCommand command) throws JMSException {
        BrokerAdmin brokerAdmin = brokerConnector.getBrokerContainer().getBroker().getBrokerAdmin();
        if (BrokerAdminCommand.CREATE_DESTINATION.equals(command.getCommand())) {
            brokerAdmin.createMessageContainer(command.getDestination());
        }
        else if (BrokerAdminCommand.DESTROY_DESTINATION.equals(command.getCommand())) {
            brokerAdmin.destoryMessageContainer(command.getDestination());
        }
        else if (BrokerAdminCommand.EMPTY_DESTINATION.equals(command.getCommand())) {
            brokerAdmin.getMessageContainerAdmin(command.getDestination()).empty();
        }
        else {
            throw new JMSException("Broker Admin Command type: " + command.getCommand() + " not recognized.");
        }
    }
View Full Code Here

TOP

Related Classes of org.activemq.broker.BrokerAdmin

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.