public class HashMapStore extends Object implements IClientPersistenceStore
IClientPersistenceStore.DEBUG_DETAILS
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
HashMapStore() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
called upon start of the session cache
|
boolean |
containsKey(org.apache.openmeetings.db.entity.server.Server server,
String streamId) |
org.apache.openmeetings.db.entity.room.Client |
get(org.apache.openmeetings.db.entity.server.Server server,
String streamId)
by server and publicSID
|
Collection<org.apache.openmeetings.db.entity.room.Client> |
getClients() |
List<org.apache.openmeetings.db.entity.room.Client> |
getClientsByPublicSID(org.apache.openmeetings.db.entity.server.Server server,
String publicSID) |
Map<Long,List<org.apache.openmeetings.db.entity.room.Client>> |
getClientsByPublicSID(String publicSID)
Searches for the publicSID across all servers
|
List<org.apache.openmeetings.db.entity.room.Client> |
getClientsByRoomId(Long roomId)
We ignore the server here, cause ONE room can only be on ONE server and often we don't know where.
|
Collection<org.apache.openmeetings.db.entity.room.Client> |
getClientsByServer(org.apache.openmeetings.db.entity.server.Server server)
get all clients by a specific
Server |
List<org.apache.openmeetings.db.entity.room.Client> |
getClientsByUserId(org.apache.openmeetings.db.entity.server.Server server,
Long userId) |
Collection<org.apache.openmeetings.db.entity.room.Client> |
getClientsWithServer()
if database cache + cluster is enabled, the server object will be loaded
into the client
|
String |
getDebugInformation(List<IClientPersistenceStore.DEBUG_DETAILS> detailLevel)
Get some session statistics
|
List<Long> |
getRoomsIdsByServer(org.apache.openmeetings.db.entity.server.Server server)
returns a list of roomIds (unique) that are currently active on the given server
In case the session is stored in the memory (no-cluster setup) it will always
return simply all active roomIds
|
int |
getTotalNumberOfSessions() |
void |
printDebugInformation(List<IClientPersistenceStore.DEBUG_DETAILS> detailLevel)
Print some session statistics to the debug out
|
void |
put(String streamId,
org.apache.openmeetings.db.entity.room.Client rcl) |
void |
remove(org.apache.openmeetings.db.entity.server.Server server,
String streamId) |
int |
size() |
int |
sizeByServer(org.apache.openmeetings.db.entity.server.Server server) |
Collection<org.apache.openmeetings.db.entity.room.Client> |
values() |
public void clear()
IClientPersistenceStore
clear
in interface IClientPersistenceStore
public void put(String streamId, org.apache.openmeetings.db.entity.room.Client rcl)
put
in interface IClientPersistenceStore
public boolean containsKey(org.apache.openmeetings.db.entity.server.Server server, String streamId)
containsKey
in interface IClientPersistenceStore
public org.apache.openmeetings.db.entity.room.Client get(org.apache.openmeetings.db.entity.server.Server server, String streamId)
IClientPersistenceStore
get
in interface IClientPersistenceStore
public List<org.apache.openmeetings.db.entity.room.Client> getClientsByPublicSID(org.apache.openmeetings.db.entity.server.Server server, String publicSID)
getClientsByPublicSID
in interface IClientPersistenceStore
public Map<Long,List<org.apache.openmeetings.db.entity.room.Client>> getClientsByPublicSID(String publicSID)
IClientPersistenceStore
getClientsByPublicSID
in interface IClientPersistenceStore
public Collection<org.apache.openmeetings.db.entity.room.Client> getClients()
getClients
in interface IClientPersistenceStore
public Collection<org.apache.openmeetings.db.entity.room.Client> getClientsWithServer()
IClientPersistenceStore
getClientsWithServer
in interface IClientPersistenceStore
public Collection<org.apache.openmeetings.db.entity.room.Client> getClientsByServer(org.apache.openmeetings.db.entity.server.Server server)
IClientPersistenceStore
Server
getClientsByServer
in interface IClientPersistenceStore
public List<org.apache.openmeetings.db.entity.room.Client> getClientsByUserId(org.apache.openmeetings.db.entity.server.Server server, Long userId)
getClientsByUserId
in interface IClientPersistenceStore
public List<org.apache.openmeetings.db.entity.room.Client> getClientsByRoomId(Long roomId)
IClientPersistenceStore
getClientsByRoomId
in interface IClientPersistenceStore
public void remove(org.apache.openmeetings.db.entity.server.Server server, String streamId)
remove
in interface IClientPersistenceStore
public int size()
size
in interface IClientPersistenceStore
public int sizeByServer(org.apache.openmeetings.db.entity.server.Server server)
sizeByServer
in interface IClientPersistenceStore
public Collection<org.apache.openmeetings.db.entity.room.Client> values()
values
in interface IClientPersistenceStore
public int getTotalNumberOfSessions()
public void printDebugInformation(List<IClientPersistenceStore.DEBUG_DETAILS> detailLevel)
detailLevel
- public String getDebugInformation(List<IClientPersistenceStore.DEBUG_DETAILS> detailLevel)
IClientPersistenceStore
getDebugInformation
in interface IClientPersistenceStore
public List<Long> getRoomsIdsByServer(org.apache.openmeetings.db.entity.server.Server server)
IClientPersistenceStore
getRoomsIdsByServer
in interface IClientPersistenceStore
Copyright © 2012–2017 Apache Software Foundation. All rights reserved.