Package org.apache.synapse
Class ServerManagerView
- java.lang.Object
-
- org.apache.synapse.ServerManagerView
-
- All Implemented Interfaces:
ServerManagerViewMBean
public class ServerManagerView extends Object implements ServerManagerViewMBean
- See Also:
ServerManagerViewMBean
-
-
Constructor Summary
Constructors Constructor Description ServerManagerView(ServerManager serverManager)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
ServerManagerView
public ServerManagerView(ServerManager serverManager)
-
-
Method Detail
-
getServerState
public String getServerState()
Shows the current state of the server.- Specified by:
getServerStatein interfaceServerManagerViewMBean- Returns:
- the current state of the server
-
start
public void start() throws ExceptionStarts the Server.- Specified by:
startin interfaceServerManagerViewMBean- Throws:
Exception- if an error occurs
-
stop
public void stop() throws ExceptionStops the Server without shutting it down.- Specified by:
stopin interfaceServerManagerViewMBean- Throws:
Exception- if an error occurs
-
restart
public void restart() throws ExceptionRestart the Server.- Specified by:
restartin interfaceServerManagerViewMBean- Throws:
Exception- if an error occurs
-
shutdown
public void shutdown() throws ExceptionShutdown the Server.- Specified by:
shutdownin interfaceServerManagerViewMBean- Throws:
Exception- if an error occurs
-
stopGracefully
public void stopGracefully(long waitSeconds) throws ExceptionStops the Server gracefully. This includes putting the server in maintenance and stopping it.- Specified by:
stopGracefullyin interfaceServerManagerViewMBean- Parameters:
waitSeconds- number of seconds to wait for a graceful stop before initiating a hard stop- Throws:
Exception- if an error occurs
-
startMaintenance
public void startMaintenance() throws ExceptionPuts the server into the maintenance mode.- Specified by:
startMaintenancein interfaceServerManagerViewMBean- Throws:
Exception- if an error occurs
-
endMaintenance
public void endMaintenance() throws ExceptionFinishes the maintenance and put the server online.- Specified by:
endMaintenancein interfaceServerManagerViewMBean- Throws:
Exception- if an error occurs
-
-