public class ClientAppManagerImpl extends Object implements ClientAppManager
Modifier and Type | Field and Description |
---|---|
protected ConcurrentHashMap<String,ClientApp> |
_registered |
Constructor and Description |
---|
ClientAppManagerImpl(I2PAppContext ctx) |
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)
public void notify(ClientApp app, ClientAppState state, String message, Exception e)
notify
in interface ClientAppManager
app
- non-nullstate
- non-nullmessage
- may be nulle
- may be nullpublic boolean register(ClientApp app)
register
in interface ClientAppManager
app
- non-nullpublic void unregister(ClientApp app)
unregister
in interface ClientAppManager
app
- non-nullpublic ClientApp getRegisteredApp(String name)
getRegisteredApp
in interface ClientAppManager
name
- non-null