Class Services


  • public class Services
    extends Object
    Utility class for starting and stopping services.
    Version:
    2.8
    Author:
    nicklas
    Last modified
    $Date: 2019-04-05 13:42:26 +0200 (fre, 05 apr. 2019) $
    • Constructor Detail

      • Services

        public Services()
    • Method Detail

      • init

        public static void init()
        Initialise and start the installed services. Called when the web server is started up.
      • close

        public static void close()
        Stop all services.
      • start

        public static void start​(Extension<ServiceControllerAction> ext)
        Start services as a result of an administrator has installed a new extension or updated/enabled an existing on.
        Parameters:
        ext - The extension, or null to start all enabled extension
        Since:
        3.3 (was protected before that)
      • stop

        public static void stop​(Extension<ServiceControllerAction> ext)
        Start services as a result of an administrator has uninstalled an extension or is updating/disabling an existing on.
        Parameters:
        ext - The extension, or null to stop all enabled extension
        Since:
        3.3 (was protected before that)
      • restart

        public static void restart​(Extension<ServiceControllerAction> ext)
        Restart services as a result of an administrator has uninstalled an extension or is updating/disabling an existing on.
        Parameters:
        ext - The extension, or null to stop all enabled extension
        Since:
        3.3