public class RouterAppManager
extends net.i2p.app.ClientAppManagerImpl
| Modifier and Type | Class and Description |
|---|---|
class |
RouterAppManager.Shutdown |
| Constructor and Description |
|---|
RouterAppManager(RouterContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAndStart(net.i2p.app.ClientApp app,
String[] args) |
net.i2p.app.ClientApp |
getClientApp(String className,
String[] args)
Get the first known ClientApp with this class name and exact arguments.
|
void |
notify(net.i2p.app.ClientApp app,
net.i2p.app.ClientAppState state,
String message,
Exception e)
Must be called on all state transitions except
from UNINITIALIZED to INITIALIZED.
|
boolean |
register(net.i2p.app.ClientApp app)
Register with the manager under the given name,
so that other clients may find it.
|
void |
renderStatusHTML(Writer out)
debug
|
void |
shutdown() |
void |
unregister(net.i2p.app.ClientApp app)
Unregister with the manager.
|
public RouterAppManager(RouterContext ctx)
public boolean addAndStart(net.i2p.app.ClientApp app,
String[] args)
args - the args that were used to instantiate the app, non-null, may be zero-lengthIllegalArgumentException - if already addedpublic net.i2p.app.ClientApp getClientApp(String className, String[] args)
args - non-null, may be zero-lengthpublic void notify(net.i2p.app.ClientApp app,
net.i2p.app.ClientAppState state,
String message,
Exception e)
notify in interface net.i2p.app.ClientAppManagernotify in class net.i2p.app.ClientAppManagerImplapp - non-nullstate - non-nullmessage - may be nulle - may be nullpublic boolean register(net.i2p.app.ClientApp app)
register in interface net.i2p.app.ClientAppManagerregister in class net.i2p.app.ClientAppManagerImplapp - non-nullpublic void unregister(net.i2p.app.ClientApp app)
unregister in interface net.i2p.app.ClientAppManagerunregister in class net.i2p.app.ClientAppManagerImplapp - non-nullpublic void shutdown()
public void renderStatusHTML(Writer out) throws IOException
IOException