forked from I2P_Developers/i2p.i2p

* Tweaks to the tray icon menu * Some starting work on a GUI general configuration menu * Bugfix allowing spaces in directory structure
23 lines
541 B
Java
23 lines
541 B
Java
package router;
|
|
|
|
import net.i2p.router.RouterContext;
|
|
import net.i2p.router.RouterVersion;
|
|
|
|
/**
|
|
*
|
|
* @author mathias
|
|
*/
|
|
public class RouterHelper {
|
|
public static RouterContext getContext() {
|
|
return (RouterContext) RouterContext.listContexts().get(0);
|
|
}
|
|
|
|
public static long getGracefulShutdownTimeRemaining() {
|
|
return RouterHelper.getContext().router().getShutdownTimeRemaining();
|
|
}
|
|
|
|
public static String getVersion() {
|
|
return (RouterVersion.VERSION + "-" + RouterVersion.BUILD);
|
|
}
|
|
}
|