|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.server.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 add
public Client getClient(String id)
throws ClientNotFoundException
getClient in interface ClientRegistryMBeanClientNotFoundExceptionpublic ClientList<Client> getClientList()
getClientList in interface ClientRegistryMBeanprotected boolean hasClients()
True if clients exist, otherwise Falseprotected Collection<IClient> getClients()
public boolean hasClient(String id)
hasClient in interface IClientRegistryhasClient in interface ClientRegistryMBeanid - Client id
public IClient lookupClient(String id)
throws ClientNotFoundException
lookupClient in interface IClientRegistryid - Client id
ClientNotFoundException - if we can't find client
public IClient newClient(Object[] params)
throws ClientNotFoundException,
ClientRejectedException
newClient in interface IClientRegistryparams - Client params
ClientNotFoundException - if client not found
ClientRejectedException - if client rejectedpublic String nextId()
nextId in interface ClientRegistryMBeanpublic String previousId()
previousId in interface ClientRegistryMBeanprotected void removeClient(IClient client)
client - Client to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||