public class ReplicatedSessionDatasource extends Object implements ISessionDatasource, org.mobicents.cluster.DataRemovalListener
ISessionDatasource| Modifier and Type | Field and Description |
|---|---|
protected HashMap<Class<? extends IAppSessionData>,IAppSessionDataFactory<? extends IAppSessionData>> |
appSessionDataFactories |
static String |
CLUSTER_DS_DEFAULT_FILE |
static String |
SESSIONS |
static org.jboss.cache.Fqn |
SESSIONS_FQN |
| Constructor and Description |
|---|
ReplicatedSessionDatasource(IContainer container) |
ReplicatedSessionDatasource(IContainer container,
ISessionDatasource localDataSource,
String cacheConfigFilename) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSession(BaseSession session) |
void |
dataRemoved(org.jboss.cache.Fqn sessionFqn) |
boolean |
exists(String sessionId) |
org.jboss.cache.Fqn |
getBaseFqn() |
IContainer |
getContainer() |
IAppSessionDataFactory<? extends IAppSessionData> |
getDataFactory(Class<? extends IAppSessionData> x) |
org.mobicents.cluster.MobicentsCluster |
getMobicentsCluster() |
BaseSession |
getSession(String sessionId) |
NetworkReqListener |
getSessionListener(String sessionId) |
boolean |
isClustered() |
void |
removeSession(String sessionId) |
NetworkReqListener |
removeSessionListener(String sessionId) |
void |
setSessionListener(String sessionId,
NetworkReqListener data) |
void |
start() |
void |
stop() |
public static final String CLUSTER_DS_DEFAULT_FILE
protected HashMap<Class<? extends IAppSessionData>,IAppSessionDataFactory<? extends IAppSessionData>> appSessionDataFactories
public static final String SESSIONS
public static final org.jboss.cache.Fqn SESSIONS_FQN
public ReplicatedSessionDatasource(IContainer container)
public ReplicatedSessionDatasource(IContainer container, ISessionDatasource localDataSource, String cacheConfigFilename)
public boolean exists(String sessionId)
exists in interface ISessionDatasourcepublic void addSession(BaseSession session)
addSession in interface ISessionDatasourcepublic BaseSession getSession(String sessionId)
getSession in interface ISessionDatasourcepublic NetworkReqListener getSessionListener(String sessionId)
getSessionListener in interface ISessionDatasourcepublic void removeSession(String sessionId)
removeSession in interface ISessionDatasourcepublic NetworkReqListener removeSessionListener(String sessionId)
removeSessionListener in interface ISessionDatasourcepublic void setSessionListener(String sessionId, NetworkReqListener data)
setSessionListener in interface ISessionDatasourcepublic void start()
start in interface ISessionDatasourcepublic void stop()
stop in interface ISessionDatasourcepublic boolean isClustered()
isClustered in interface ISessionDatasourcepublic IAppSessionDataFactory<? extends IAppSessionData> getDataFactory(Class<? extends IAppSessionData> x)
getDataFactory in interface ISessionDatasourcepublic org.mobicents.cluster.MobicentsCluster getMobicentsCluster()
public void dataRemoved(org.jboss.cache.Fqn sessionFqn)
dataRemoved in interface org.mobicents.cluster.DataRemovalListenerpublic org.jboss.cache.Fqn getBaseFqn()
getBaseFqn in interface org.mobicents.cluster.DataRemovalListenerpublic IContainer getContainer()
Copyright © 2016. All Rights Reserved.