Interface TcpProxyServiceMBean
-
- All Superinterfaces:
ConnectionManagerMBean
- All Known Subinterfaces:
SSLTcpProxyServiceMBean
- All Known Implementing Classes:
SSLTcpProxyService,TcpProxyService
public interface TcpProxyServiceMBean extends ConnectionManagerMBean
Adds JMX monitoring for tcp connections.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate()Activates the TcpProxyService (TCP/JMS connector), creates the socket and starts listeners.voidcloseAllConnections()Closes all active connections.voiddeactivate()Deactivates the TcpProxyService (TCP/JMS connector), stops all listeners.longgetAverageConnectionTime()Gets the average time for incoming local connections.intgetFailedLoginCount()Gets the number of failed login.intgetInitiatedConnectionCount()Gets the number of connections initiated since boot time.intgetListenPort()Gets the listen port of the server.intgetProtocolErrorCount()Gets the number of connections rejected due to a wrong protocol header.intgetRunningConnectionsCount()Gets the number of active connections.StringgetServerAddress()Gets the socket address of the server.intgetTcpListenersPoolSize()Gets the number of threads listening for incoming tcp connections.booleanisActivated()Returns true if the TcpProxyService (TCP/JMS connector) is started.-
Methods inherited from interface org.objectweb.joram.mom.proxies.ConnectionManagerMBean
getMBeanName, getVersion
-
-
-
-
Method Detail
-
getListenPort
int getListenPort()
Gets the listen port of the server.- Returns:
- the listen port of the server.
-
getServerAddress
String getServerAddress()
Gets the socket address of the server.- Returns:
- the server socket address.
-
getTcpListenersPoolSize
int getTcpListenersPoolSize()
Gets the number of threads listening for incoming tcp connections.- Returns:
- the tcp listeners pool size.
-
isActivated
boolean isActivated()
Returns true if the TcpProxyService (TCP/JMS connector) is started.- Specified by:
isActivatedin interfaceConnectionManagerMBean- Returns:
- true if the TcpProxyService is started.
-
getInitiatedConnectionCount
int getInitiatedConnectionCount()
Gets the number of connections initiated since boot time.- Specified by:
getInitiatedConnectionCountin interfaceConnectionManagerMBean- Returns:
- the number of connections initiated since boot time.
-
getRunningConnectionsCount
int getRunningConnectionsCount()
Gets the number of active connections.- Specified by:
getRunningConnectionsCountin interfaceConnectionManagerMBean- Returns:
- the number of active connections.
-
getAverageConnectionTime
long getAverageConnectionTime()
Gets the average time for incoming local connections.- Returns:
- the average time for incoming local connections.
-
getFailedLoginCount
int getFailedLoginCount()
Gets the number of failed login.- Specified by:
getFailedLoginCountin interfaceConnectionManagerMBean- Returns:
- the number of failed login.
-
getProtocolErrorCount
int getProtocolErrorCount()
Gets the number of connections rejected due to a wrong protocol header.- Returns:
- the number of connections rejected due to a wrong protocol header.
-
activate
void activate()
Activates the TcpProxyService (TCP/JMS connector), creates the socket and starts listeners.- Specified by:
activatein interfaceConnectionManagerMBean
-
closeAllConnections
void closeAllConnections()
Closes all active connections.- Specified by:
closeAllConnectionsin interfaceConnectionManagerMBean
-
deactivate
void deactivate()
Deactivates the TcpProxyService (TCP/JMS connector), stops all listeners.- Specified by:
deactivatein interfaceConnectionManagerMBean
-
-