Package org.eblocker.server.http.service
Class ShutdownService
java.lang.Object
org.eblocker.server.http.service.ShutdownService
-
Constructor Summary
ConstructorsConstructorDescriptionShutdownService(SystemStatusService systemStatusService, ScriptRunner scriptRunner, String shutdownScript, String rebootScript, ShutdownExecutorService shutdownExecutorService) -
Method Summary
Modifier and TypeMethodDescriptionvoidreboot()voidsetDataSource(DataSource dataSource) Cannot be inject in constructore, because dataSource might not yet be available at that time!voidsetEventLogger(EventLogger eventLogger) Cannot be inject in constructore, because eventLogger might not yet be available at that time!voidshutdown()
-
Constructor Details
-
ShutdownService
@Inject public ShutdownService(SystemStatusService systemStatusService, ScriptRunner scriptRunner, String shutdownScript, String rebootScript, ShutdownExecutorService shutdownExecutorService)
-
-
Method Details
-
setEventLogger
Cannot be inject in constructore, because eventLogger might not yet be available at that time! So this service cannot rely on having a valid eventLogger at all times! -
setDataSource
Cannot be inject in constructore, because dataSource might not yet be available at that time! So this service cannot rely on having a valid dataSource at all times! -
shutdown
public void shutdown() -
reboot
public void reboot()
-