public class NonClusteredBackingCacheEntryStoreSource<K extends Serializable,V extends Cacheable<K>,G extends Serializable> extends AbstractBackingCacheEntryStoreSource<K,V,G>
BackingCacheEntryStoreSource
for a non-clustered cache. Uses a FilePersistentObjectStore
store for
persistence.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_GROUP_DIRECTORY_NAME
The default session group store directory name ("ejb3/sfsbgroups").
|
static String |
DEFAULT_RELATIVE_TO |
static String |
DEFAULT_SESSION_DIRECTORY_NAME
The default session store directory name ("ejb3/sessions").
|
static int |
DEFAULT_SUBDIRECTORY_COUNT |
DEFAULT_IDLE_TIMEOUT, DEFAULT_IDLE_TIMEOUT_UNIT, DEFAULT_MAX_SIZE
Constructor and Description |
---|
NonClusteredBackingCacheEntryStoreSource() |
Modifier and Type | Method and Description |
---|---|
void |
addDependencies(org.jboss.msc.service.ServiceTarget target,
org.jboss.msc.service.ServiceBuilder<?> builder) |
<E extends SerializationGroup<K,V,G>> |
createGroupIntegratedObjectStore(PassivationManager<G,E> passivationManager,
StatefulTimeoutInfo timeout)
Provide a
BackingCacheEntryStore for storage of serialization groups. |
<E extends SerializationGroupMember<K,V,G>> |
createIntegratedObjectStore(String beanName,
PassivationManager<K,E> passivationManager,
StatefulTimeoutInfo timeout)
Provide a
BackingCacheEntryStore for storage of serialization group members. |
String |
getGroupDirectoryName()
Gets the name of the subdirectory under the
base directory under which session groups
should be stored. |
String |
getRelativeTo() |
String |
getSessionDirectoryName()
Gets the name of the subdirectory under the
base directory under which sessions should be
stored. |
int |
getSubdirectoryCount()
Gets the number of subdirectories under the session directory or the group directory into which the sessions/groups
should be divided.
|
void |
setGroupDirectoryName(String groupDirectoryName)
Sets the name of the subdirectory under the
base directory under which session groups
should be stored. |
void |
setRelativeTo(String relativeTo) |
void |
setSessionDirectoryName(String directoryName)
Sets the name of the subdirectory under the
base directory under which sessions should be
stored. |
void |
setSubdirectoryCount(int subdirectoryCount)
Sets the number of subdirectories under the session directory or the group directory into which the sessions/groups
should be divided.
|
getIdleTimeout, getIdleTimeoutUnit, getMaxSize, isPassivateEventsOnReplicate, setIdleTimeout, setIdleTimeoutUnit, setMaxSize
public static final String DEFAULT_SESSION_DIRECTORY_NAME
public static final String DEFAULT_GROUP_DIRECTORY_NAME
public static final String DEFAULT_RELATIVE_TO
public static final int DEFAULT_SUBDIRECTORY_COUNT
public NonClusteredBackingCacheEntryStoreSource()
public <E extends SerializationGroup<K,V,G>> BackingCacheEntryStore<G,Cacheable<G>,E> createGroupIntegratedObjectStore(PassivationManager<G,E> passivationManager, StatefulTimeoutInfo timeout)
BackingCacheEntryStoreSource
BackingCacheEntryStore
for storage of serialization groups.public <E extends SerializationGroupMember<K,V,G>> BackingCacheEntryStore<K,V,E> createIntegratedObjectStore(String beanName, PassivationManager<K,E> passivationManager, StatefulTimeoutInfo timeout)
BackingCacheEntryStoreSource
BackingCacheEntryStore
for storage of serialization group members.public void addDependencies(org.jboss.msc.service.ServiceTarget target, org.jboss.msc.service.ServiceBuilder<?> builder)
public String getSessionDirectoryName()
base directory
under which sessions should be
stored. Default is DEFAULT_SESSION_DIRECTORY_NAME
.public void setSessionDirectoryName(String directoryName)
base directory
under which sessions should be
stored.public String getGroupDirectoryName()
base directory
under which session groups
should be stored. Default is DEFAULT_GROUP_DIRECTORY_NAME
.public void setGroupDirectoryName(String groupDirectoryName)
base directory
under which session groups
should be stored.public int getSubdirectoryCount()
DEFAULT_SUBDIRECTORY_COUNT
.public void setSubdirectoryCount(int subdirectoryCount)
public String getRelativeTo()
public void setRelativeTo(String relativeTo)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.