|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.web.tomcat.service.session.distributedcache.impl.jbc.AbstractJBossCacheService<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.FieldBasedJBossCacheService
public class FieldBasedJBossCacheService
DistributedCacheManager impl for ReplicationGranularity.FIELD.
Field Summary | |
---|---|
static String |
ATTRIBUTE
|
Fields inherited from class org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.AbstractJBossCacheService |
---|
ATTRIBUTE_KEY, batchingManager, BUDDY_BACKUP, BUDDY_BACKUP_FQN, cacheConfigName_, cacheWrapper_, combinedPath_, FQN_DELIMITER, INTERNAL_KEYS, log_, METADATA_KEY, SESSION, TIMESTAMP_KEY, VERSION_KEY |
Constructor Summary | |
---|---|
FieldBasedJBossCacheService(org.jboss.web.tomcat.service.session.distributedcache.spi.LocalDistributableSessionManager localManager)
|
|
FieldBasedJBossCacheService(org.jboss.web.tomcat.service.session.distributedcache.spi.LocalDistributableSessionManager localManager,
org.jboss.cache.pojo.PojoCache cache)
Create a new FieldBasedJBossCacheService. |
Method Summary | |
---|---|
Object |
getAttribute(String realId,
String key)
|
static org.jboss.cache.Fqn<String> |
getAttributeFqn(String contextHostPath,
String sessionId)
|
Set<String> |
getAttributeKeys(String realId)
|
Map<String,Object> |
getAttributes(String realId)
|
static org.jboss.cache.Fqn<String> |
getFieldFqn(String contextHostPath,
String sessionId,
String attributeKey)
|
protected Map<String,Object> |
getSessionAttributes(String realId,
Map<Object,Object> distributedCacheData)
Overrides the superclass to pull in attributes via PojoCache API. |
boolean |
getSupportsAttributeOperations()
|
void |
putAttribute(String realId,
Map<String,Object> map)
|
void |
putAttribute(String realId,
String key,
Object value)
|
protected void |
releaseCacheToManager(String cacheConfigName)
|
Object |
removeAttribute(String realId,
String key)
Remove pojo from the underlying cache store. |
void |
removeAttributeLocal(String realId,
String key)
|
protected void |
removeSessionRegion(String realId,
org.jboss.cache.Fqn<String> fqn)
Extension point to allow subclasses to remove per-session JBC regions. |
void |
sessionCreated(String realId)
|
protected void |
setupSessionRegion(org.jboss.cache.Fqn<String> fqn)
Extension point to allow subclasses to add per-session JBC regions. |
protected void |
storeSessionAttributes(Map<Object,Object> dataMap,
org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData sessionData)
|
Methods inherited from class org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.AbstractJBossCacheService |
---|
evictSession, evictSession, getBatchingManager, getBuddyBackupSessionFqn, getCache, getChildrenNames, getCombinedPath, getDistributableSessionData, getManager, getMarshalledValue, getSessionData, getSessionData, getSessionFqn, getSessionIds, getUnMarshalledValue, getWebappFqn, isMarshallingAvailable, isPassivationEnabled, removeSession, removeSessionLocal, removeSessionLocal, setCache, start, stop, storeSessionData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ATTRIBUTE
Constructor Detail |
---|
public FieldBasedJBossCacheService(org.jboss.web.tomcat.service.session.distributedcache.spi.LocalDistributableSessionManager localManager) throws org.jboss.web.tomcat.service.session.distributedcache.spi.ClusteringNotSupportedException
org.jboss.web.tomcat.service.session.distributedcache.spi.ClusteringNotSupportedException
public FieldBasedJBossCacheService(org.jboss.web.tomcat.service.session.distributedcache.spi.LocalDistributableSessionManager localManager, org.jboss.cache.pojo.PojoCache cache)
cache
- Method Detail |
---|
public static org.jboss.cache.Fqn<String> getAttributeFqn(String contextHostPath, String sessionId)
public static org.jboss.cache.Fqn<String> getFieldFqn(String contextHostPath, String sessionId, String attributeKey)
public boolean getSupportsAttributeOperations()
public void putAttribute(String realId, String key, Object value)
public Object removeAttribute(String realId, String key)
realId
- the session id with any jvmRoute removedkey
- the attribute key
public void removeAttributeLocal(String realId, String key)
public Set<String> getAttributeKeys(String realId)
public Object getAttribute(String realId, String key)
realId
- the session id with any jvmRoute removedkey
- the attribute key
public void sessionCreated(String realId)
sessionCreated
in interface org.jboss.web.tomcat.service.session.distributedcache.spi.DistributedCacheManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
sessionCreated
in class AbstractJBossCacheService<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
protected void setupSessionRegion(org.jboss.cache.Fqn<String> fqn)
AbstractJBossCacheService
setupSessionRegion
in class AbstractJBossCacheService<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
fqn
- the fqn for the sessionprotected void removeSessionRegion(String realId, org.jboss.cache.Fqn<String> fqn)
AbstractJBossCacheService
removeSessionRegion
in class AbstractJBossCacheService<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
fqn
- the fqn for the sessionprotected void releaseCacheToManager(String cacheConfigName)
releaseCacheToManager
in class AbstractJBossCacheService<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
public Map<String,Object> getAttributes(String realId)
public void putAttribute(String realId, Map<String,Object> map)
protected Map<String,Object> getSessionAttributes(String realId, Map<Object,Object> distributedCacheData)
getSessionAttributes
in class AbstractJBossCacheService<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
protected void storeSessionAttributes(Map<Object,Object> dataMap, org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData sessionData)
storeSessionAttributes
in class AbstractJBossCacheService<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |