|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.utils.AbstractAdmin
org.wso2.wsas.admin.service.ServerAdmin
public class ServerAdmin
Admin service to manage server related operations
Constructor Summary | |
---|---|
ServerAdmin()
|
Method Summary | |
---|---|
void |
endMaintenance()
Method to change the state of a node from "maintenance" to "normal" |
ServerData |
getServerData()
|
java.lang.String |
getServerDataAsString()
Get information about this WSAS instance |
java.lang.String |
getServerStatus()
Get the current status of this WSAS instance |
java.lang.String |
getServerVersion()
Get the version of this WSAS instance |
ServerStatus |
getStatus()
|
boolean |
isAlive()
Method to check whether this WSAS instance is alive |
void |
restart()
Forcefully restart this WSAS instance |
void |
restartGracefully()
Gracefully restart this WSAS instance. |
void |
shutdown()
Forcefully shutdown this WSAS instance |
void |
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.utils.AbstractAdmin |
---|
getAxisConfig, getConfigContext |
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 ServerData getServerData() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public java.lang.String getServerDataAsString() throws java.lang.Exception
ServerAdminMBean
getServerDataAsString
in interface ServerAdminMBean
java.lang.Exception
- If an error occurred while retrieving server informationpublic java.lang.String getServerVersion()
ServerAdminMBean
getServerVersion
in interface ServerAdminMBean
public ServerStatus getStatus() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public void restart()
ServerAdminMBean
restart
in interface ServerAdminMBean
public void restartGracefully()
ServerAdminMBean
restartGracefully
in interface ServerAdminMBean
public void shutdown()
ServerAdminMBean
shutdown
in interface ServerAdminMBean
public void shutdownGracefully()
ServerAdminMBean
shutdownGracefully
in interface ServerAdminMBean
public void startMaintenance() throws java.lang.Exception
ServerAdminMBean
startMaintenance
in interface ServerAdminMBean
java.lang.Exception
- If an error occurred while switching to maintenace modepublic void endMaintenance() throws java.lang.Exception
ServerAdminMBean
endMaintenance
in interface ServerAdminMBean
java.lang.Exception
- If an error occurred while switching to normal modepublic boolean isAlive()
ServerAdminMBean
isAlive
in interface ServerAdminMBean
public java.lang.String getServerStatus() throws java.lang.Exception
ServerAdminMBean
getServerStatus
in interface ServerAdminMBean
org.wso2.wsas.ServerStatus#RUNNING
, org.wso2.wsas.ServerStatus#SHUTTING_DOWN
,org.wso2.wsas.ServerStatus#RESTARTING
,org.wso2.wsas.ServerStatus#IN_MAINTENANCE
java.lang.Exception
ServerStatus
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |