Package org.apache.synapse
Interface ServerManagerViewMBean
-
- All Known Implementing Classes:
ServerManagerView
public interface ServerManagerViewMBeanA simple MBean for managing the Synapse Server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidendMaintenance()Finishes the maintenance and put the server online.StringgetServerState()Shows the current state of the server.voidrestart()Restart the Server.voidshutdown()Shutdown the Server.voidstart()Starts the Server.voidstartMaintenance()Puts the server into the maintenance mode.voidstop()Stops the Server without shutting it down.voidstopGracefully(long waitSeconds)Stops the Server gracefully.
-
-
-
Method Detail
-
getServerState
String getServerState()
Shows the current state of the server.- Returns:
- the current state of the server
-
stop
void stop() throws Exception
Stops the Server without shutting it down.- Throws:
Exception- if an error occurs
-
shutdown
void shutdown() throws ExceptionShutdown the Server.- Throws:
Exception- if an error occurs
-
stopGracefully
void stopGracefully(long waitSeconds) throws ExceptionStops the Server gracefully. This includes putting the server in maintenance and stopping it.- Parameters:
waitSeconds- number of seconds to wait for a graceful stop before initiating a hard stop- Throws:
Exception- if an error occurs
-
startMaintenance
void startMaintenance() throws ExceptionPuts the server into the maintenance mode.- Throws:
Exception- if an error occurs
-
-