Joram 5.2.6

org.objectweb.joram.mom.proxies
Interface ConnectionManagerMBean

All Known Subinterfaces:
LocalConnectionsMBean, TcpProxyServiceMBean
All Known Implementing Classes:
ConnectionManager, LocalConnections, SSLTcpProxyService, TcpProxyService

public interface ConnectionManagerMBean

Adds JMX monitoring for a connection manager.


Method Summary
 void activate()
          Activates the connection manager.
 void closeAllConnections()
          Closes all opened connections.
 void deactivate()
          Deactivates the connection manager.
 int getFailedLoginCount()
          Gets the number of connections rejected due to a failed authentication.
 int getInitiatedConnectionCount()
          Gets the number of initiated connections since server start.
 java.lang.String getMBeanName()
          Gets the name of the MBean.
 int getRunningConnectionsCount()
          Gets the number of living connections.
 boolean isActivated()
          Tells if the ConnectionManager is active.
 

Method Detail

closeAllConnections

void closeAllConnections()
Closes all opened connections.


deactivate

void deactivate()
Deactivates the connection manager. No new connection will be opened.


activate

void activate()
Activates the connection manager. Creation of new connections will be allowed.


isActivated

boolean isActivated()
Tells if the ConnectionManager is active.

Returns:
ConnectionManager's active state.

getRunningConnectionsCount

int getRunningConnectionsCount()
Gets the number of living connections.

Returns:
the number of living connections.

getMBeanName

java.lang.String getMBeanName()
Gets the name of the MBean.


getFailedLoginCount

int getFailedLoginCount()
Gets the number of connections rejected due to a failed authentication.

Returns:
the number of connections rejected due to a failed authentication.

getInitiatedConnectionCount

int getInitiatedConnectionCount()
Gets the number of initiated connections since server start.

Returns:
the number of initiated connection.

Joram 5.2.6

Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved