ClientAppManager
RouterAppManager
public class ClientAppManagerImpl extends java.lang.Object implements ClientAppManager
修飾子とタイプ | フィールド | 説明 |
---|---|---|
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,ClientApp> |
_registered |
コンストラクタ | 説明 |
---|---|
ClientAppManagerImpl(I2PAppContext ctx) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
ClientApp |
getRegisteredApp(java.lang.String name) |
Get a registered app.
|
void |
notify(ClientApp app,
ClientAppState state,
java.lang.String message,
java.lang.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 java.util.concurrent.ConcurrentHashMap<java.lang.String,ClientApp> _registered
public ClientAppManagerImpl(I2PAppContext ctx)
public void notify(ClientApp app, ClientAppState state, java.lang.String message, java.lang.Exception e)
notify
インタフェース内 ClientAppManager
app
- non-nullstate
- non-nullmessage
- may be nulle
- may be nullpublic boolean register(ClientApp app)
register
インタフェース内 ClientAppManager
app
- non-nullpublic void unregister(ClientApp app)
unregister
インタフェース内 ClientAppManager
app
- non-nullpublic ClientApp getRegisteredApp(java.lang.String name)
getRegisteredApp
インタフェース内 ClientAppManager
name
- non-null