org.codehaus.activemq.message
Class ConnectionInfo

java.lang.Object
  extended byorg.codehaus.activemq.message.AbstractPacket
      extended byorg.codehaus.activemq.message.ConnectionInfo
All Implemented Interfaces:
Packet

public class ConnectionInfo
extends AbstractPacket

Describes a Connection

Version:
$Revision: 1.2 $

Field Summary
 
Fields inherited from class org.codehaus.activemq.message.AbstractPacket
bitArray, BROKERS_VISITED_INDEX, RECEIPT_REQUIRED_INDEX
 
Fields inherited from interface org.codehaus.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, CAPACITY_INFO, CAPACITY_INFO_REQUEST, CONSUMER_INFO, DURABLE_UNSUBSCRIBE, INT_RESPONSE_RECEIPT_INFO, KEEP_ALIVE, PRODUCER_INFO, RECEIPT_INFO, RESPONSE_RECEIPT_INFO, SESSION_INFO, TRANSACTION_INFO, WIRE_FORMAT_INFO, XA_TRANSACTION_INFO
 
Constructor Summary
ConnectionInfo()
           
 
Method Summary
 boolean equals(Object obj)
          Test for equality
 String getClientId()
           
 String getClientVersion()
           
 String getHostName()
           
 int getPacketType()
          Return the type of Packet
 String getPassword()
           
 Properties getProperties()
           
 long getStartTime()
           
 String getUserName()
           
 int getWireFormatVersion()
           
 int hashCode()
           
 boolean isClosed()
           
 boolean isStarted()
           
 void setClientId(String newClientId)
           
 void setClientVersion(String clientVersion)
           
 void setClosed(boolean closed)
           
 void setHostName(String newHostName)
           
 void setPassword(String newPassword)
           
 void setProperties(Properties newProperties)
           
 void setStarted(boolean started)
           
 void setStartTime(long newStartTime)
           
 void setUserName(String newUserName)
           
 void setWireFormatVersion(int wireFormatVersion)
           
 String toString()
           
 
Methods inherited from class org.codehaus.activemq.message.AbstractPacket
addBrokerVisited, decrementMemoryReferenceCount, equals, getBitArray, getBrokersVisited, getBrokersVisitedAsString, getId, getMemoryUsage, getMemoryUsageReferenceCount, getPacketTypeAsString, hasVisited, incrementMemoryReferenceCount, initializeOther, isJMSMessage, isReceipt, isReceiptRequired, setBitArray, setId, setMemoryUsage, setReceiptRequired
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionInfo

public ConnectionInfo()
Method Detail

getPacketType

public int getPacketType()
Return the type of Packet

Returns:
integer representation of the type of Packet

equals

public boolean equals(Object obj)
Test for equality

Overrides:
equals in class AbstractPacket
Parameters:
obj - object to test
Returns:
true if equivalent

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractPacket
Returns:
hash code for instance

getClientId

public String getClientId()
Returns:
Returns the clientId.

setClientId

public void setClientId(String newClientId)
Parameters:
newClientId - The clientId to set.

getHostName

public String getHostName()
Returns:
Returns the hostName.

setHostName

public void setHostName(String newHostName)
Parameters:
newHostName - The hostName to set.

getPassword

public String getPassword()
Returns:
Returns the password.

setPassword

public void setPassword(String newPassword)
Parameters:
newPassword - The password 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.

getUserName

public String getUserName()
Returns:
Returns the userName.

setUserName

public void setUserName(String newUserName)
Parameters:
newUserName - The userName to set.

isStarted

public boolean isStarted()
Returns:
Returns the started.

setStarted

public void setStarted(boolean started)
Parameters:
started - The started to set.

isClosed

public boolean isClosed()
Returns:
Returns the closed.

setClosed

public void setClosed(boolean closed)
Parameters:
closed - The closed to set.

getClientVersion

public String getClientVersion()
Returns:
Returns the clientVersion.

setClientVersion

public void setClientVersion(String clientVersion)
Parameters:
clientVersion - The clientVersion to set.

getWireFormatVersion

public int getWireFormatVersion()
Returns:
Returns the wireFormatVersion.

setWireFormatVersion

public void setWireFormatVersion(int wireFormatVersion)
Parameters:
wireFormatVersion - The wireFormatVersion to set.

toString

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


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