Class Services
java.lang.Object
net.sf.basedb.clients.web.extensions.service.Services
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 Summary
Modifier and TypeFieldDescriptionstatic final String
private static boolean
private static final Logger
static final EventType
Events of this type are sent to the extensions registry whenever a service extension is started.static final EventType
Events of this type are sent to the extensions registry whenever a service extension is stopped. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
close()
Stop all services.private static ExtensionsInvoker<ServiceControllerAction>
getInvoker
(Extension<ServiceControllerAction> extension) static void
init()
Initialise and start the installed services.static void
Restart services as a result of an administrator has uninstalled an extension or is updating/disabling an existing on.static void
Start services as a result of an administrator has installed a new extension or updated/enabled an existing on.static void
Start services as a result of an administrator has uninstalled an extension or is updating/disabling an existing on.
-
Field Details
-
log
-
EXTENSION_POINT_ID
- See Also:
-
SERVICE_STARTED
Events of this type are sent to the extensions registry whenever a service extension is started. Extensions that need to take an action whenever this event occur should register themselves withRegistry.registerEventHandler(EventHandler, EventFilter, ClassLoader)
.- Since:
- 3.10
-
SERVICE_STOPPED
Events of this type are sent to the extensions registry whenever a service extension is stopped. Extensions that need to take an action whenever this event occur should register themselves withRegistry.registerEventHandler(EventHandler, EventFilter, ClassLoader)
.- Since:
- 3.10
-
initialised
private static boolean initialised
-
-
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
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
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
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)
-