mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
web stat support
This commit is contained in:
@@ -37,8 +37,8 @@ public class WebStatFilter implements Filter {
|
||||
public final static String PARAM_NAME_SESSION_STAT_ENABLE = "sessionStatEnable";
|
||||
public final static String PARAM_NAME_SESSION_STAT_MAX_COUNT = "sessionStatMaxCount";
|
||||
public static final String PARAM_NAME_EXCLUSIONS = "exclusions";
|
||||
public static final String PARAM_NAME_PRINCIPAL_SESSION_NAME = "princialSessionName";
|
||||
public static final String PARAM_NAME_PRINCIPAL_COOKIE_NAME = "princialCookieName";
|
||||
public static final String PARAM_NAME_PRINCIPAL_SESSION_NAME = "principalSessionName";
|
||||
public static final String PARAM_NAME_PRINCIPAL_COOKIE_NAME = "principalCookieName";
|
||||
|
||||
public final static int DEFAULT_MAX_STAT_SESSION_COUNT = 1000 * 100;
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ public class WebSessionStat {
|
||||
StringBuilder buf = new StringBuilder();
|
||||
for (String item : remoteAddresses) {
|
||||
if (buf.length() != 0) {
|
||||
buf.append(",");
|
||||
buf.append(";");
|
||||
}
|
||||
buf.append(item);
|
||||
}
|
||||
@@ -261,6 +261,7 @@ public class WebSessionStat {
|
||||
Map<String, Object> data = new LinkedHashMap<String, Object>();
|
||||
|
||||
data.put("SESSIONID", this.getSessionId());
|
||||
data.put("Principal", this.getPrincipal());
|
||||
data.put("RunningCount", this.getRunningCount());
|
||||
data.put("ConcurrentMax", this.getConcurrentMax());
|
||||
data.put("RequestCount", this.getRequestCount());
|
||||
|
||||
Reference in New Issue
Block a user