Package org.activemq.message

Examples of org.activemq.message.BrokerAdminCommand


     * Tells the broker to terminate its VM.  This can be used to cleanly terminate a broker running in
     * a standalone java process.  Server must have property enable.vm.shutdown=true defined
     * to allow this to work.
     */
    public void terminateBrokerVM() throws JMSException {
        BrokerAdminCommand command = new BrokerAdminCommand();
        command.setCommand(BrokerAdminCommand.SHUTDOWN_SERVER_VM);
        asyncSendPacket(command);
    }
View Full Code Here


   *
   * @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 terminate its VM.  This can be used to cleanly terminate a broker running in
     * a standalone java process.  Server must have property enable.vm.shutdown=true defined
     * to allow this to work.
     */
    public void terminateBrokerVM() throws JMSException {
        BrokerAdminCommand command = new BrokerAdminCommand();
        command.setCommand(BrokerAdminCommand.SHUTDOWN_SERVER_VM);
        asyncSendPacket(command);
    }
View Full Code Here

   *
   * @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

   *
   * @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 terminate its VM.  This can be used to cleanly terminate a broker running in
     * a standalone java process.  Server must have property enable.vm.shutdown=true defined
     * to allow this to work.
     */
    public void terminateBrokerVM() throws JMSException {
        BrokerAdminCommand command = new BrokerAdminCommand();
        command.setCommand(BrokerAdminCommand.SHUTDOWN_SERVER_VM);
        asyncSendPacket(command);
    }
View Full Code Here

   *
   * @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

TOP

Related Classes of org.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.