public class WebAppStat extends Object
| 构造器和说明 |
|---|
WebAppStat() |
WebAppStat(String contextPath) |
WebAppStat(String contextPath,
int maxStatSessionCount) |
private static final Log LOG
public static final int DEFAULT_MAX_STAT_URI_COUNT
public static final int DEFAULT_MAX_STAT_SESSION_COUNT
private static final ThreadLocal<WebAppStat> currentLocal
private volatile int maxStatUriCount
private volatile int maxStatSessionCount
private final AtomicInteger runningCount
private final AtomicInteger concurrentMax
private final AtomicLong requestCount
private final AtomicLong sessionCount
private final AtomicLong jdbcFetchRowCount
private final AtomicLong jdbcUpdateCount
private final AtomicLong jdbcExecuteCount
private final AtomicLong jdbcExecuteTimeNano
private final AtomicLong jdbcCommitCount
private final AtomicLong jdbcRollbackCount
private final ConcurrentMap<String,WebURIStat> uriStatMap
private final LRUCache<String,WebSessionStat> sessionStatMap
private final ReadWriteLock sessionStatLock
private final AtomicLong uriStatMapFullCount
private final AtomicLong uriSessionMapFullCount
private final AtomicLong osMacOSXCount
private final AtomicLong osWindowsCount
private final AtomicLong osLinuxCount
private final AtomicLong osSymbianCount
private final AtomicLong osFreeBSDCount
private final AtomicLong osOpenBSDCount
private final AtomicLong osAndroidCount
private final AtomicLong osWindows98Count
private final AtomicLong osWindowsXPCount
private final AtomicLong osWindows2000Count
private final AtomicLong osWindowsVistaCount
private final AtomicLong osWindows7Count
private final AtomicLong osWindows8Count
private final AtomicLong osAndroid15Count
private final AtomicLong osAndroid16Count
private final AtomicLong osAndroid20Count
private final AtomicLong osAndroid21Count
private final AtomicLong osAndroid22Count
private final AtomicLong osAndroid23Count
private final AtomicLong osAndroid30Count
private final AtomicLong osAndroid31Count
private final AtomicLong osAndroid32Count
private final AtomicLong osAndroid40Count
private final AtomicLong osAndroid41Count
private final AtomicLong osAndroid42Count
private final AtomicLong osAndroid43Count
private final AtomicLong osLinuxUbuntuCount
private final AtomicLong browserIECount
private final AtomicLong browserFirefoxCount
private final AtomicLong browserChromeCount
private final AtomicLong browserSafariCount
private final AtomicLong browserOperaCount
private final AtomicLong browserIE5Count
private final AtomicLong browserIE6Count
private final AtomicLong browserIE7Count
private final AtomicLong browserIE8Count
private final AtomicLong browserIE9Count
private final AtomicLong browserIE10Count
private final AtomicLong browser360SECount
private final AtomicLong deviceAndroidCount
private final AtomicLong deviceIpadCount
private final AtomicLong deviceIphoneCount
private final AtomicLong deviceWindowsPhoneCount
private final AtomicLong botCount
private final AtomicLong botBaiduCount
private final AtomicLong botYoudaoCount
private final AtomicLong botGoogleCount
private final AtomicLong botMsnCount
private final AtomicLong botBingCount
private final AtomicLong botSosoCount
private final AtomicLong botSogouCount
private final AtomicLong botYahooCount
private String contextPath
public WebAppStat()
public WebAppStat(String contextPath)
public WebAppStat(String contextPath, int maxStatSessionCount)
public static WebAppStat current()
public void reset()
public String getContextPath()
public void beforeInvoke()
public WebURIStat getURIStat(String uri)
public WebURIStat getURIStat(String uri, boolean create)
public WebSessionStat getSessionStat(String sessionId)
public WebSessionStat getSessionStat(String sessionId, boolean create)
public void afterInvoke(Throwable error, long nanoSpan)
public void incrementSessionCount()
public long getSessionCount()
public void addJdbcFetchRowCount(long delta)
public long getJdbcFetchRowCount()
public void addJdbcUpdateCount(long updateCount)
public long getJdbcUpdateCount()
public void incrementJdbcExecuteCount()
public void addJdbcExecuteCount(long executeCount)
public long getJdbcExecuteCount()
public long getJdbcExecuteTimeNano()
public void addJdbcExecuteTimeNano(long nano)
public void incrementJdbcCommitCount()
public long getJdbcCommitCount()
public void addJdbcCommitCount(long commitCount)
public void incrementJdbcRollbackCount()
public long getJdbcRollbackCount()
public void addJdbcRollbackCount(long rollbackCount)
public int getMaxStatUriCount()
public void setMaxStatUriCount(int maxStatUriCount)
public int getMaxStatSessionCount()
public void setMaxStatSessionCount(int maxStatSessionCount)
public int getRunningCount()
public long getConcurrentMax()
public long getRequestCount()
public List<WebURIStatValue> getURIStatValueList(boolean reset)
public void computeUserAgent(String userAgent)
private void computeUserAgentFirefoxWindowsVersion(String userAgent)
private void computeUserAgentIEWindowsVersion(String userAgent)
private boolean computeUserAgentAndroid(String userAgent)
public long getOSMacOSXCount()
public long getOSWindowsCount()
public long getOSLinuxCount()
public long getOSSymbianCount()
public long getOSFreeBSDCount()
public long getOSOpenBSDCount()
public long getOSAndroidCount()
public long getOSWindows98Count()
public long getOSWindowsXPCount()
public long getOSWindows2000Count()
public long getOSWindowsVistaCount()
public long getOSWindows7Count()
public long getOSWindows8Count()
public long getOSAndroid15Count()
public long getOSAndroid16Count()
public long getOSAndroid20Count()
public long getOSAndroid21Count()
public long getOSAndroid22Count()
public long getOSAndroid23Count()
public long getOSAndroid30Count()
public long getOSAndroid31Count()
public long getOSAndroid32Count()
public long getOSAndroid40Count()
public long getOSAndroid41Count()
public long getOSAndroid42Count()
public long getOSAndroid43Count()
public long getOSLinuxUbuntuCount()
public long getBrowserIECount()
public long getBrowserFirefoxCount()
public long getBrowserChromeCount()
public long getBrowserSafariCount()
public long getBrowserOperaCount()
public long getBrowserIE5Count()
public long getBrowserIE6Count()
public long getBrowserIE7Count()
public long getBrowserIE8Count()
public long getBrowserIE9Count()
public long getBrowserIE10Count()
public long getBrowser360SECount()
public long getDeviceAndroidCount()
public long getDeviceIpadCount()
public long getDeviceIphoneCount()
public long getDeviceWindowsPhoneCount()
public long getBotCount()
public long getBotBaiduCount()
public long getBotYoudaoCount()
public long getBotGoogleCount()
public long getBotMsnCount()
public long getBotBingCount()
public long getBotSosoCount()
public long getBotSogouCount()
public long getBotYahooCount()
public WebAppStatValue getStatValue(boolean reset)
Copyright © 2013–2019 Alibaba Group. All rights reserved.