1 29 30 package com.caucho.management.server; 31 32 import com.caucho.jmx.Description; 33 import com.caucho.jmx.Units; 34 35 43 @Description("The session manager for a web-app") 44 public interface SessionManagerMXBean extends ManagedObjectMXBean 45 { 46 50 53 @Description("The owning WebApp for this session manager") 54 public WebAppMXBean getWebApp(); 55 56 59 @Description("The persistent store") 60 public PersistentStoreMXBean getPersistentStore(); 61 62 66 70 @Description("The configured value, if true serialize the session on each request, even if no attributes have been set") 71 public boolean isAlwaysSaveSession(); 72 73 76 @Description("The configured value, if true append the server's cluster index to the cookie value") 77 public boolean isCookieAppendServerIndex(); 78 79 82 @Description("The configured host domain used for session cookies") 83 public String getCookieDomain(); 84 85 88 @Description("The configured value, if true the cookie should only be used for http, not https requests") 89 public boolean isCookieHttpOnly(); 90 91 94 @Description("The configured length of the generated cookie") 95 public long getCookieLength(); 96 97 100 @Description("The configured session cookie max-age in milliseconds sent to the browser") 101 @Units("milliseconds") 102 public long getCookieMaxAge(); 103 104 107 @Description("The configured cookie name for servlet sessions") 108 public String getCookieName(); 109 110 113 @Description("The configured session cookie port sent to the browser") 114 public String getCookiePort(); 115 116 119 @Description("The configured value, if true the session cookie should only be sent on a secure connection") 120 public boolean isCookieSecure(); 121 122 125 @Description("The configured cookie version sent to the browser") 126 public int getCookieVersion(); 127 128 131 @Description("The configured value, if true session cookies are enabled") 132 public boolean isEnableCookies(); 133 134 138 @Description("The configured value, if true (discouraged) URL-rewriting is enabled. URL-rewriting should be avoided as a security risk.") 139 public boolean isEnableURLRewriting(); 140 141 144 @Description("The configured value, if true persistent sessions should ignore serialization errors.") 145 public boolean isIgnoreSerializationErrors(); 146 147 151 @Description("The configured value, if true the session should be invalidated only after listeners are called") 152 public boolean isInvalidateAfterListener(); 153 154 158 @Description("The configured value, if true the session-id should be reused if no session exists to match the cookie. This should generally be true to ensure web-app session consistency") 159 public boolean isReuseSessionId(); 160 161 164 @Description("The configured session persistence mode. The session save-mode is one of: " + 165 "before-headers, after-request, on-shutdown") 166 public String getSaveMode(); 167 168 172 @Description("The configured maximum number of sessions in memory. The number of persistent sessions may be larger") 173 public int getSessionMax(); 174 175 179 @Description("The configured time in milliseconds before an idle session is destroyed") 180 @Units("milliseconds") 181 public long getSessionTimeout(); 182 183 187 190 @Description("The current number of active sessions") 191 public long getSessionActiveCount(); 192 193 196 @Description("The total number of sessions that have been created") 197 public long getSessionCreateCountTotal(); 198 199 202 @Description("The total number of sessions that have been invalidated") 203 public long getSessionInvalidateCountTotal(); 204 205 208 @Description("The total number of times a session has timed out") 209 public long getSessionTimeoutCountTotal(); 210 } 211 | Popular Tags |