org.apache.activemq.command
Class ConnectionInfo

java.lang.Object
  extended by org.apache.activemq.command.BaseCommand
      extended by org.apache.activemq.command.ConnectionInfo
All Implemented Interfaces:
Command, DataStructure

public class ConnectionInfo
extends BaseCommand


Field Summary
protected  boolean brokerMasterConnector
           
protected  BrokerId[] brokerPath
           
protected  java.lang.String clientId
           
protected  java.lang.String clientIp
           
protected  boolean clientMaster
           
protected  ConnectionId connectionId
           
static byte DATA_STRUCTURE_TYPE
           
protected  boolean faultTolerant
           
protected  boolean manageable
           
protected  java.lang.String password
           
protected  java.lang.Object transportContext
           
protected  java.lang.String userName
           
 
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
 
Constructor Summary
ConnectionInfo()
           
ConnectionInfo(ConnectionId connectionId)
           
 
Method Summary
 ConnectionInfo copy()
           
 RemoveInfo createRemoveCommand()
           
 BrokerId[] getBrokerPath()
          The route of brokers the command has moved through.
 java.lang.String getClientId()
           
 java.lang.String getClientIp()
           
 ConnectionId getConnectionId()
           
 byte getDataStructureType()
           
 java.lang.String getPassword()
           
 java.lang.Object getTransportContext()
          Transports may wish to associate additional data with the connection.
 java.lang.String getUserName()
           
 boolean isBrokerMasterConnector()
           
 boolean isClientMaster()
           
 boolean isFailoverReconnect()
           
 boolean isFaultTolerant()
           
 boolean isManageable()
           
 void setBrokerMasterConnector(boolean slaveBroker)
           
 void setBrokerPath(BrokerId[] brokerPath)
           
 void setClientId(java.lang.String clientId)
           
 void setClientIp(java.lang.String clientIp)
           
 void setClientMaster(boolean clientMaster)
           
 void setConnectionId(ConnectionId connectionId)
           
 void setFailoverReconnect(boolean failoverReconnect)
           
 void setFaultTolerant(boolean faultTolerant)
           
 void setManageable(boolean manageable)
           
 void setPassword(java.lang.String password)
           
 void setTransportContext(java.lang.Object transportContext)
          Transports may wish to associate additional data with the connection.
 void setUserName(java.lang.String userName)
           
 Response visit(CommandVisitor visitor)
           
 
Methods inherited from class org.apache.activemq.command.BaseCommand
copy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DATA_STRUCTURE_TYPE

public static final byte DATA_STRUCTURE_TYPE
See Also:
Constant Field Values

connectionId

protected ConnectionId connectionId

clientId

protected java.lang.String clientId

clientIp

protected java.lang.String clientIp

userName

protected java.lang.String userName

password

protected java.lang.String password

brokerPath

protected BrokerId[] brokerPath

brokerMasterConnector

protected boolean brokerMasterConnector

manageable

protected boolean manageable

clientMaster

protected boolean clientMaster

faultTolerant

protected boolean faultTolerant

transportContext

protected transient java.lang.Object transportContext
Constructor Detail

ConnectionInfo

public ConnectionInfo()

ConnectionInfo

public ConnectionInfo(ConnectionId connectionId)
Method Detail

getDataStructureType

public byte getDataStructureType()
Returns:
The type of the data structure

copy

public ConnectionInfo copy()

getConnectionId

public ConnectionId getConnectionId()

setConnectionId

public void setConnectionId(ConnectionId connectionId)

getClientId

public java.lang.String getClientId()

setClientId

public void setClientId(java.lang.String clientId)

createRemoveCommand

public RemoveInfo createRemoveCommand()

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

getUserName

public java.lang.String getUserName()

setUserName

public void setUserName(java.lang.String userName)

getBrokerPath

public BrokerId[] getBrokerPath()
The route of brokers the command has moved through.


setBrokerPath

public void setBrokerPath(BrokerId[] brokerPath)

visit

public Response visit(CommandVisitor visitor)
               throws java.lang.Exception
Throws:
java.lang.Exception

isBrokerMasterConnector

public boolean isBrokerMasterConnector()

setBrokerMasterConnector

public void setBrokerMasterConnector(boolean slaveBroker)
Parameters:
slaveBroker - The brokerMasterConnector to set.

isManageable

public boolean isManageable()

setManageable

public void setManageable(boolean manageable)
Parameters:
manageable - The manageable to set.

getTransportContext

public java.lang.Object getTransportContext()
Transports may wish to associate additional data with the connection. For example, an SSL transport may use this field to attach the client certificates used when the conection was established.

Returns:
the transport context.

setTransportContext

public void setTransportContext(java.lang.Object transportContext)
Transports may wish to associate additional data with the connection. For example, an SSL transport may use this field to attach the client certificates used when the conection was established.

Parameters:
transportContext - value used to set the transport context

isClientMaster

public boolean isClientMaster()
Returns:
the clientMaster

setClientMaster

public void setClientMaster(boolean clientMaster)
Parameters:
clientMaster - the clientMaster to set

isFaultTolerant

public boolean isFaultTolerant()
Returns:
the faultTolerant

setFaultTolerant

public void setFaultTolerant(boolean faultTolerant)
Parameters:
faultTolerant - the faultTolerant to set

isFailoverReconnect

public boolean isFailoverReconnect()
Returns:
failoverReconnect true if this is a reconnect

setFailoverReconnect

public void setFailoverReconnect(boolean failoverReconnect)

getClientIp

public java.lang.String getClientIp()

setClientIp

public void setClientIp(java.lang.String clientIp)


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.