public class RedisManager extends org.apache.catalina.util.LifecycleMBeanBase implements org.apache.catalina.Manager, PropertyChangeListener
| Modifier and Type | Field and Description |
|---|---|
private org.apache.catalina.Container |
container |
private boolean |
disableListeners |
private RedisEventListenerThread |
eventListenerThread |
private static String |
info |
private String |
jedisJndiName |
private org.apache.juli.logging.Log |
log |
private int |
maxActiveSessions |
private int |
maxInactiveInterval |
private redis.clients.jedis.JedisPool |
pool |
private String |
redisHostname |
private String |
redisPassword |
private int |
redisPort |
private int |
redisTimeout |
private String |
secureRandomAlgorithm |
private String |
secureRandomClass |
private String |
secureRandomProvider |
private org.apache.catalina.util.SessionIdGenerator |
sessionIdGenerator |
private int |
sessionIdLength |
private static org.apache.tomcat.util.res.StringManager |
sm |
private PropertyChangeSupport |
support |
AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
RedisManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.catalina.Session session) |
void |
addPropertyChangeListener(PropertyChangeListener listener) |
void |
backgroundProcess() |
void |
changeSessionId(org.apache.catalina.Session session) |
org.apache.catalina.Session |
createEmptySession() |
org.apache.catalina.Session |
createSession(String sessionId) |
org.apache.catalina.Session |
findSession(String id) |
org.apache.catalina.Session[] |
findSessions() |
protected String |
generateSessionId() |
int |
getActiveSessions() |
org.apache.catalina.Container |
getContainer() |
protected ClassLoader |
getContainerClassLoader() |
boolean |
getDistributable() |
protected String |
getDomainInternal() |
org.apache.catalina.Engine |
getEngine() |
long |
getExpiredSessions() |
String |
getInfo() |
String |
getJedisJndiName() |
String |
getJvmRoute() |
int |
getMaxActive() |
int |
getMaxActiveSessions() |
int |
getMaxInactiveInterval() |
protected String |
getObjectNameKeyProperties() |
redis.clients.jedis.JedisPool |
getPool() |
String |
getRedisHostname() |
String |
getRedisPassword() |
int |
getRedisPort() |
int |
getRedisTimeout() |
int |
getRejectedSessions() |
String |
getSecureRandomAlgorithm() |
String |
getSecureRandomClass() |
String |
getSecureRandomProvider() |
int |
getSessionAverageAliveTime() |
long |
getSessionCounter() |
int |
getSessionCreateRate() |
int |
getSessionExpireRate() |
int |
getSessionIdLength() |
int |
getSessionMaxAliveTime() |
boolean |
isDisableListeners() |
void |
load() |
void |
propertyChange(PropertyChangeEvent event) |
void |
remove(org.apache.catalina.Session session) |
void |
remove(org.apache.catalina.Session session,
boolean update) |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
setContainer(org.apache.catalina.Container container) |
void |
setDisableListeners(boolean disableListeners) |
void |
setDistributable(boolean distributable) |
void |
setExpiredSessions(long expiredSessions) |
void |
setJedisJndiName(String jedisJndiName) |
void |
setMaxActive(int maxActive) |
void |
setMaxActiveSessions(int max) |
void |
setMaxInactiveInterval(int interval) |
void |
setRedisHostname(String redisHostname) |
void |
setRedisPassword(String redisPassword) |
void |
setRedisPort(int redisPort) |
void |
setRedisTimeout(int redisTimeout) |
void |
setSecureRandomAlgorithm(String secureRandomAlgorithm) |
void |
setSecureRandomClass(String secureRandomClass) |
void |
setSecureRandomProvider(String secureRandomProvider) |
void |
setSessionCounter(long sessionCounter) |
void |
setSessionIdLength(int idLength) |
void |
setSessionMaxAliveTime(int sessionMaxAliveTime) |
protected void |
startInternal() |
protected void |
stopInternal() |
void |
unload() |
destroyInternal, getDomain, getObjectName, initInternal, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregisterprivate final org.apache.juli.logging.Log log
private static final String info
private static final org.apache.tomcat.util.res.StringManager sm
private org.apache.catalina.Container container
private int maxInactiveInterval
private int sessionIdLength
private int maxActiveSessions
private String secureRandomClass
private String secureRandomAlgorithm
private String secureRandomProvider
private org.apache.catalina.util.SessionIdGenerator sessionIdGenerator
private String jedisJndiName
private String redisHostname
private int redisPort
private int redisTimeout
private String redisPassword
private redis.clients.jedis.JedisPool pool
private boolean disableListeners
private PropertyChangeSupport support
private final RedisEventListenerThread eventListenerThread
public org.apache.catalina.Container getContainer()
getContainer in interface org.apache.catalina.Managerpublic void setContainer(org.apache.catalina.Container container)
setContainer in interface org.apache.catalina.Managerpublic boolean getDistributable()
getDistributable in interface org.apache.catalina.Managerpublic void setDistributable(boolean distributable)
setDistributable in interface org.apache.catalina.Managerpublic String getInfo()
getInfo in interface org.apache.catalina.Managerpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface org.apache.catalina.Managerpublic void setMaxInactiveInterval(int interval)
setMaxInactiveInterval in interface org.apache.catalina.Managerpublic int getSessionIdLength()
getSessionIdLength in interface org.apache.catalina.Managerpublic void setSessionIdLength(int idLength)
setSessionIdLength in interface org.apache.catalina.Managerpublic long getSessionCounter()
getSessionCounter in interface org.apache.catalina.Managerpublic void setSessionCounter(long sessionCounter)
setSessionCounter in interface org.apache.catalina.Managerpublic int getMaxActive()
getMaxActive in interface org.apache.catalina.Managerpublic void setMaxActive(int maxActive)
setMaxActive in interface org.apache.catalina.Managerpublic int getMaxActiveSessions()
public void setMaxActiveSessions(int max)
public int getActiveSessions()
getActiveSessions in interface org.apache.catalina.Managerpublic long getExpiredSessions()
getExpiredSessions in interface org.apache.catalina.Managerpublic void setExpiredSessions(long expiredSessions)
setExpiredSessions in interface org.apache.catalina.Managerpublic int getRejectedSessions()
getRejectedSessions in interface org.apache.catalina.Managerpublic int getSessionMaxAliveTime()
getSessionMaxAliveTime in interface org.apache.catalina.Managerpublic void setSessionMaxAliveTime(int sessionMaxAliveTime)
setSessionMaxAliveTime in interface org.apache.catalina.Managerpublic int getSessionAverageAliveTime()
getSessionAverageAliveTime in interface org.apache.catalina.Managerpublic int getSessionCreateRate()
getSessionCreateRate in interface org.apache.catalina.Managerpublic int getSessionExpireRate()
getSessionExpireRate in interface org.apache.catalina.Managerpublic void add(org.apache.catalina.Session session)
add in interface org.apache.catalina.Managerpublic void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface org.apache.catalina.Managerpublic void changeSessionId(org.apache.catalina.Session session)
changeSessionId in interface org.apache.catalina.Managerpublic org.apache.catalina.Session createEmptySession()
createEmptySession in interface org.apache.catalina.Managerpublic org.apache.catalina.Session createSession(String sessionId)
createSession in interface org.apache.catalina.Managerpublic org.apache.catalina.Session findSession(String id) throws IOException
findSession in interface org.apache.catalina.ManagerIOExceptionpublic org.apache.catalina.Session[] findSessions()
findSessions in interface org.apache.catalina.Managerpublic void load()
throws ClassNotFoundException,
IOException
load in interface org.apache.catalina.ManagerClassNotFoundExceptionIOExceptionpublic void remove(org.apache.catalina.Session session)
remove in interface org.apache.catalina.Managerpublic void remove(org.apache.catalina.Session session,
boolean update)
remove in interface org.apache.catalina.Managerpublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface org.apache.catalina.Managerpublic void unload()
throws IOException
unload in interface org.apache.catalina.ManagerIOExceptionpublic void backgroundProcess()
backgroundProcess in interface org.apache.catalina.Managerprotected String getDomainInternal()
getDomainInternal in class org.apache.catalina.util.LifecycleMBeanBaseprotected String getObjectNameKeyProperties()
getObjectNameKeyProperties in class org.apache.catalina.util.LifecycleMBeanBasepublic String getJedisJndiName()
public void setJedisJndiName(String jedisJndiName)
public String getRedisHostname()
public void setRedisHostname(String redisHostname)
public int getRedisPort()
public void setRedisPort(int redisPort)
public int getRedisTimeout()
public void setRedisTimeout(int redisTimeout)
public String getRedisPassword()
public void setRedisPassword(String redisPassword)
public redis.clients.jedis.JedisPool getPool()
public boolean isDisableListeners()
public void setDisableListeners(boolean disableListeners)
protected void startInternal()
throws org.apache.catalina.LifecycleException
startInternal in class org.apache.catalina.util.LifecycleBaseorg.apache.catalina.LifecycleExceptionpublic org.apache.catalina.Engine getEngine()
public String getJvmRoute()
public String getSecureRandomClass()
public void setSecureRandomClass(String secureRandomClass)
public String getSecureRandomAlgorithm()
public void setSecureRandomAlgorithm(String secureRandomAlgorithm)
public String getSecureRandomProvider()
public void setSecureRandomProvider(String secureRandomProvider)
protected void stopInternal()
throws org.apache.catalina.LifecycleException
stopInternal in class org.apache.catalina.util.LifecycleBaseorg.apache.catalina.LifecycleExceptionprotected String generateSessionId()
protected ClassLoader getContainerClassLoader()
public void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListenerCopyright © 2015. All rights reserved.