|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.ClientRegistry
@ManagedResource(objectName="org.red5.server:type=ClientRegistry,name=default", description="ClientRegistry") public class ClientRegistry
Registry for clients. Associates client with it's id so it's possible to get client by id from whenever we need.
Constructor Summary | |
---|---|
ClientRegistry()
|
|
ClientRegistry(String name)
|
Method Summary | |
---|---|
protected void |
addClient(IClient client)
Add client to registry |
Client |
getClient(String id)
|
ClientList<Client> |
getClientList()
Returns a list of Clients. |
protected Collection<IClient> |
getClients()
Return collection of clients |
boolean |
hasClient(String id)
Check whether registry has client with given id |
protected boolean |
hasClients()
Check if client registry contains clients. |
IClient |
lookupClient(String id)
Return client by id |
IClient |
newClient(Object[] params)
Return client from next id with given params |
String |
nextId()
Return next client id |
String |
previousId()
Return previous client id |
protected void |
removeClient(IClient client)
Removes client from registry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientRegistry()
public ClientRegistry(String name)
Method Detail |
---|
protected void addClient(IClient client)
client
- Client to addpublic Client getClient(String id) throws ClientNotFoundException
getClient
in interface ClientRegistryMXBean
ClientNotFoundException
public ClientList<Client> getClientList()
getClientList
in interface ClientRegistryMXBean
protected boolean hasClients()
True
if clients exist, otherwise False
protected Collection<IClient> getClients()
public boolean hasClient(String id)
hasClient
in interface IClientRegistry
hasClient
in interface ClientRegistryMXBean
id
- Client id
public IClient lookupClient(String id) throws ClientNotFoundException
lookupClient
in interface IClientRegistry
id
- Client id
ClientNotFoundException
- if we can't find clientpublic IClient newClient(Object[] params) throws ClientNotFoundException, ClientRejectedException
newClient
in interface IClientRegistry
params
- Client params
ClientNotFoundException
- if client not found
ClientRejectedException
- if client rejectedpublic String nextId()
nextId
in interface ClientRegistryMXBean
public String previousId()
previousId
in interface ClientRegistryMXBean
protected void removeClient(IClient client)
client
- Client to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |