Package net.i2p.desktopgui.router
Class RouterManager
java.lang.Object
net.i2p.desktopgui.router.RouterManager
public class RouterManager extends Object
Handle communications with the router instance.
See ConfigServiceHandler for best practices on stopping the router.
We don't bother notifying any Wrapper instance here.
- Author:
- mathias
-
Constructor Summary
Constructors Constructor Description RouterManager()
-
Method Summary
Modifier and Type Method Description static void
cancelShutdown(RouterContext ctx)
Cancel a graceful shutdown or restartstatic long
getShutdownTimeRemaining(RouterContext ctx)
Get time until shutdownstatic String
getStatus(RouterContext ctx)
Get network status, untranslatedstatic boolean
isShutdownInProgress(RouterContext ctx)
Is a graceful shutdown or restart in progress?static void
restart(RouterContext ctx)
Restart the running I2P instance.static void
restartGracefully(RouterContext ctx)
Restart the running I2P instance.static void
shutDown(RouterContext ctx)
Stop the running I2P instance.static void
shutDownGracefully(RouterContext ctx)
Stop the running I2P instance.static void
start()
Start an I2P router instance.
-
Constructor Details
-
RouterManager
public RouterManager()
-
-
Method Details
-
start
public static void start()Start an I2P router instance. This method has limited knowledge (there is no I2P instance running to collect information from). It determines the I2P location using the I2PAppContext. -
restart
Restart the running I2P instance. -
shutDown
Stop the running I2P instance. -
restartGracefully
Restart the running I2P instance.- Since:
- 0.9.26
-
shutDownGracefully
Stop the running I2P instance.- Since:
- 0.9.26
-
cancelShutdown
Cancel a graceful shutdown or restart- Since:
- 0.9.26
-
isShutdownInProgress
Is a graceful shutdown or restart in progress?- Since:
- 0.9.26
-
getShutdownTimeRemaining
Get time until shutdown- Returns:
- -1 if no shutdown in progress.
- Since:
- 0.9.26
-
getStatus
Get network status, untranslated- Since:
- 0.9.26
-