public class ServerManagerView extends Object implements ServerManagerViewMBean
ServerManagerViewMBean
Constructor and Description |
---|
ServerManagerView(ServerManager serverManager) |
Modifier and Type | Method and Description |
---|---|
void |
endMaintenance()
Finishes the maintenance and put the server online.
|
String |
getServerState()
Shows the current state of the server.
|
void |
restart()
Restart the Server.
|
void |
shutdown()
Shutdown the Server.
|
void |
start()
Starts the Server.
|
void |
startMaintenance()
Puts the server into the maintenance mode.
|
void |
stop()
Stops the Server without shutting it down.
|
void |
stopGracefully(long waitSeconds)
Stops the Server gracefully.
|
public ServerManagerView(ServerManager serverManager)
public String getServerState()
getServerState
in interface ServerManagerViewMBean
public void start() throws Exception
start
in interface ServerManagerViewMBean
Exception
- if an error occurspublic void stop() throws Exception
stop
in interface ServerManagerViewMBean
Exception
- if an error occurspublic void restart() throws Exception
restart
in interface ServerManagerViewMBean
Exception
- if an error occurspublic void shutdown() throws Exception
shutdown
in interface ServerManagerViewMBean
Exception
- if an error occurspublic void stopGracefully(long waitSeconds) throws Exception
stopGracefully
in interface ServerManagerViewMBean
waitSeconds
- number of seconds to wait for a graceful stop before initiating
a hard stopException
- if an error occurspublic void startMaintenance() throws Exception
startMaintenance
in interface ServerManagerViewMBean
Exception
- if an error occurspublic void endMaintenance() throws Exception
endMaintenance
in interface ServerManagerViewMBean
Exception
- if an error occursCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.