Package org.apache.activemq.command
Class ConnectionInfo
java.lang.Object
org.apache.activemq.command.BaseCommand
org.apache.activemq.command.ConnectionInfo
- All Implemented Interfaces:
Command
,DataStructure
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected BrokerId[]
protected String
protected String
protected boolean
protected ConnectionId
static final byte
protected boolean
protected boolean
protected boolean
protected String
protected Object
protected String
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
BrokerId[]
The route of brokers the command has moved through.byte
Transports may wish to associate additional data with the connection.boolean
boolean
boolean
boolean
boolean
void
setBrokerMasterConnector
(boolean slaveBroker) void
setBrokerPath
(BrokerId[] brokerPath) void
setClientId
(String clientId) void
setClientIp
(String clientIp) void
setClientMaster
(boolean clientMaster) void
setConnectionId
(ConnectionId connectionId) void
setFailoverReconnect
(boolean failoverReconnect) void
setFaultTolerant
(boolean faultTolerant) void
setManageable
(boolean manageable) void
setPassword
(String password) void
setTransportContext
(Object transportContext) Transports may wish to associate additional data with the connection.void
setUserName
(String userName) visit
(CommandVisitor visitor) Methods inherited from class org.apache.activemq.command.BaseCommand
copy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, isConsumerControl, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, toString, toString
-
Field Details
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE- See Also:
-
connectionId
-
clientId
-
clientIp
-
userName
-
password
-
brokerPath
-
brokerMasterConnector
protected boolean brokerMasterConnector -
manageable
protected boolean manageable -
clientMaster
protected boolean clientMaster -
faultTolerant
protected boolean faultTolerant -
failoverReconnect
protected boolean failoverReconnect -
transportContext
-
-
Constructor Details
-
ConnectionInfo
public ConnectionInfo() -
ConnectionInfo
-
-
Method Details
-
getDataStructureType
public byte getDataStructureType()- Returns:
- The type of the data structure
-
copy
-
getConnectionId
-
setConnectionId
-
getClientId
-
setClientId
-
createRemoveCommand
-
getPassword
-
setPassword
-
getUserName
-
setUserName
-
getBrokerPath
The route of brokers the command has moved through. -
setBrokerPath
-
visit
- Throws:
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
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 connection was established.- Returns:
- the transport context.
-
setTransportContext
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 connection 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
-
setClientIp
-