Class ServerController


  • public class ServerController
    extends Object
    Class used to manipulate an OpenDS server.
    • Constructor Detail

      • ServerController

        public ServerController​(Application application)
        Creates a new instance that will operate on application's installation.
        Parameters:
        application - to use for notifications
      • ServerController

        public ServerController​(Installation installation)
        Creates a new instance that will operate on application's installation.
        Parameters:
        installation - representing the server instance to control
      • ServerController

        public ServerController​(Application application,
                                Installation installation)
        Creates a new instance that will operate on installation and use application for notifications.
        Parameters:
        application - to use for notifications
        installation - representing the server instance to control
    • Method Detail

      • stopServer

        public void stopServer​(boolean suppressOutput)
                        throws ApplicationException
        This 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 ApplicationException
        This 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​(boolean suppressOutput)
                         throws ApplicationException
        This 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.