public interface ISessionManager
Client
s to the sessionModifier and Type | Method and Description |
---|---|
Client |
addClientListItem(String streamId,
String scopeName,
Integer remotePort,
String remoteAddress,
String swfUrl,
Server server)
add a new client item
|
List<Long> |
getActiveRoomIdsByServer(Server server)
Get a list of all servers of all rooms on that server, serverId = null
means it is a local session on the master.
|
Client |
getClientByPublicSID(String publicSID,
Server server)
get a client by its publicSID and the server,
|
ClientSessionInfo |
getClientByPublicSIDAnyServer(String publicSID)
same as
#getClientByPublicSID(String, boolean, Server) but it ignores
if the server part, so it will deliver any client just by its publicSID.Note: This method requires more time to find the user, so under normal circumstances you should use #getClientByPublicSID(String, boolean, Server) ! |
Client |
getClientByStreamId(String streamId,
Server server)
Get a client by its streamId
|
Client |
getClientByUserId(Long userId)
Deprecated.
There could be multiple users logged in with the same userid,
then this call would return a list not a single user
|
List<Client> |
getClientListByRoom(Long roomId)
Get all ClientList Objects of that room and domain This Function is
needed cause it is invoked internally AFTER the current user has been
already removed from the ClientList to see if the Room is empty again and
the PollList can be removed
|
Collection<Client> |
getClientListByRoomAll(Long roomId) |
Collection<Client> |
getClients() |
Collection<Client> |
getClientsWithServer()
loads the server into the client (only if database cache is used)
|
List<Client> |
getCurrentModeratorByRoom(Long roomId)
get the current Moderator in this room
|
SearchResult<Client> |
getListByStartAndMax(int start,
int max,
String orderby,
boolean asc)
Get list of current client sessions
|
long |
getPublishingCount(long roomId)
returns a number of current users publishing screensharing
|
long |
getRecordingCount(long roomId)
returns number of current users recording
|
String |
getSessionStatistics()
Get some statistics about the current sessions
|
boolean |
removeClient(String streamId,
Server server)
Remove a client from the session store
|
void |
sessionStart()
Notified on server start, when the session manager should be started and
eventually caches cleared/setup
|
boolean |
updateAVClientByStreamId(String streamId,
Client rcm,
Server server)
Update the session object of the audio/video-connection and additionally
swap the values to the session object of the user that holds the full
session object
|
boolean |
updateClientByStreamId(String streamId,
Client rcm,
boolean updateRoomCount,
Server server)
Update the session object
updateRoomCount is only one time true, in
ScopeApplicationAdapter#setRoomValues(Long, Boolean, Boolean, String)
.
|
void sessionStart()
Client addClientListItem(String streamId, String scopeName, Integer remotePort, String remoteAddress, String swfUrl, Server server)
streamId
- scopeName
- remotePort
- remoteAddress
- swfUrl
- server
- Collection<Client> getClients()
Collection<Client> getClientsWithServer()
Client getClientByStreamId(String streamId, Server server)
streamId
- server
- Client getClientByPublicSID(String publicSID, Server server)
publicSID
- server
- ClientSessionInfo getClientByPublicSIDAnyServer(String publicSID)
#getClientByPublicSID(String, boolean, Server)
but it ignores
if the server part, so it will deliver any client just by its publicSID.#getClientByPublicSID(String, boolean, Server)
!publicSID
- Client getClientByUserId(Long userId)
userId
- boolean updateAVClientByStreamId(String streamId, Client rcm, Server server)
streamId
- rcm
- boolean updateClientByStreamId(String streamId, Client rcm, boolean updateRoomCount, Server server)
streamId
- rcm
- updateRoomCount
- true means the count for the room has to be updatedboolean removeClient(String streamId, Server server)
streamId
- List<Client> getClientListByRoom(Long roomId)
roomId
- Collection<Client> getClientListByRoomAll(Long roomId)
List<Client> getCurrentModeratorByRoom(Long roomId)
roomname
- SearchResult<Client> getListByStartAndMax(int start, int max, String orderby, boolean asc)
start
- max
- orderby
- asc
- long getRecordingCount(long roomId)
roomId
- long getPublishingCount(long roomId)
roomId
- List<Long> getActiveRoomIdsByServer(Server server)
server
- String getSessionStatistics()
Copyright © 2012–2016 Apache Software Foundation. All rights reserved.