Interface ServerAdminMBean
- All Known Implementing Classes:
ServerAdmin
public interface ServerAdminMBean
MBean interface for exposing Server Adminstration functionalities
-
Method Summary
Modifier and TypeMethodDescriptionvoidMethod to change the state of a node from "maintenance" to "normal"Get information about this WSAS instanceGet the current status of this WSAS instanceGet the version of this WSAS instancebooleanisAlive()Method to check whether this WSAS instance is alivebooleanrestart()Forcefully restart this WSAS instancebooleanGracefully restart this WSAS instance.booleanshutdown()Forcefully shutdown this WSAS instancebooleanGracefully shutdown this WSAS instance All client connections will be served before shutting down the servervoidMethod to switch a node to maintenance mode.
-
Method Details
-
restart
Forcefully restart this WSAS instance- Returns:
- true - If successful, false otherwise
- Throws:
Exception- If an error occurs while restarting
-
shutdown
Forcefully shutdown this WSAS instance- Returns:
- true - If successful, false otherwise
- Throws:
Exception- If an error occurs while shutting down
-
restartGracefully
Gracefully restart this WSAS instance. All client connections will be served before restarting the server- Returns:
- true - If successful, false otherwise
- Throws:
Exception- If an error occurs while restarting
-
shutdownGracefully
Gracefully shutdown this WSAS instance All client connections will be served before shutting down the server- Returns:
- true - If successful, false otherwise
- Throws:
Exception- If an error occurs while shutting down
-
startMaintenance
Method to switch a node to maintenance mode. Here is the sequence of events:- Client calls this method
- The server stops accepting new requests/connections, but continues to stay alive so that old requests invalid input: '&' connections can be served
- Once all requests have been processed, the method returnsinvalid input: '<'/li
- Throws:
Exception- If an error occurred while switching to maintenace mode
-
endMaintenance
Method to change the state of a node from "maintenance" to "normal"- Throws:
Exception- If an error occurred while switching to normal mode
-
getServerDataAsString
Get information about this WSAS instance- Returns:
- The server information as a string
- Throws:
Exception- If an error occurred while retrieving server information
-
getServerVersion
String getServerVersion()Get the version of this WSAS instance- Returns:
- The version of this WSAS instance
-
isAlive
boolean isAlive()Method to check whether this WSAS instance is alive- Returns:
- True always
-
getServerStatus
Get the current status of this WSAS instance- Returns:
- The current server status.
Possible values are,
ServerStatus.STATUS_RUNNING,
ServerStatus.STATUS_SHUTTING_DOWN,
ServerStatus.STATUS_RESTARTING,
ServerStatus.STATUS_IN_MAINTENANCE - Throws:
Exception- If an error occurs while retrieving the status- See Also:
-