Class ConnectionsView
- java.lang.Object
-
- org.apache.synapse.transport.passthru.jmx.ConnectionsView
-
- All Implemented Interfaces:
ConnectionsViewMBean
public class ConnectionsView extends Object implements ConnectionsViewMBean
ConnectionsView MBean can be used to collect and monitor statistics on HTTP connections created by the NHTTP transport. Connection statistics can be divided into two categories, namely short term data and long term data. Short term data is related to the last 15 minutes of execution and they are updated every minute. Long term data is related to the last 24 hours of execution and they get updated every 5 minutes. In addition to the connection statistics this MBean also provides information on the request and response sizes received over the HTTP connections. All messages are divided into six categories based on their sizes and the resulting counts are made available as a table.
-
-
Constructor Summary
Constructors Constructor Description ConnectionsView(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
connected()
void
destroy()
protected void
disconnected()
protected void
exceptionOccured()
int
getActiveConnections()
int
getLast15MinuteConnections()
int
getLast15SecondConnections()
int
getLast15SecondRequests()
int
getLast24HourConnections()
int
getLast30SecondConnections()
int
getLast5MinuteConnections()
int
getLast5SecondConnections()
int
getLast8HourConnections()
int
getLastHourConnections()
int
getLastMinuteConnections()
int
getLastMinuteRequests()
Date
getLastResetTime()
int
getLastSecondConnections()
int
getLastSecondRequests()
Map
getRequestSizesMap()
Map
getResponseSizesMap()
int
getUnServedRequests()
protected void
notifyMessageSize(long size, boolean isRequest)
protected void
requestReceived()
protected void
requestServed()
void
reset()
protected void
timeoutOccured()
-
-
-
Constructor Detail
-
ConnectionsView
public ConnectionsView(String name) throws org.apache.axis2.AxisFault
- Throws:
org.apache.axis2.AxisFault
-
-
Method Detail
-
destroy
public void destroy()
-
connected
protected void connected()
-
disconnected
protected void disconnected()
-
requestReceived
protected void requestReceived()
-
requestServed
protected void requestServed()
-
timeoutOccured
protected void timeoutOccured()
-
exceptionOccured
protected void exceptionOccured()
-
getUnServedRequests
public int getUnServedRequests()
-
notifyMessageSize
protected void notifyMessageSize(long size, boolean isRequest)
-
getActiveConnections
public int getActiveConnections()
- Specified by:
getActiveConnections
in interfaceConnectionsViewMBean
-
getLastSecondRequests
public int getLastSecondRequests()
- Specified by:
getLastSecondRequests
in interfaceConnectionsViewMBean
-
getLast15SecondRequests
public int getLast15SecondRequests()
- Specified by:
getLast15SecondRequests
in interfaceConnectionsViewMBean
-
getLastMinuteRequests
public int getLastMinuteRequests()
- Specified by:
getLastMinuteRequests
in interfaceConnectionsViewMBean
-
getLastSecondConnections
public int getLastSecondConnections()
- Specified by:
getLastSecondConnections
in interfaceConnectionsViewMBean
-
getLast5SecondConnections
public int getLast5SecondConnections()
- Specified by:
getLast5SecondConnections
in interfaceConnectionsViewMBean
-
getLast15SecondConnections
public int getLast15SecondConnections()
- Specified by:
getLast15SecondConnections
in interfaceConnectionsViewMBean
-
getLast30SecondConnections
public int getLast30SecondConnections()
-
getLastMinuteConnections
public int getLastMinuteConnections()
- Specified by:
getLastMinuteConnections
in interfaceConnectionsViewMBean
-
getLast5MinuteConnections
public int getLast5MinuteConnections()
- Specified by:
getLast5MinuteConnections
in interfaceConnectionsViewMBean
-
getLast15MinuteConnections
public int getLast15MinuteConnections()
- Specified by:
getLast15MinuteConnections
in interfaceConnectionsViewMBean
-
getLastHourConnections
public int getLastHourConnections()
- Specified by:
getLastHourConnections
in interfaceConnectionsViewMBean
-
getLast8HourConnections
public int getLast8HourConnections()
- Specified by:
getLast8HourConnections
in interfaceConnectionsViewMBean
-
getLast24HourConnections
public int getLast24HourConnections()
- Specified by:
getLast24HourConnections
in interfaceConnectionsViewMBean
-
getRequestSizesMap
public Map getRequestSizesMap()
- Specified by:
getRequestSizesMap
in interfaceConnectionsViewMBean
-
getResponseSizesMap
public Map getResponseSizesMap()
- Specified by:
getResponseSizesMap
in interfaceConnectionsViewMBean
-
getLastResetTime
public Date getLastResetTime()
- Specified by:
getLastResetTime
in interfaceConnectionsViewMBean
-
reset
public void reset()
- Specified by:
reset
in interfaceConnectionsViewMBean
-
-