Package net.i2p.app
Class ClientAppManagerImpl
java.lang.Object
net.i2p.app.ClientAppManagerImpl
- All Implemented Interfaces:
ClientAppManager
- Direct Known Subclasses:
RouterAppManager
A simple ClientAppManager that supports register/unregister only,
so that client apps may find each other in AppContext.
See RouterAppManager for the real thing in RouterContext.
- Since:
- 0.9.30
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Does nothing, see RouterAppManager overrideint
getBubbleCount
(String svc) Bubble countgetBubbleText
(String svc) Bubble message, translated, not HTML escapedgetRegisteredApp
(String name) Get a registered app.void
notify
(ClientApp app, ClientAppState state, String message, Exception e) Does nothing.boolean
Register with the manager under the given name, so that other clients may find it.void
Does nothing, see RouterAppManager overridevoid
unregister
(ClientApp app) Unregister with the manager.
-
Field Details
-
_registered
-
-
Constructor Details
-
ClientAppManagerImpl
-
-
Method Details
-
notify
Does nothing.- Specified by:
notify
in interfaceClientAppManager
- Parameters:
app
- non-nullstate
- non-nullmessage
- may be nulle
- may be null
-
register
Register with the manager under the given name, so that other clients may find it. Only required for apps used by other apps.- Specified by:
register
in interfaceClientAppManager
- Parameters:
app
- non-null- Returns:
- true if successful, false if duplicate name
-
unregister
Unregister with the manager. Name must be the same as that from register(). Only required for apps used by other apps.- Specified by:
unregister
in interfaceClientAppManager
- Parameters:
app
- non-null
-
getRegisteredApp
Get a registered app. Only used for apps finding other apps. Do not hold a static reference. If you only need to find a port, use the PortMapper instead.- Specified by:
getRegisteredApp
in interfaceClientAppManager
- Parameters:
name
- non-null- Returns:
- client app or null
-
getBubbleCount
Description copied from interface:ClientAppManager
Bubble count- Specified by:
getBubbleCount
in interfaceClientAppManager
- Returns:
- 0 always, see RouterAppManager override
- Since:
- 0.9.66
-
getBubbleText
Description copied from interface:ClientAppManager
Bubble message, translated, not HTML escaped- Specified by:
getBubbleText
in interfaceClientAppManager
- Returns:
- null always, see RouterAppManager override
- Since:
- 0.9.66
-
setBubble
Does nothing, see RouterAppManager override- Specified by:
setBubble
in interfaceClientAppManager
- Parameters:
count
- 0 to cleartext
- translated, not HTML escaped, null if none- Since:
- 0.9.66
-
addBubble
Does nothing, see RouterAppManager override- Specified by:
addBubble
in interfaceClientAppManager
- Parameters:
text
- translated, not HTML escaped, null if none- Since:
- 0.9.66
-