1 18 package org.apache.activemq.command; 19 20 import org.apache.activemq.state.CommandVisitor; 21 22 29 public class ControlCommand extends BaseCommand { 30 31 public static final byte DATA_STRUCTURE_TYPE = CommandTypes.CONTROL_COMMAND; 32 33 public byte getDataStructureType() { 34 return DATA_STRUCTURE_TYPE; 35 } 36 37 private String command; 38 39 42 public String getCommand() { 43 return command; 44 } 45 46 public void setCommand(String command) { 47 this.command = command; 48 } 49 50 public Response visit(CommandVisitor visitor) throws Exception { 51 return visitor.processControlCommand(this); 52 } 53 } 54 | Popular Tags |