com.alibaba.druid.support.http.stat
Class WebAppStat

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

public class WebAppStat
extends Object


Field Summary
static int DEFAULT_MAX_STAT_SESSION_COUNT
           
static int DEFAULT_MAX_STAT_URI_COUNT
           
 
Constructor Summary
WebAppStat()
           
WebAppStat(String contextPath)
           
WebAppStat(String contextPath, int maxStatSessionCount)
           
 
Method Summary
 void addJdbcCommitCount(long commitCount)
           
 void addJdbcExecuteCount(long executeCount)
           
 void addJdbcExecuteTimeNano(long nano)
           
 void addJdbcFetchRowCount(long delta)
           
 void addJdbcRollbackCount(long rollbackCount)
           
 void addJdbcUpdateCount(long updateCount)
           
 void afterInvoke(Throwable error, long nanoSpan)
           
 void beforeInvoke()
           
 void computeUserAgent(String userAgent)
           
static WebAppStat current()
           
 long getBotBaiduCount()
           
 long getBotBingCount()
           
 long getBotCount()
           
 long getBotGoogleCount()
           
 long getBotMsnCount()
           
 long getBotSogouCount()
           
 long getBotSosoCount()
           
 long getBotYahooCount()
           
 long getBotYoudaoCount()
           
 long getBrowser360SECount()
           
 long getBrowserChromeCount()
           
 long getBrowserFirefoxCount()
           
 long getBrowserIE10Count()
           
 long getBrowserIE5Count()
           
 long getBrowserIE6Count()
           
 long getBrowserIE7Count()
           
 long getBrowserIE8Count()
           
 long getBrowserIE9Count()
           
 long getBrowserIECount()
           
 long getBrowserOperaCount()
           
 long getBrowserSafariCount()
           
 long getConcurrentMax()
           
 String getContextPath()
           
 long getDeviceAndroidCount()
           
 long getDeviceIpadCount()
           
 long getDeviceIphoneCount()
           
 long getDeviceWindowsPhoneCount()
           
 long getJdbcCommitCount()
           
 long getJdbcExecuteCount()
           
 long getJdbcExecuteTimeMillis()
           
 long getJdbcExecuteTimeNano()
           
 long getJdbcFetchRowCount()
           
 long getJdbcRollbackCount()
           
 long getJdbcUpdateCount()
           
 int getMaxStatSessionCount()
           
 int getMaxStatUriCount()
           
 long getOSAndroid15Count()
           
 long getOSAndroid16Count()
           
 long getOSAndroid20Count()
           
 long getOSAndroid21Count()
           
 long getOSAndroid22Count()
           
 long getOSAndroid23Count()
           
 long getOSAndroid30Count()
           
 long getOSAndroid31Count()
           
 long getOSAndroid32Count()
           
 long getOSAndroid40Count()
           
 long getOSAndroidCount()
           
 long getOSFreeBSDCount()
           
 long getOSLinuxCount()
           
 long getOSLinuxUbuntuCount()
           
 long getOSMacOSXCount()
           
 long getOSOpenBSDCount()
           
 long getOSSymbianCount()
           
 long getOSWindows2000Count()
           
 long getOSWindows7Count()
           
 long getOSWindows98Count()
           
 long getOSWindowsCount()
           
 long getOSWindowsVistaCount()
           
 long getOSWindowsXPCount()
           
 long getRequestCount()
           
 int getRunningCount()
           
 long getSessionCount()
           
 WebSessionStat getSessionStat(String sessionId)
           
 WebSessionStat getSessionStat(String sessionId, boolean create)
           
 Map<String,Object> getSessionStatData(String sessionId)
           
 List<Map<String,Object>> getSessionStatDataList()
           
 Map<String,Object> getStatData()
           
 WebURIStat getURIStat(String uri)
           
 WebURIStat getURIStat(String uri, boolean create)
           
 Map<String,Object> getURIStatData(String uri)
           
 List<Map<String,Object>> getURIStatDataList()
           
 void incrementJdbcCommitCount()
           
 void incrementJdbcExecuteCount()
           
 void incrementJdbcRollbackCount()
           
 void incrementSessionCount()
           
 void reset()
           
 void setMaxStatSessionCount(int maxStatSessionCount)
           
 void setMaxStatUriCount(int maxStatUriCount)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MAX_STAT_URI_COUNT

public static final int DEFAULT_MAX_STAT_URI_COUNT
See Also:
Constant Field Values

DEFAULT_MAX_STAT_SESSION_COUNT

public static final int DEFAULT_MAX_STAT_SESSION_COUNT
See Also:
Constant Field Values
Constructor Detail

WebAppStat

public WebAppStat()

WebAppStat

public WebAppStat(String contextPath)

WebAppStat

public WebAppStat(String contextPath,
                  int maxStatSessionCount)
Method Detail

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()

getJdbcExecuteTimeMillis

public long getJdbcExecuteTimeMillis()

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()

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()

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()

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()


Copyright © 2012 Alibaba Group. All Rights Reserved.