Interface LightySystemReadyService
-
- All Known Implementing Classes:
LightySystemReadyMonitorImpl
public interface LightySystemReadyService
This service provides API to control state ofSystemReadyMonitor
service provided byLightyController
. Methods of this service should be called by lighty application afterLightyController
has been started and after plugins are in ready state.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
onSystemBootFailed()
Called when lighty application star sequence is fails.int
onSystemBootReady()
Called when lighty application star sequence is completed.
-
-
-
Method Detail
-
onSystemBootReady
int onSystemBootReady()
Called when lighty application star sequence is completed. This sets internal state ofSystemReadyMonitor
toSystemState.ACTIVE
, all registered listeners will be notified by callingSystemReadyListener.onSystemBootReady()
method.- Returns:
- number of registered listeners notified about system ready state change.
-
onSystemBootFailed
int onSystemBootFailed()
Called when lighty application star sequence is fails. This sets internal state ofSystemReadyMonitor
toSystemState.FAILURE
, no listeners are notified.- Returns:
- number of registered listeners in
SystemReadyMonitor
.
-
-