1 18 package org.apache.activemq.command; 19 20 import org.apache.activemq.state.CommandVisitor; 21 29 public class BrokerInfo extends BaseCommand{ 30 public static final byte DATA_STRUCTURE_TYPE=CommandTypes.BROKER_INFO; 31 BrokerId brokerId; 32 String brokerURL; 33 boolean slaveBroker; 34 boolean masterBroker; 35 boolean faultTolerantConfiguration; 36 boolean networkConnection; 37 boolean duplexConnection; 38 BrokerInfo peerBrokerInfos[]; 39 String brokerName; 40 long connectionId; 41 String brokerUploadUrl; 42 String networkProperties; 43 44 45 public boolean isBrokerInfo(){ 46 return true; 47 } 48 49 public byte getDataStructureType(){ 50 return DATA_STRUCTURE_TYPE; 51 } 52 53 56 public BrokerId getBrokerId(){ 57 return brokerId; 58 } 59 60 public void setBrokerId(BrokerId brokerId){ 61 this.brokerId=brokerId; 62 } 63 64 67 public String getBrokerURL(){ 68 return brokerURL; 69 } 70 71 public void setBrokerURL(String brokerURL){ 72 this.brokerURL=brokerURL; 73 } 74 75 78 public BrokerInfo[] getPeerBrokerInfos(){ 79 return peerBrokerInfos; 80 } 81 82 public void setPeerBrokerInfos(BrokerInfo[] peerBrokerInfos){ 83 this.peerBrokerInfos=peerBrokerInfos; 84 } 85 86 89 public String getBrokerName(){ 90 return brokerName; 91 } 92 93 public void setBrokerName(String brokerName){ 94 this.brokerName=brokerName; 95 } 96 97 public Response visit(CommandVisitor visitor) throws Exception { 98 return visitor.processBrokerInfo(this); 99 } 100 101 104 public boolean isSlaveBroker(){ 105 return slaveBroker; 106 } 107 108 public void setSlaveBroker(boolean slaveBroker){ 109 this.slaveBroker=slaveBroker; 110 } 111 112 115 public boolean isMasterBroker(){ 116 return masterBroker; 117 } 118 119 123 public void setMasterBroker(boolean masterBroker){ 124 this.masterBroker=masterBroker; 125 } 126 127 131 public boolean isFaultTolerantConfiguration(){ 132 return faultTolerantConfiguration; 133 } 134 135 139 public void setFaultTolerantConfiguration(boolean faultTolerantConfiguration){ 140 this.faultTolerantConfiguration=faultTolerantConfiguration; 141 } 142 143 144 148 public boolean isDuplexConnection(){ 149 return this.duplexConnection; 150 } 151 152 153 156 public void setDuplexConnection(boolean duplexConnection){ 157 this.duplexConnection=duplexConnection; 158 } 159 160 161 165 public boolean isNetworkConnection(){ 166 return this.networkConnection; 167 } 168 169 170 173 public void setNetworkConnection(boolean networkConnection){ 174 this.networkConnection=networkConnection; 175 } 176 177 182 public long getConnectionId() { 183 return connectionId; 184 } 185 186 public void setConnectionId(long connectionId) { 187 this.connectionId = connectionId; 188 } 189 190 191 196 public String getBrokerUploadUrl() { 197 return brokerUploadUrl; 198 } 199 200 public void setBrokerUploadUrl(String brokerUploadUrl) { 201 this.brokerUploadUrl = brokerUploadUrl; 202 } 203 204 205 209 public String getNetworkProperties(){ 210 return this.networkProperties; 211 } 212 213 214 217 public void setNetworkProperties(String networkProperties){ 218 this.networkProperties=networkProperties; 219 } 220 } 221 | Popular Tags |