|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.i2p.router.startup.RouterAppManager
public class RouterAppManager
Notify the router of events, and provide methods for client apps to find each other.
| Constructor Summary | |
|---|---|
RouterAppManager(RouterContext ctx)
|
|
| Method Summary | |
|---|---|
void |
addAndStart(ClientApp app)
|
ClientApp |
getRegisteredApp(String name)
Get a registered app. |
void |
notify(ClientApp app,
ClientAppState state,
String message,
Exception e)
Must be called on all state transitions except from UNINITIALIZED to INITIALIZED. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RouterAppManager(RouterContext ctx)
| Method Detail |
|---|
public void addAndStart(ClientApp app)
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-null
public void unregister(ClientApp app)
unregister in interface ClientAppManagerapp - non-nullpublic ClientApp getRegisteredApp(String name)
getRegisteredApp in interface ClientAppManagername - non-null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||