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 |
---|---|
void |
addBubble(String svc,
String text)
Does nothing, see RouterAppManager override
|
int |
getBubbleCount(String svc)
Bubble count
|
String |
getBubbleText(String svc)
Bubble message, translated, not HTML escaped
|
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 |
setBubble(String svc,
int count,
String text)
Does nothing, see RouterAppManager override
|
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-nullpublic int getBubbleCount(String svc)
ClientAppManager
getBubbleCount
in interface ClientAppManager
public String getBubbleText(String svc)
ClientAppManager
getBubbleText
in interface ClientAppManager
public void setBubble(String svc, int count, String text)
setBubble
in interface ClientAppManager
count
- 0 to cleartext
- translated, not HTML escaped, null if nonepublic void addBubble(String svc, String text)
addBubble
in interface ClientAppManager
text
- translated, not HTML escaped, null if none