Move info on the ClientAppManager to a new page,
expand on it, add PortMapper info (ticket #1185)
This commit is contained in:
@ -103,35 +103,6 @@ to the console.
|
||||
Clients may be "managed" or "unmanaged".
|
||||
</p>
|
||||
|
||||
<h4>Managed Clients</h4>
|
||||
<p>
|
||||
As of release 0.9.4, the router supports "managed" clients.
|
||||
Managed clients are instantiated and started by the <code>ClientAppManager</code>.
|
||||
The ClientAppManager maintains a reference to the client and receives updates on the client's state.
|
||||
Managed clients are preferred, as it is much easier to implement state tracking
|
||||
and to start and stop a client. It also is much easier to avoid static references in the client code
|
||||
which could lead to excessive memory usage after a client is stopped.
|
||||
</p>
|
||||
<p>
|
||||
Managed clients implement either the <code>net.i2p.app.ClientApp</code> or
|
||||
<code>net.i2p.router.app.RouterApp</code> interface.
|
||||
Clients implementing the ClientApp interface MUST provide the following constructor:
|
||||
<pre>
|
||||
public MyClientApp(I2PAppContext context, ClientAppManager listener, String[] args)
|
||||
</pre>
|
||||
Clients implementing the RouterApp interface MUST provide the following constructor:
|
||||
<pre>
|
||||
public MyClientApp(RouterContext context, ClientAppManager listener, String[] args)
|
||||
</pre>
|
||||
The args will be the arguments specified in the clients.config file.
|
||||
</p>
|
||||
|
||||
<h4>Unmanaged Clients</h4>
|
||||
<p>
|
||||
If the main class does not implement a managed interface,
|
||||
it will be started with main() with the arguments specified,
|
||||
and stopped with main() with the arguments specified.
|
||||
</p>
|
||||
|
||||
<h3>{% trans %}Logger{% endtrans %} (logger.config)</h3>
|
||||
<p>{% trans -%}
|
||||
|
Reference in New Issue
Block a user