public class ConnectionInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLIENT_TYPE_C
Type indicating the client is a C application.
|
static java.lang.String |
CLIENT_TYPE_CSHARP
Type indicating the client is a C# application.
|
static java.lang.String |
CLIENT_TYPE_JAVA
Type indicating the client is a Java application.
|
static java.lang.String |
CLIENT_TYPE_UNKNOWN
Type indicating the client is of unkown type.
|
static java.lang.String |
CONNECTION_TYPE_FT
Type indicating the connection is a fault tolerant connection to another
server.
|
static java.lang.String |
CONNECTION_TYPE_GENERIC
Type indicating a generic client connection.
|
static java.lang.String |
CONNECTION_TYPE_QUEUE
Type indicating the connection is a queue connection.
|
static java.lang.String |
CONNECTION_TYPE_ROUTE
Type indicating the connection is a route connection to another server.
|
static java.lang.String |
CONNECTION_TYPE_TOPIC
Type indicating the connection is a topic connection.
|
static byte |
SSL_TYPE_NONE
Type indicating that the connection is not an SSL connection.
|
static byte |
SSL_TYPE_SSL
Type indicating that the connection is an SSL connection.
|
static byte |
SSL_TYPE_TCP
Type indicating that the client uses SSL but connects by way
of an external SSL accelerator to one of the server's TCP ports.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionInfo |
from(javax.management.openmbean.CompositeData cd)
For Internal use only, may be removed or deprecated in future.
|
java.lang.String |
getAddress()
Get the IP address for this connection.
|
java.lang.String |
getClientID()
Get the clientID for this connection.
|
java.lang.String |
getClientType()
Get the language that the application was written in.
|
int |
getConsumerCount()
Get the number of consumers for this connection.
|
java.lang.String |
getHost()
Get the host for this connection.
|
long |
getID()
Get the connection ID for this connection.
|
int |
getPort()
Get the ephemeral port used on the client host for this connection.
|
int |
getProducerCount()
Get the number of producers for this connection.
|
int |
getSessionCount()
Get the number of sessions for this connection.
|
byte |
getSSLType()
Get the type of SSL connection used, if any.
|
long |
getStartTime()
Get the creation time, in milliseconds, for this connection.
|
java.lang.String |
getType()
Get the connection type for this connection.
|
int |
getUncommittedCount()
Get the number of uncommitted messages that are pending for this
connection.
|
long |
getUncommittedSize()
Get the size of all uncommitted messages that are pending for this
connection.
|
long |
getUpTime()
Get the time in milliseconds that this connection has been connected.
|
java.lang.String |
getURL()
Get the URL for this connection.
|
java.lang.String |
getUserName()
Get the username for this connection.
|
VersionInfo |
getVersionInfo()
Get the version of the software being run by the client that created
this connection.
|
boolean |
isAdmin()
Indicates whether or not the connection is a connection from an
administration client, either tibjmsadmin or a client using this
administration api.
|
boolean |
isFT()
Indicates whether or not the connection is an FT connection, that is
the connection has alternative URLs.
|
boolean |
isStarted()
Indicates whether or not the connection as been started by the client.
|
boolean |
isXA()
Indicates whether or not the connection is an XA connection.
|
java.lang.String |
toString()
Generate a string representation of this ConnectionInfo.
|
public static final java.lang.String CONNECTION_TYPE_QUEUE
public static final java.lang.String CONNECTION_TYPE_TOPIC
public static final java.lang.String CONNECTION_TYPE_ROUTE
public static final java.lang.String CONNECTION_TYPE_FT
public static final java.lang.String CONNECTION_TYPE_GENERIC
public static final java.lang.String CLIENT_TYPE_C
public static final java.lang.String CLIENT_TYPE_JAVA
public static final java.lang.String CLIENT_TYPE_CSHARP
public static final java.lang.String CLIENT_TYPE_UNKNOWN
public static final byte SSL_TYPE_NONE
public static final byte SSL_TYPE_SSL
public static final byte SSL_TYPE_TCP
public long getID()
public java.lang.String getType()
CONNECTION_TYPE_QUEUE
, CONNECTION_TYPE_TOPIC
,
CONNECTION_TYPE_ROUTE
, CONNECTION_TYPE_FT
,
CONNECTION_TYPE_GENERIC
.public java.lang.String getHost()
public java.lang.String getAddress()
public int getPort()
public java.lang.String getClientID()
public java.lang.String getUserName()
public int getSessionCount()
public int getConsumerCount()
public int getProducerCount()
public java.lang.String getURL()
public long getStartTime()
public long getUpTime()
public VersionInfo getVersionInfo()
public int getUncommittedCount()
public long getUncommittedSize()
public java.lang.String getClientType()
CLIENT_TYPE_C
, CLIENT_TYPE_JAVA
,
CLIENT_TYPE_CSHARP
or CLIENT_TYPE_UNKNOWN
.public boolean isXA()
public boolean isFT()
public boolean isAdmin()
public byte getSSLType()
SSL_TYPE_SSL
, SSL_TYPE_TCP
or
SSL_TYPE_NONE
.public boolean isStarted()
public java.lang.String toString()
toString
in class java.lang.Object
public static ConnectionInfo from(javax.management.openmbean.CompositeData cd) throws java.lang.Exception
java.lang.IllegalArgumentException
- if CompositeType does not match
or if a null CompositeData is passed.java.lang.Exception
Copyright © Cloud Software Group, Inc. All rights reserved