Interface AppLifecycleListener
- All Known Implementing Classes:
AppLifecycleHandler
public interface AppLifecycleListener
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationStart(String appVersion, String fullConfigInfo) voidonApplicationStatusUpdated(boolean healthOk, boolean paused, boolean serviceStatusChanged, String reason) called when application paused or resumed by configuration/pause file or BottController's ${context-root}/status?voidonApplicationStop(String appVersion) voidonConfigChangeBefore(File configFile, JExpressConfig cfg) voidonConfigChangedAfter(File configFile, JExpressConfig cfg, Throwable ex) voidonHealthInspectionFailed(boolean healthOk, boolean paused, long retryIndex, int nextInspectionIntervalSeconds)
-
Method Details
-
onApplicationStart
-
onApplicationStop
-
onApplicationStatusUpdated
void onApplicationStatusUpdated(boolean healthOk, boolean paused, boolean serviceStatusChanged, String reason) called when application paused or resumed by configuration/pause file or BottController's ${context-root}/status?pause=true|false- Parameters:
healthOk- true if health is okpaused- true if pausedserviceStatusChanged- true if service status changedreason- the reason
-
onHealthInspectionFailed
void onHealthInspectionFailed(boolean healthOk, boolean paused, long retryIndex, int nextInspectionIntervalSeconds) -
onConfigChangeBefore
-
onConfigChangedAfter
-