|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.core.AbstractAdmin
org.wso2.carbon.server.admin.service.ServerAdmin
public class ServerAdmin
Admin service to manage server related operations
| Field Summary |
|---|
| Fields inherited from class org.wso2.carbon.core.AbstractAdmin |
|---|
axisConfig, configurationContext |
| Constructor Summary | |
|---|---|
ServerAdmin()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.wso2.carbon.core.AbstractAdmin |
|---|
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerAdmin()
| Method Detail |
|---|
public org.wso2.carbon.server.admin.common.ServerData getServerData()
throws Exception
getServerData in interface org.wso2.carbon.server.admin.common.IServerAdminException
public String getServerDataAsString()
throws Exception
ServerAdminMBean
getServerDataAsString in interface ServerAdminMBeanException - If an error occurred while retrieving server informationpublic String getServerVersion()
ServerAdminMBean
getServerVersion in interface ServerAdminMBean
public boolean restart()
throws Exception
ServerAdminMBean
restart in interface org.wso2.carbon.server.admin.common.IServerAdminrestart in interface ServerAdminMBeanException - If an error occurs while restarting
public boolean restartGracefully()
throws Exception
ServerAdminMBean
restartGracefully in interface org.wso2.carbon.server.admin.common.IServerAdminrestartGracefully in interface ServerAdminMBeanException - If an error occurs while restarting
public boolean shutdown()
throws org.apache.axis2.AxisFault
ServerAdminMBean
shutdown in interface org.wso2.carbon.server.admin.common.IServerAdminshutdown in interface ServerAdminMBeanorg.apache.axis2.AxisFault
public boolean shutdownGracefully()
throws org.apache.axis2.AxisFault
ServerAdminMBean
shutdownGracefully in interface org.wso2.carbon.server.admin.common.IServerAdminshutdownGracefully in interface ServerAdminMBeanorg.apache.axis2.AxisFault
public void startMaintenance()
throws Exception
ServerAdminMBean
startMaintenance in interface ServerAdminMBeanException - If an error occurred while switching to maintenace mode
public void endMaintenance()
throws Exception
ServerAdminMBean
endMaintenance in interface ServerAdminMBeanException - If an error occurred while switching to normal modepublic boolean isAlive()
ServerAdminMBean
isAlive in interface ServerAdminMBean
public String getServerStatus()
throws Exception
ServerAdminMBean
getServerStatus in interface ServerAdminMBeanServerStatus.STATUS_RUNNING, ServerStatus.STATUS_SHUTTING_DOWN,ServerStatus.STATUS_RESTARTING,ServerStatus.STATUS_IN_MAINTENANCE Exception - If an error occurs while retrieving the statusServerStatus
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||