Class WebAppStat

java.lang.Object
com.alibaba.druid.support.http.stat.WebAppStat

public class WebAppStat extends Object
  • Field Details

    • DEFAULT_MAX_STAT_URI_COUNT

      public static final int DEFAULT_MAX_STAT_URI_COUNT
      See Also:
    • DEFAULT_MAX_STAT_SESSION_COUNT

      public static final int DEFAULT_MAX_STAT_SESSION_COUNT
      See Also:
  • Constructor Details

    • WebAppStat

      public WebAppStat()
    • WebAppStat

      public WebAppStat(String contextPath)
    • WebAppStat

      public WebAppStat(String contextPath, int maxStatSessionCount)
  • Method Details

    • current

      public static WebAppStat current()
    • reset

      public void reset()
    • getContextPath

      public String getContextPath()
    • beforeInvoke

      public void beforeInvoke()
    • getURIStat

      public WebURIStat getURIStat(String uri)
    • getURIStat

      public WebURIStat getURIStat(String uri, boolean create)
    • getSessionStat

      public WebSessionStat getSessionStat(String sessionId)
    • getSessionStatData

      public Map<String,Object> getSessionStatData(String sessionId)
    • getURIStatData

      public Map<String,Object> getURIStatData(String uri)
    • getSessionStat

      public WebSessionStat getSessionStat(String sessionId, boolean create)
    • afterInvoke

      public void afterInvoke(Throwable error, long nanoSpan)
    • incrementSessionCount

      public void incrementSessionCount()
    • getSessionCount

      public long getSessionCount()
    • addJdbcFetchRowCount

      public void addJdbcFetchRowCount(long delta)
    • getJdbcFetchRowCount

      public long getJdbcFetchRowCount()
    • addJdbcUpdateCount

      public void addJdbcUpdateCount(long updateCount)
    • getJdbcUpdateCount

      public long getJdbcUpdateCount()
    • incrementJdbcExecuteCount

      public void incrementJdbcExecuteCount()
    • addJdbcExecuteCount

      public void addJdbcExecuteCount(long executeCount)
    • getJdbcExecuteCount

      public long getJdbcExecuteCount()
    • getJdbcExecuteTimeNano

      public long getJdbcExecuteTimeNano()
    • addJdbcExecuteTimeNano

      public void addJdbcExecuteTimeNano(long nano)
    • incrementJdbcCommitCount

      public void incrementJdbcCommitCount()
    • getJdbcCommitCount

      public long getJdbcCommitCount()
    • addJdbcCommitCount

      public void addJdbcCommitCount(long commitCount)
    • incrementJdbcRollbackCount

      public void incrementJdbcRollbackCount()
    • getJdbcRollbackCount

      public long getJdbcRollbackCount()
    • addJdbcRollbackCount

      public void addJdbcRollbackCount(long rollbackCount)
    • getMaxStatUriCount

      public int getMaxStatUriCount()
    • setMaxStatUriCount

      public void setMaxStatUriCount(int maxStatUriCount)
    • getMaxStatSessionCount

      public int getMaxStatSessionCount()
    • setMaxStatSessionCount

      public void setMaxStatSessionCount(int maxStatSessionCount)
    • getRunningCount

      public int getRunningCount()
    • getConcurrentMax

      public long getConcurrentMax()
    • getRequestCount

      public long getRequestCount()
    • getStatData

      public Map<String,Object> getStatData()
    • getURIStatValueList

      public List<WebURIStatValue> getURIStatValueList(boolean reset)
    • getURIStatDataList

      public List<Map<String,Object>> getURIStatDataList()
    • getSessionStatDataList

      public List<Map<String,Object>> getSessionStatDataList()
    • computeUserAgent

      public void computeUserAgent(String userAgent)
    • getOSMacOSXCount

      public long getOSMacOSXCount()
    • getOSWindowsCount

      public long getOSWindowsCount()
    • getOSLinuxCount

      public long getOSLinuxCount()
    • getOSSymbianCount

      public long getOSSymbianCount()
    • getOSFreeBSDCount

      public long getOSFreeBSDCount()
    • getOSOpenBSDCount

      public long getOSOpenBSDCount()
    • getOSAndroidCount

      public long getOSAndroidCount()
    • getOSWindows98Count

      public long getOSWindows98Count()
    • getOSWindowsXPCount

      public long getOSWindowsXPCount()
    • getOSWindows2000Count

      public long getOSWindows2000Count()
    • getOSWindowsVistaCount

      public long getOSWindowsVistaCount()
    • getOSWindows7Count

      public long getOSWindows7Count()
    • getOSWindows8Count

      public long getOSWindows8Count()
    • getOSAndroid15Count

      public long getOSAndroid15Count()
    • getOSAndroid16Count

      public long getOSAndroid16Count()
    • getOSAndroid20Count

      public long getOSAndroid20Count()
    • getOSAndroid21Count

      public long getOSAndroid21Count()
    • getOSAndroid22Count

      public long getOSAndroid22Count()
    • getOSAndroid23Count

      public long getOSAndroid23Count()
    • getOSAndroid30Count

      public long getOSAndroid30Count()
    • getOSAndroid31Count

      public long getOSAndroid31Count()
    • getOSAndroid32Count

      public long getOSAndroid32Count()
    • getOSAndroid40Count

      public long getOSAndroid40Count()
    • getOSAndroid41Count

      public long getOSAndroid41Count()
    • getOSAndroid42Count

      public long getOSAndroid42Count()
    • getOSAndroid43Count

      public long getOSAndroid43Count()
    • getOSLinuxUbuntuCount

      public long getOSLinuxUbuntuCount()
    • getBrowserIECount

      public long getBrowserIECount()
    • getBrowserFirefoxCount

      public long getBrowserFirefoxCount()
    • getBrowserChromeCount

      public long getBrowserChromeCount()
    • getBrowserSafariCount

      public long getBrowserSafariCount()
    • getBrowserOperaCount

      public long getBrowserOperaCount()
    • getBrowserIE5Count

      public long getBrowserIE5Count()
    • getBrowserIE6Count

      public long getBrowserIE6Count()
    • getBrowserIE7Count

      public long getBrowserIE7Count()
    • getBrowserIE8Count

      public long getBrowserIE8Count()
    • getBrowserIE9Count

      public long getBrowserIE9Count()
    • getBrowserIE10Count

      public long getBrowserIE10Count()
    • getBrowser360SECount

      public long getBrowser360SECount()
    • getDeviceAndroidCount

      public long getDeviceAndroidCount()
    • getDeviceIpadCount

      public long getDeviceIpadCount()
    • getDeviceIphoneCount

      public long getDeviceIphoneCount()
    • getDeviceWindowsPhoneCount

      public long getDeviceWindowsPhoneCount()
    • getBotCount

      public long getBotCount()
    • getBotBaiduCount

      public long getBotBaiduCount()
    • getBotYoudaoCount

      public long getBotYoudaoCount()
    • getBotGoogleCount

      public long getBotGoogleCount()
    • getBotMsnCount

      public long getBotMsnCount()
    • getBotBingCount

      public long getBotBingCount()
    • getBotSosoCount

      public long getBotSosoCount()
    • getBotSogouCount

      public long getBotSogouCount()
    • getBotYahooCount

      public long getBotYahooCount()
    • getStatValue

      public WebAppStatValue getStatValue(boolean reset)