org.activemq.message
Class BrokerInfo

java.lang.Object
  extended by org.activemq.message.AbstractPacket
      extended by org.activemq.message.BrokerInfo
All Implemented Interfaces:
Packet
Direct Known Subclasses:
LocalBrokerInfo

public class BrokerInfo
extends AbstractPacket

Information about a connected Broker


Field Summary
 
Fields inherited from class org.activemq.message.AbstractPacket
bitArray, BROKERS_VISITED_INDEX, cachedHashCode, RECEIPT_REQUIRED_INDEX
 
Fields inherited from interface org.activemq.message.Packet
ACTIVEMQ_BROKER_INFO, ACTIVEMQ_BYTES_MESSAGE, ACTIVEMQ_CONNECTION_INFO, ACTIVEMQ_MAP_MESSAGE, ACTIVEMQ_MESSAGE, ACTIVEMQ_MSG_ACK, ACTIVEMQ_OBJECT_MESSAGE, ACTIVEMQ_STREAM_MESSAGE, ACTIVEMQ_TEXT_MESSAGE, BROKER_ADMIN_COMMAND, CACHED_VALUE_COMMAND, CAPACITY_INFO, CAPACITY_INFO_REQUEST, CLEANUP_CONNECTION_INFO, CONSUMER_INFO, DURABLE_UNSUBSCRIBE, INT_RESPONSE_RECEIPT_INFO, KEEP_ALIVE, NOT_SET, PRODUCER_INFO, RECEIPT_INFO, RESPONSE_RECEIPT_INFO, SESSION_INFO, TRANSACTION_INFO, WIRE_FORMAT_INFO, XA_TRANSACTION_INFO
 
Constructor Summary
BrokerInfo()
           
 
Method Summary
 String getBrokerName()
           
 String getClusterName()
           
 int getPacketType()
          Return the type of Packet
 Properties getProperties()
           
 long getStartTime()
           
 boolean isRemote()
           
 void setBrokerName(String newBrokerName)
           
 void setClusterName(String newClusterName)
           
 void setProperties(Properties newProperties)
           
 void setRemote(boolean boondocks)
           
 void setStartTime(long newStartTime)
           
 String toString()
           
 
Methods inherited from class org.activemq.message.AbstractPacket
addBrokerVisited, clearBrokersVisited, decrementMemoryReferenceCount, equals, equals, getBitArray, getBrokersVisited, getBrokersVisitedAsString, getId, getMemoryUsage, getMemoryUsageReferenceCount, getPacketTypeAsString, hashCode, hasVisited, incrementMemoryReferenceCount, initializeOther, isJMSMessage, isReceipt, isReceiptRequired, setBitArray, setBrokersVisitedAsString, setId, setMemoryUsage, setReceiptRequired
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrokerInfo

public BrokerInfo()
Method Detail

getPacketType

public int getPacketType()
Return the type of Packet

Returns:
integer representation of the type of Packet

getBrokerName

public String getBrokerName()
Returns:
Returns the brokerName.

setBrokerName

public void setBrokerName(String newBrokerName)
Parameters:
newBrokerName - The brokerName to set.

getClusterName

public String getClusterName()
Returns:
Returns the clusterName.

setClusterName

public void setClusterName(String newClusterName)
Parameters:
newClusterName - The clusterName to set.

getProperties

public Properties getProperties()
Returns:
Returns the properties.

setProperties

public void setProperties(Properties newProperties)
Parameters:
newProperties - The properties to set.

getStartTime

public long getStartTime()
Returns:
Returns the startTime.

setStartTime

public void setStartTime(long newStartTime)
Parameters:
newStartTime - The startTime to set.

isRemote

public boolean isRemote()
Returns:
Returns the boondocks.

setRemote

public void setRemote(boolean boondocks)
Parameters:
boondocks - The boondocks to set.

toString

public String toString()
Overrides:
toString in class AbstractPacket
Returns:
pretty print of this Packet


Copyright © 2004-2009 Protique, Ltd.. All Rights Reserved.