@ManagedResource(objectName="org.red5.server:type=ClientRegistry,name=default",
description="ClientRegistry")
public class ClientRegistry
extends Object
implements IClientRegistry, ClientRegistryMXBean
| Constructor and Description |
|---|
ClientRegistry() |
ClientRegistry(String name) |
| Modifier and Type | Method and Description |
|---|---|
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
|
public ClientRegistry()
public ClientRegistry(String name)
protected void addClient(IClient client)
client - Client to addpublic Client getClient(String id) throws ClientNotFoundException
getClient in interface ClientRegistryMXBeanClientNotFoundExceptionpublic ClientList<Client> getClientList()
getClientList in interface ClientRegistryMXBeanprotected boolean hasClients()
True if clients exist, otherwise Falseprotected Collection<IClient> getClients()
public boolean hasClient(String id)
hasClient in interface IClientRegistryhasClient in interface ClientRegistryMXBeanid - Client idpublic IClient lookupClient(String id) throws ClientNotFoundException
lookupClient in interface IClientRegistryid - Client idClientNotFoundException - if we can't find clientpublic IClient newClient(Object[] params) throws ClientNotFoundException, ClientRejectedException
newClient in interface IClientRegistryparams - Client paramsClientNotFoundException - if client not foundClientRejectedException - if client rejectedpublic String nextId()
nextId in interface ClientRegistryMXBeanpublic String previousId()
previousId in interface ClientRegistryMXBeanprotected void removeClient(IClient client)
client - Client to removeCopyright © 2006-2012 The Red5 Project