|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.session.StoreBase
org.glassfish.web.ha.session.management.HAStoreBase
public abstract class HAStoreBase
| Field Summary | |
|---|---|
protected int |
_debug
Controls the verbosity of the web container subsystem's debug messages. |
protected static java.util.logging.Logger |
_logger
The logger to use for logging ALL web container related messages. |
protected java.util.logging.Level |
_logLevel
The current level of logging verbosity for this object. |
protected java.lang.String |
applicationId
The application id |
protected java.lang.String |
clusterId
The cluster id |
protected JavaEEIOUtils |
ioUtils
|
protected ServerConfigLookup |
serverConfigLookup
|
| Fields inherited from class org.apache.catalina.session.StoreBase |
|---|
debug, info, lifecycle, manager, sm, started, storeName, support |
| Fields inherited from interface org.apache.catalina.Lifecycle |
|---|
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT |
| Constructor Summary | |
|---|---|
HAStoreBase(ServerConfigLookup serverConfigLookup,
JavaEEIOUtils ioUtils)
Creates a new instance of HAStoreBase |
|
| Method Summary | |
|---|---|
protected void |
debug(java.lang.String message)
|
void |
doRemove(java.lang.String id)
Remove the Session with the specified session identifier from this Store, if present. |
java.lang.String |
getApplicationId()
|
byte[] |
getByteArray(Session session)
Create serialized byte[] for obj. |
protected byte[] |
getByteArray(Session session,
boolean compress)
Create an byte[] for the session that we can then pass to the HA Store. |
protected java.lang.String |
getClusterId()
Return the cluster id for this Store |
protected java.lang.String |
getClusterIdFromConfig()
Return the cluster id for this Store as defined in server.xml. |
int |
getSize()
return the size of the store cache will be over-ridden in subclasses |
void |
remove(java.lang.String id)
Remove the Session with the specified session identifier from this Store, if present. |
void |
removeSynchronized(java.lang.String id)
Remove the Session with the specified session identifier from this Store, if present. |
protected void |
setLogLevel()
Set _debug flag and _logLevel based on the log level. |
| Methods inherited from class org.apache.catalina.session.StoreBase |
|---|
addLifecycleListener, addPropertyChangeListener, doProcessExpires, findLifecycleListeners, getDebug, getInfo, getManager, getStoreName, load, log, processExpires, readSession, removeFromStoreCache, removeLifecycleListener, removePropertyChangeListener, setDebug, setManager, start, stop, writeSession |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.catalina.Store |
|---|
clear, keys, load, save |
| Field Detail |
|---|
protected ServerConfigLookup serverConfigLookup
protected JavaEEIOUtils ioUtils
protected static final java.util.logging.Logger _logger
protected int _debug
protected java.util.logging.Level _logLevel
protected java.lang.String applicationId
protected java.lang.String clusterId
| Constructor Detail |
|---|
public HAStoreBase(ServerConfigLookup serverConfigLookup,
JavaEEIOUtils ioUtils)
| Method Detail |
|---|
protected void debug(java.lang.String message)
protected void setLogLevel()
public java.lang.String getApplicationId()
protected java.lang.String getClusterIdFromConfig()
protected java.lang.String getClusterId()
public byte[] getByteArray(Session session)
throws java.io.IOException
obj.
session - - serialize obj
java.io.IOException
protected byte[] getByteArray(Session session,
boolean compress)
throws java.io.IOException
session - The session we are serializing
java.io.IOException
public void remove(java.lang.String id)
throws java.io.IOException
id - Session identifier of the Session to be removed
java.io.IOException - if an input/output error occurs
public void doRemove(java.lang.String id)
throws java.io.IOException
id - Session identifier of the Session to be removed
java.io.IOException - if an input/output error occurs
public void removeSynchronized(java.lang.String id)
throws java.io.IOException
id - Session identifier of the Session to be removed
java.io.IOException - if an input/output error occurs
public int getSize()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||