|
Sonic Management API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConnectionData
This interface describes a connection to a SonicMQ broker.
The broker exposes an operation "getConnections" through its JMX interface. This operation returns an array list of IConnectionData elements.
If the broker that returns an IConnectionData element is from SonicMQ 8.0 or later,
a connection reference id is available via getConnectionMemberRef()
.
This can be used to obtain additional information relating to the connection,
including a tree of associated Sessions and Consumers.
The broker also supports dropping connections through the "dropConnections" operation. This can take an ArrayList of IConnectionData elements, or an ArrayList of connection reference ids (type Long), identifying which connections should be dropped. Connection reference ids are more efficient in this context and therefore preferred, provided the broker supports them.
IBrokerProxy.getConnections(java.lang.String)
,
IBrokerProxy.getConnectionMemberDetails(java.util.ArrayList)
,
IBrokerProxy.getConnectionTree(java.util.ArrayList, Integer)
,
IBrokerProxy.dropConnections(java.util.ArrayList)
Method Summary | |
---|---|
java.lang.String |
getBroker()
When the connection to the broker is a routing connection from a broker in a remote DRA node or a connection from a broker in the same cluster, then this method will return the broker name of the connecting broker. |
java.lang.String |
getConnectID()
Gets the SonicMQ connectID associated with this connection. |
java.lang.Long |
getConnectionMemberRef()
Provides a connection member reference id that identifies this connection. |
java.lang.String |
getHost()
Get the host IP address of the connecting party associated with this connection. |
java.lang.String |
getNode()
When the connection to the broker is a routing connection from a broker in a remote DRA node, then this method will return the node to which the broker belongs. |
java.lang.String |
getUser()
Gets the username associated with this connection. |
boolean |
isApplicationConnection()
Returns true if the connection is a JMS connection (or non-broker connection). |
boolean |
isClusterConnection()
Returns true if the connection is from a broker in the same cluster. |
boolean |
isRoutingConnection()
Returns true if the connection is from a routing connection from a broker in a remote DRA node. |
Method Detail |
---|
java.lang.String getBroker()
If the connection to the broker is not a routing or cluster connection, then the return value of this method is undefined.
isRoutingConnection()
,
isClusterConnection()
java.lang.String getConnectID()
java.lang.Long getConnectionMemberRef()
IBrokerProxy.getConnectionMemberDetails(java.util.ArrayList)
,
IBrokerProxy.getConnectionTree(java.util.ArrayList, Integer)
,
IBrokerProxy.dropConnections(java.util.ArrayList)
java.lang.String getHost()
java.lang.String getNode()
If the connection to the broker is not a routing connection, then the return value of this method is undefined.
isRoutingConnection()
java.lang.String getUser()
boolean isApplicationConnection()
isRoutingConnection()
,
isClusterConnection()
boolean isClusterConnection()
isApplicationConnection()
,
isRoutingConnection()
boolean isRoutingConnection()
isApplicationConnection()
,
isClusterConnection()
|
Sonic Management API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |