java.lang.Object
net.sf.basedb.clients.web.extensions.service.Services

public class Services
extends Object
Utility class for starting and stopping services.
Version:
2.8
Author:
nicklas
Last modified
$Date: 2019-04-11 09:31:26 +0200 (tors, 11 apr. 2019) $
  • Field Details

  • Constructor Details

    • Services

      public Services()
  • Method Details

    • 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
    • getInvoker

      private static ExtensionsInvoker<ServiceControllerAction> getInvoker​(Extension<ServiceControllerAction> extension)