public class ClientAppManagerImpl extends Object implements ClientAppManager
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentHashMap<String,ClientApp> | _registeredregistered name to client |
| Constructor and Description |
|---|
ClientAppManagerImpl(I2PAppContext ctx)Creates a new ClientAppManagerImpl. |
| Modifier and Type | Method and Description |
|---|---|
ClientApp | getRegisteredApp(String name)Get a registered app. |
void | notify(ClientApp app,
ClientAppState state,
String message,
Exception e)Does nothing. |
boolean | register(ClientApp app)Register with the manager under the given name,
so that other clients may find it. |
void | unregister(ClientApp app)Unregister with the manager. |
protected final ConcurrentHashMap<String,ClientApp> _registered
public ClientAppManagerImpl(I2PAppContext ctx)
ctx - the I2P app contextpublic ClientApp getRegisteredApp(String name)
getRegisteredApp in interface ClientAppManagername - non-nullpublic void notify(ClientApp app, ClientAppState state, String message, Exception e)
notify in interface ClientAppManagerapp - non-nullstate - non-nullmessage - may be nulle - may be nullpublic boolean register(ClientApp app)
register in interface ClientAppManagerapp - non-nullpublic void unregister(ClientApp app)
unregister in interface ClientAppManagerapp - non-null