Package org.objectweb.joram.mom.proxies
Interface ConnectionManagerMBean
-
- All Known Subinterfaces:
LocalConnectionsMBean,LocalConnectionsMBean,SSLTcpProxyServiceMBean,TcpProxyServiceMBean
- All Known Implementing Classes:
ConnectionManager,LocalConnections,LocalConnections,SSLTcpProxyService,TcpProxyService
public interface ConnectionManagerMBeanAdds JMX monitoring for a connection manager.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate()Activates the connection manager.voidcloseAllConnections()Closes all opened connections.voiddeactivate()Deactivates the connection manager.intgetFailedLoginCount()Gets the number of connections rejected due to a failed authentication.intgetInitiatedConnectionCount()Gets the number of initiated connections since server start.StringgetMBeanName()Gets the name of the MBean.intgetRunningConnectionsCount()Gets the number of living connections.StringgetVersion()Gets the name of the MBean.booleanisActivated()Tells if the ConnectionManager is active.
-
-
-
Method Detail
-
getVersion
String getVersion()
Gets the name of the MBean.
-
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
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.
-
-