ClientAppManagerRouterAppManagerpublic class ClientAppManagerImpl extends Object implements ClientAppManager
| Modifier and Type | Field | Description |
|---|---|---|
protected ConcurrentHashMap<String,ClientApp> |
_registered |
| Constructor | Description |
|---|---|
ClientAppManagerImpl(I2PAppContext ctx) |
| Modifier and Type | Method | 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)
public 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-nullpublic ClientApp getRegisteredApp(String name)
getRegisteredApp in interface ClientAppManagername - non-null