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 SummaryFields 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 SummaryConstructors Constructor Description ConnectionInfo(java.lang.Object json)For Internal use only, may be removed or deprecated in future.
 - 
Method SummaryAll 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_QUEUEpublic static final java.lang.String CONNECTION_TYPE_QUEUE Type indicating the connection is a queue connection.- See Also:
- Constant Field Values
 
 - 
CONNECTION_TYPE_TOPICpublic static final java.lang.String CONNECTION_TYPE_TOPIC Type indicating the connection is a topic connection.- See Also:
- Constant Field Values
 
 - 
CONNECTION_TYPE_ROUTEpublic 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_FTpublic 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_GENERICpublic static final java.lang.String CONNECTION_TYPE_GENERIC Type indicating a generic client connection.- See Also:
- Constant Field Values
 
 - 
CLIENT_TYPE_Cpublic static final java.lang.String CLIENT_TYPE_C Type indicating the client is a C application.- See Also:
- Constant Field Values
 
 - 
CLIENT_TYPE_JAVApublic static final java.lang.String CLIENT_TYPE_JAVA Type indicating the client is a Java application.- See Also:
- Constant Field Values
 
 - 
CLIENT_TYPE_CSHARPpublic static final java.lang.String CLIENT_TYPE_CSHARP Type indicating the client is a C# application.- See Also:
- Constant Field Values
 
 - 
CLIENT_TYPE_GOpublic static final java.lang.String CLIENT_TYPE_GO Type indicating the client is a Golang application.- See Also:
- Constant Field Values
 
 - 
CLIENT_TYPE_UNKNOWNpublic static final java.lang.String CLIENT_TYPE_UNKNOWN Type indicating the client is of unkown type.- See Also:
- Constant Field Values
 
 - 
SSL_TYPE_NONEpublic static final byte SSL_TYPE_NONE Type indicating that the connection is not a TLS connection.- See Also:
- Constant Field Values
 
 - 
SSL_TYPE_SSLpublic 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- 
ConnectionInfopublic ConnectionInfo(java.lang.Object json) throws JMSExceptionFor Internal use only, may be removed or deprecated in future.- Throws:
- JMSException
 
 
- 
 - 
Method Detail- 
getIDpublic long getID() Get the connection ID for this connection.- Returns:
- the connection ID for this connection.
 
 - 
getTypepublic 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.
 
 - 
getHostpublic java.lang.String getHost() Get the host for this connection.- Returns:
- the hostname for this connection.
 
 - 
getAddresspublic java.lang.String getAddress() Get the IP address for this connection.- Returns:
- the IP address for this connection.
 
 - 
getPortpublic int getPort() Get the ephemeral port used on the client host for this connection.- Returns:
- the client ephemeral port.
- Since:
- EMS 8.4
 
 - 
getClientIDpublic java.lang.String getClientID() Get the clientID for this connection.- Returns:
- the clientID for this connection (can be null).
 
 - 
getUserNamepublic java.lang.String getUserName() Get the username for this connection.- Returns:
- the username for this connection.
 
 - 
getSessionCountpublic int getSessionCount() Get the number of sessions for this connection.- Returns:
- the number of sessions for this connection.
 
 - 
getConsumerCountpublic int getConsumerCount() Get the number of consumers for this connection.- Returns:
- the number of consumers for this connection.
 
 - 
getProducerCountpublic int getProducerCount() Get the number of producers for this connection.- Returns:
- the number of producers for this connection.
 
 - 
getURLpublic java.lang.String getURL() Get the URL for this connection.- Returns:
- the URL for this connection.
 
 - 
getStartTimepublic long getStartTime() Get the creation time, in milliseconds, for this connection.- Returns:
- the creation time, in milliseconds, for this connection.
 
 - 
getUpTimepublic long getUpTime() Get the time in milliseconds that this connection has been connected.- Returns:
- the time in milliseconds that this connection has been connected.
 
 - 
getVersionInfopublic 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.
 
 - 
getUncommittedCountpublic int getUncommittedCount() Get the number of uncommitted messages that are pending for this connection.- Returns:
- the number of uncommitted messages
- Since:
- EMS 5.0
 
 - 
getUncommittedSizepublic 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
 
 - 
getClientTypepublic 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.
 
 - 
isXApublic boolean isXA() Indicates whether or not the connection is an XA connection.- Returns:
- true if the connection is an XA connection, false otherwise.
 
 - 
isFTpublic 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.
 
 - 
isAdminpublic 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.
 
 - 
getSSLTypepublic byte getSSLType() Get the type of TLS connection used, if any.- Returns:
- the TLS type. Either SSL_TYPE_SSL,SSL_TYPE_TCPorSSL_TYPE_NONE.
 
 - 
isStartedpublic boolean isStarted() Indicates whether or not the connection as been started by the client.- Returns:
- true if the connection has been started, false otherwise.
 
 - 
toStringpublic java.lang.String toString() Generate a string representation of this ConnectionInfo.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- a string representation of this ConnectionInfo.
 
 - 
frompublic 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
 
 
- 
 
-