Package org.opends.quicksetup.util
Class ServerController
- java.lang.Object
-
- org.opends.quicksetup.util.ServerController
-
public class ServerController extends Object
Class used to manipulate an OpenDS server.
-
-
Constructor Summary
Constructors Constructor Description ServerController(Application application)Creates a new instance that will operate onapplication's installation.ServerController(Application application, Installation installation)Creates a new instance that will operate oninstallationand useapplicationfor notifications.ServerController(Installation installation)Creates a new instance that will operate onapplication's installation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstartServer()This methods starts the server.voidstartServer(boolean suppressOutput)This methods starts the server.voidstopServer()This methods stops the server.voidstopServer(boolean suppressOutput)This methods stops the server.voidstopServer(boolean suppressOutput, boolean noPropertiesFile)This methods stops the server.
-
-
-
Constructor Detail
-
ServerController
public ServerController(Application application)
Creates a new instance that will operate onapplication's installation.- Parameters:
application- to use for notifications
-
ServerController
public ServerController(Installation installation)
Creates a new instance that will operate onapplication's installation.- Parameters:
installation- representing the server instance to control
-
ServerController
public ServerController(Application application, Installation installation)
Creates a new instance that will operate oninstallationand useapplicationfor notifications.- Parameters:
application- to use for notificationsinstallation- representing the server instance to control
-
-
Method Detail
-
stopServer
public void stopServer() throws ApplicationExceptionThis methods stops the server.- Throws:
ApplicationException- if something goes wrong.
-
stopServer
public void stopServer(boolean suppressOutput) throws ApplicationExceptionThis methods stops the server.- Parameters:
suppressOutput- boolean indicating that ouput to standard output streams from the server should be suppressed.- Throws:
ApplicationException- if something goes wrong.
-
stopServer
public void stopServer(boolean suppressOutput, boolean noPropertiesFile) throws ApplicationExceptionThis methods stops the server.- Parameters:
suppressOutput- boolean indicating that ouput to standard output streams from the server should be suppressed.noPropertiesFile- boolean indicating if the stopServer should be called without taking into account the properties file.- Throws:
ApplicationException- if something goes wrong.
-
startServer
public void startServer() throws ApplicationExceptionThis methods starts the server.- Throws:
ApplicationException- if something goes wrong.
-
startServer
public void startServer(boolean suppressOutput) throws ApplicationExceptionThis methods starts the server.- Parameters:
suppressOutput- boolean indicating that ouput to standard output streams from the server should be suppressed.- Throws:
ApplicationException- if something goes wrong.
-
-