public class ConfigRestartBean extends Object
| Constructor and Description |
|---|
ConfigRestartBean() |
| Modifier and Type | Method and Description |
|---|---|
static long | getRestartTimeRemaining()this is for sidebar.jsp |
static boolean | isAdvanced()Check if advanced mode is enabled. |
static boolean | isRestarting(RouterContext ctx)Check if the router is restarting. |
static boolean | isShuttingDown(RouterContext ctx)Check if the router is shutting down. |
static String | renderStatus(String urlBase,
String action,
HttpSession session,
String nextNonce,
String nonce)this also initiates the restart/shutdown based on action |
public static long getRestartTimeRemaining()
public static boolean isAdvanced()
public static boolean isRestarting(RouterContext ctx)
ctx - the router contextpublic static boolean isShuttingDown(RouterContext ctx)
ctx - the router contextpublic static String renderStatus(String urlBase, String action, HttpSession session, String nextNonce, String nonce)
urlBase - the base URLaction - the action to performsession - the HTTP sessionnextNonce - the next nonce to output in the formnonce - the nonce to be validated for actions