Package org.codehaus.activemq.message

Examples of org.codehaus.activemq.message.BrokerAdminCommand


    /**
     * Tells the broker to destroy a destination.
     * @param destination
     */
    public void destroyDestination(ActiveMQDestination destination) throws JMSException {
        BrokerAdminCommand command = new BrokerAdminCommand();
        command.setCommand(BrokerAdminCommand.DESTROY_DESTINATION);
        command.setDestination(destination);
        syncSendPacket(command);
    }
View Full Code Here


    /**
     * Tells the broker to destroy a destination.
     * @param destination
     */
    public void destroyDestination(ActiveMQDestination destination) throws JMSException {
        BrokerAdminCommand command = new BrokerAdminCommand();
        command.setCommand(BrokerAdminCommand.DESTROY_DESTINATION);
        command.setDestination(destination);
        syncSendPacket(command);
    }
View Full Code Here

    /**
     * Tells the broker to destroy a destination.
     * @param destination
     */
    public void destroyDestination(ActiveMQDestination destination) throws JMSException {
        BrokerAdminCommand command = new BrokerAdminCommand();
        command.setCommand(BrokerAdminCommand.DESTROY_DESTINATION);
        command.setDestination(destination);
        syncSendPacket(command);
    }
View Full Code Here

    /**
     * @return a new Packet instance
     */

    public Packet createPacket() {
        return new BrokerAdminCommand();
    }
View Full Code Here

     * @throws IOException
     */

    public void buildPacket(Packet packet, DataInput dataIn) throws IOException {
        super.buildPacket(packet, dataIn);
        BrokerAdminCommand info = (BrokerAdminCommand) packet;
        info.setCommand(dataIn.readUTF());
        info.setDestination(ActiveMQDestination.readFromStream(dataIn));
    }
View Full Code Here

     * @throws IOException thrown if an error occurs
     */

    public void writePacket(Packet packet, DataOutput dataOut) throws IOException {
        super.writePacket(packet, dataOut);
        BrokerAdminCommand info = (BrokerAdminCommand) packet;
        super.writeUTF(info.getCommand(), dataOut);
        ActiveMQDestination.writeToStream(info.getDestination(), dataOut);
    }
View Full Code Here

    /**
     * Tells the broker to destroy a destination.
     * @param destination
     */
    public void destroyDestination(ActiveMQDestination destination) throws JMSException {
        BrokerAdminCommand command = new BrokerAdminCommand();
        command.setCommand(BrokerAdminCommand.DESTROY_DESTINATION);
        command.setDestination(destination);
        syncSendPacket(command);
    }
View Full Code Here

TOP

Related Classes of org.codehaus.activemq.message.BrokerAdminCommand

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.