public final class ServerStatus extends Object
Modifier and Type | Field and Description |
---|---|
static String |
STATUS_IN_MAINTENANCE
Server has switched to maintenace mode
|
static String |
STATUS_RESTARTING
Server is restarting
|
static String |
STATUS_RUNNING
Server is running
|
static String |
STATUS_SHUTTING_DOWN
Server is shutting down
|
Modifier and Type | Method and Description |
---|---|
static String |
getCurrentStatus()
Get the current server status
|
static void |
setServerInMaintenance()
Set server to maintenace mode
|
static void |
setServerRestarting()
Set server to restarting-down mode
|
static void |
setServerRunning()
Set server to running mode
|
static void |
setServerShuttingDown()
Set server to shutting-down mode
|
public static final String STATUS_RUNNING
public static final String STATUS_IN_MAINTENANCE
public static final String STATUS_RESTARTING
public static final String STATUS_SHUTTING_DOWN
public static String getCurrentStatus()
org.apache.axis2.AxisFault
- If an error occurs while getting the ConfigurationContextpublic static void setServerRunning() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
- If an error occurs while getting the ConfigurationContextpublic static void setServerShuttingDown() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
- If an error occurs while getting the ConfigurationContextpublic static void setServerRestarting() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
- If an error occurs while getting the ConfigurationContextpublic static void setServerInMaintenance() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
- If an error occurs while getting the ConfigurationContextCopyright © 2016 WSO2 Inc. All rights reserved.