Package com.tibco.tibjms.admin
Class ConnectionInfo
- java.lang.Object
-
- com.tibco.tibjms.admin.ConnectionInfo
-
public class ConnectionInfo extends java.lang.ObjectA ConnectionInfo object represents a client connection to the TIBCO EMS server. ConnectionInfo objects are obtained through calls to TibjmsAdmin.getConnections().
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLIENT_TYPE_CType indicating the client is a C application.static java.lang.StringCLIENT_TYPE_CSHARPType indicating the client is a C# application.static java.lang.StringCLIENT_TYPE_GOType indicating the client is a Golang application.static java.lang.StringCLIENT_TYPE_JAVAType indicating the client is a Java application.static java.lang.StringCLIENT_TYPE_UNKNOWNType indicating the client is of unkown type.static java.lang.StringCONNECTION_TYPE_FTType indicating the connection is a fault tolerant connection to another server.static java.lang.StringCONNECTION_TYPE_GENERICType indicating a generic client connection.static java.lang.StringCONNECTION_TYPE_QUEUEType indicating the connection is a queue connection.static java.lang.StringCONNECTION_TYPE_ROUTEType indicating the connection is a route connection to another server.static java.lang.StringCONNECTION_TYPE_TOPICType indicating the connection is a topic connection.static byteSSL_TYPE_NONEType indicating that the connection is not a TLS connection.static byteSSL_TYPE_SSLType indicating that the connection is a TLS connection.static byteSSL_TYPE_TCPDeprecated.As of release 4.1
-
Constructor Summary
Constructors Constructor Description ConnectionInfo(java.lang.Object json)For Internal use only, may be removed or deprecated in future.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConnectionInfofrom(javax.management.openmbean.CompositeData cd)For Internal use only, may be removed or deprecated in future.java.lang.StringgetAddress()Get the IP address for this connection.java.lang.StringgetClientID()Get the clientID for this connection.java.lang.StringgetClientType()Get the language that the application was written in.intgetConsumerCount()Get the number of consumers for this connection.java.lang.StringgetHost()Get the host for this connection.longgetID()Get the connection ID for this connection.intgetPort()Get the ephemeral port used on the client host for this connection.intgetProducerCount()Get the number of producers for this connection.intgetSessionCount()Get the number of sessions for this connection.bytegetSSLType()Get the type of TLS connection used, if any.longgetStartTime()Get the creation time, in milliseconds, for this connection.java.lang.StringgetType()Get the connection type for this connection.intgetUncommittedCount()Get the number of uncommitted messages that are pending for this connection.longgetUncommittedSize()Get the size of all uncommitted messages that are pending for this connection.longgetUpTime()Get the time in milliseconds that this connection has been connected.java.lang.StringgetURL()Get the URL for this connection.java.lang.StringgetUserName()Get the username for this connection.VersionInfogetVersionInfo()Get the version of the software being run by the client that created this connection.booleanisAdmin()Indicates whether or not the connection is a connection from an administration client, either tibjmsadmin or a client using this administration api.booleanisFT()Indicates whether or not the connection is an FT connection, that is the connection has alternative URLs.booleanisStarted()Indicates whether or not the connection as been started by the client.booleanisXA()Indicates whether or not the connection is an XA connection.java.lang.StringtoString()Generate a string representation of this ConnectionInfo.
-
-
-
Field Detail
-
CONNECTION_TYPE_QUEUE
public static final java.lang.String CONNECTION_TYPE_QUEUE
Type indicating the connection is a queue connection.- See Also:
- Constant Field Values
-
CONNECTION_TYPE_TOPIC
public static final java.lang.String CONNECTION_TYPE_TOPIC
Type indicating the connection is a topic connection.- See Also:
- Constant Field Values
-
CONNECTION_TYPE_ROUTE
public static final java.lang.String CONNECTION_TYPE_ROUTE
Type indicating the connection is a route connection to another server.- See Also:
- Constant Field Values
-
CONNECTION_TYPE_FT
public static final java.lang.String CONNECTION_TYPE_FT
Type indicating the connection is a fault tolerant connection to another server.- See Also:
- Constant Field Values
-
CONNECTION_TYPE_GENERIC
public static final java.lang.String CONNECTION_TYPE_GENERIC
Type indicating a generic client connection.- See Also:
- Constant Field Values
-
CLIENT_TYPE_C
public static final java.lang.String CLIENT_TYPE_C
Type indicating the client is a C application.- See Also:
- Constant Field Values
-
CLIENT_TYPE_JAVA
public static final java.lang.String CLIENT_TYPE_JAVA
Type indicating the client is a Java application.- See Also:
- Constant Field Values
-
CLIENT_TYPE_CSHARP
public static final java.lang.String CLIENT_TYPE_CSHARP
Type indicating the client is a C# application.- See Also:
- Constant Field Values
-
CLIENT_TYPE_GO
public static final java.lang.String CLIENT_TYPE_GO
Type indicating the client is a Golang application.- See Also:
- Constant Field Values
-
CLIENT_TYPE_UNKNOWN
public static final java.lang.String CLIENT_TYPE_UNKNOWN
Type indicating the client is of unkown type.- See Also:
- Constant Field Values
-
SSL_TYPE_NONE
public static final byte SSL_TYPE_NONE
Type indicating that the connection is not a TLS connection.- See Also:
- Constant Field Values
-
SSL_TYPE_SSL
public static final byte SSL_TYPE_SSL
Type indicating that the connection is a TLS connection.- See Also:
- Constant Field Values
-
SSL_TYPE_TCP
@Deprecated public static final byte SSL_TYPE_TCP
Deprecated.As of release 4.1Type indicating that the client uses TLS but connects by way of an external TLS accelerator to one of the server's TCP ports.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConnectionInfo
public ConnectionInfo(java.lang.Object json) throws JMSExceptionFor Internal use only, may be removed or deprecated in future.- Throws:
JMSException
-
-
Method Detail
-
getID
public long getID()
Get the connection ID for this connection.- Returns:
- the connection ID for this connection.
-
getType
public java.lang.String getType()
Get the connection type for this connection.- Returns:
- the connection type for this connection. Will be one of the
following:
CONNECTION_TYPE_QUEUE,CONNECTION_TYPE_TOPIC,CONNECTION_TYPE_ROUTE,CONNECTION_TYPE_FT,CONNECTION_TYPE_GENERIC.
-
getHost
public java.lang.String getHost()
Get the host for this connection.- Returns:
- the hostname for this connection.
-
getAddress
public java.lang.String getAddress()
Get the IP address for this connection.- Returns:
- the IP address for this connection.
-
getPort
public int getPort()
Get the ephemeral port used on the client host for this connection.- Returns:
- the client ephemeral port.
- Since:
- EMS 8.4
-
getClientID
public java.lang.String getClientID()
Get the clientID for this connection.- Returns:
- the clientID for this connection (can be null).
-
getUserName
public java.lang.String getUserName()
Get the username for this connection.- Returns:
- the username for this connection.
-
getSessionCount
public int getSessionCount()
Get the number of sessions for this connection.- Returns:
- the number of sessions for this connection.
-
getConsumerCount
public int getConsumerCount()
Get the number of consumers for this connection.- Returns:
- the number of consumers for this connection.
-
getProducerCount
public int getProducerCount()
Get the number of producers for this connection.- Returns:
- the number of producers for this connection.
-
getURL
public java.lang.String getURL()
Get the URL for this connection.- Returns:
- the URL for this connection.
-
getStartTime
public long getStartTime()
Get the creation time, in milliseconds, for this connection.- Returns:
- the creation time, in milliseconds, for this connection.
-
getUpTime
public long getUpTime()
Get the time in milliseconds that this connection has been connected.- Returns:
- the time in milliseconds that this connection has been connected.
-
getVersionInfo
public VersionInfo getVersionInfo()
Get the version of the software being run by the client that created this connection.- Returns:
- the VersionInfo object representing the version of the software being run by the client or null if the version information was not provided by the server.
-
getUncommittedCount
public int getUncommittedCount()
Get the number of uncommitted messages that are pending for this connection.- Returns:
- the number of uncommitted messages
- Since:
- EMS 5.0
-
getUncommittedSize
public long getUncommittedSize()
Get the size of all uncommitted messages that are pending for this connection.- Returns:
- the size of all uncommitted messages
- Since:
- EMS 5.0
-
getClientType
public java.lang.String getClientType()
Get the language that the application was written in.- Returns:
- the client type. Will be one of the following:
CLIENT_TYPE_C,CLIENT_TYPE_JAVA,CLIENT_TYPE_CSHARP,CLIENT_TYPE_GO, orCLIENT_TYPE_UNKNOWN.
-
isXA
public boolean isXA()
Indicates whether or not the connection is an XA connection.- Returns:
- true if the connection is an XA connection, false otherwise.
-
isFT
public boolean isFT()
Indicates whether or not the connection is an FT connection, that is the connection has alternative URLs.- Returns:
- true if the connection is an FT connection, false otherwise.
-
isAdmin
public boolean isAdmin()
Indicates whether or not the connection is a connection from an administration client, either tibjmsadmin or a client using this administration api.- Returns:
- true if the connection is an admin connection, false otherwise.
-
getSSLType
public byte getSSLType()
Get the type of TLS connection used, if any.- Returns:
- the TLS type. Either
SSL_TYPE_SSL,SSL_TYPE_TCPorSSL_TYPE_NONE.
-
isStarted
public boolean isStarted()
Indicates whether or not the connection as been started by the client.- Returns:
- true if the connection has been started, false otherwise.
-
toString
public java.lang.String toString()
Generate a string representation of this ConnectionInfo.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of this ConnectionInfo.
-
from
public static ConnectionInfo from(javax.management.openmbean.CompositeData cd) throws java.lang.Exception
For Internal use only, may be removed or deprecated in future.- Returns:
- a ConnectionInfo object from CompositeData
- Throws:
java.lang.IllegalArgumentException- if CompositeType does not match or if a null CompositeData is passed.java.lang.Exception
-
-