public class ServerAdmin extends org.wso2.carbon.core.AbstractAdmin implements ServerAdminMBean, org.wso2.carbon.server.admin.common.IServerAdmin
| Constructor and Description |
|---|
ServerAdmin() |
| Modifier and Type | Method and Description |
|---|---|
void |
endMaintenance()
Method to change the state of a node from "maintenance" to "normal"
|
org.wso2.carbon.server.admin.common.ServerData |
getServerData() |
String |
getServerDataAsString()
Get information about this WSAS instance
|
String |
getServerStatus()
Get the current status of this WSAS instance
|
String |
getServerVersion()
Get the version of this WSAS instance
|
boolean |
isAlive()
Method to check whether this WSAS instance is alive
|
boolean |
restart()
Forcefully restart this WSAS instance
|
boolean |
restartGracefully()
Gracefully restart this WSAS instance.
|
boolean |
shutdown()
Forcefully shutdown this WSAS instance
|
boolean |
shutdownGracefully()
Gracefully shutdown this WSAS instance
All client connections will be served before shutting down the server
|
void |
startMaintenance()
Method to switch a node to maintenance mode.
|
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamppublic org.wso2.carbon.server.admin.common.ServerData getServerData()
throws Exception
getServerData in interface org.wso2.carbon.server.admin.common.IServerAdminExceptionpublic String getServerDataAsString() throws Exception
ServerAdminMBeangetServerDataAsString in interface ServerAdminMBeanException - If an error occurred while retrieving server informationpublic String getServerVersion()
ServerAdminMBeangetServerVersion in interface ServerAdminMBeanpublic boolean restart()
throws Exception
ServerAdminMBeanrestart in interface org.wso2.carbon.server.admin.common.IServerAdminrestart in interface ServerAdminMBeanException - If an error occurs while restartingpublic boolean restartGracefully()
throws Exception
ServerAdminMBeanrestartGracefully in interface org.wso2.carbon.server.admin.common.IServerAdminrestartGracefully in interface ServerAdminMBeanException - If an error occurs while restartingpublic boolean shutdown()
throws org.apache.axis2.AxisFault
ServerAdminMBeanshutdown in interface org.wso2.carbon.server.admin.common.IServerAdminshutdown in interface ServerAdminMBeanorg.apache.axis2.AxisFaultpublic boolean shutdownGracefully()
throws org.apache.axis2.AxisFault
ServerAdminMBeanshutdownGracefully in interface org.wso2.carbon.server.admin.common.IServerAdminshutdownGracefully in interface ServerAdminMBeanorg.apache.axis2.AxisFaultpublic void startMaintenance()
throws Exception
ServerAdminMBeanstartMaintenance in interface ServerAdminMBeanException - If an error occurred while switching to maintenace modepublic void endMaintenance()
throws Exception
ServerAdminMBeanendMaintenance in interface ServerAdminMBeanException - If an error occurred while switching to normal modepublic boolean isAlive()
ServerAdminMBeanisAlive in interface ServerAdminMBeanpublic String getServerStatus() throws Exception
ServerAdminMBeangetServerStatus in interface ServerAdminMBeanServerStatus.STATUS_RUNNING, ServerStatus.STATUS_SHUTTING_DOWN,ServerStatus.STATUS_RESTARTING,ServerStatus.STATUS_IN_MAINTENANCE Exception - If an error occurs while retrieving the statusServerStatusCopyright © 2018 WSO2 Inc. All rights reserved.