1 18 package org.apache.activemq.command; 19 20 21 27 public class DiscoveryEvent implements DataStructure { 28 29 public static final byte DATA_STRUCTURE_TYPE=CommandTypes.DISCOVERY_EVENT; 30 31 public byte getDataStructureType() { 32 return DATA_STRUCTURE_TYPE; 33 } 34 35 protected String serviceName; 36 protected String brokerName; 37 38 public DiscoveryEvent() { 39 } 40 41 public DiscoveryEvent(String serviceName) { 42 this.serviceName = serviceName; 43 } 44 45 48 public String getServiceName() { 49 return serviceName; 50 } 51 public void setServiceName(String serviceName) { 52 this.serviceName = serviceName; 53 } 54 55 58 public String getBrokerName(){ 59 return brokerName; 60 } 61 public void setBrokerName(String name){ 62 this.brokerName = name; 63 } 64 65 public boolean isMarshallAware() { 66 return false; 67 } 68 } 69 | Popular Tags |