org.apache.qpid.management.common.mbeans
Interface ManagedConnection


public interface ManagedConnection

The management interface exposed to allow management of Connections.

Version:
0.1

Field Summary
static String CHAN_ID
           
static List<String> COMPOSITE_ITEM_NAMES_DESC
           
static String DEFAULT_QUEUE
           
static String FLOW_BLOCKED
           
static List<String> TABULAR_UNIQUE_INDEX
           
static String TRANSACTIONAL
           
static String TYPE
           
static String UNACKED_COUNT
           
 
Method Summary
 TabularData channels()
          channel details of all the channels opened for this connection.
 void closeConnection()
          Closes all the related channels and unregisters this connection from managed objects.
 void commitTransactions(int channelId)
          Commits the transactions if the channel is transactional.
 String getAuthorizedId()
           
 String getClientId()
           
 Date getLastIoTime()
          Tells the last time, the IO operation was done.
 Long getMaximumNumberOfChannels()
          Threshold high value for no of channels.
 String getRemoteAddress()
          Tells the remote address of this connection.
 String getVersion()
           
 void rollbackTransactions(int channelId)
          Rollsback the transactions if the channel is transactional.
 void setMaximumNumberOfChannels(Long value)
          Sets the threshold high value for number of channels for a connection
 

Field Detail

TYPE

static final String TYPE
See Also:
Constant Field Values

CHAN_ID

static final String CHAN_ID
See Also:
Constant Field Values

TRANSACTIONAL

static final String TRANSACTIONAL
See Also:
Constant Field Values

DEFAULT_QUEUE

static final String DEFAULT_QUEUE
See Also:
Constant Field Values

UNACKED_COUNT

static final String UNACKED_COUNT
See Also:
Constant Field Values

FLOW_BLOCKED

static final String FLOW_BLOCKED
See Also:
Constant Field Values

COMPOSITE_ITEM_NAMES_DESC

static final List<String> COMPOSITE_ITEM_NAMES_DESC

TABULAR_UNIQUE_INDEX

static final List<String> TABULAR_UNIQUE_INDEX
Method Detail

getClientId

String getClientId()

getAuthorizedId

String getAuthorizedId()

getVersion

String getVersion()

getRemoteAddress

String getRemoteAddress()
Tells the remote address of this connection.

Returns:
remote address

getLastIoTime

Date getLastIoTime()
Tells the last time, the IO operation was done.

Returns:
last IO time.

getMaximumNumberOfChannels

Long getMaximumNumberOfChannels()
Threshold high value for no of channels. This is useful in setting notifications or taking required action is there are more channels being created.

Returns:
threshold limit for no of channels

setMaximumNumberOfChannels

void setMaximumNumberOfChannels(Long value)
Sets the threshold high value for number of channels for a connection

Parameters:
value -

channels

TabularData channels()
                     throws IOException,
                            JMException
channel details of all the channels opened for this connection.

Returns:
general channel details
Throws:
IOException
JMException

commitTransactions

void commitTransactions(int channelId)
                        throws JMException
Commits the transactions if the channel is transactional.

Parameters:
channelId -
Throws:
JMException

rollbackTransactions

void rollbackTransactions(int channelId)
                          throws JMException
Rollsback the transactions if the channel is transactional.

Parameters:
channelId -
Throws:
JMException

closeConnection

void closeConnection()
                     throws Exception
Closes all the related channels and unregisters this connection from managed objects.

Throws:
Exception


Licensed to the Apache Software Foundation