Interface AppLifecycleListener

All Known Implementing Classes:
AppLifecycleHandler

public interface AppLifecycleListener
Author:
Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
  • Method Details

    • onApplicationStart

      void onApplicationStart(String appVersion, String fullConfigInfo)
    • onApplicationStop

      void onApplicationStop(String appVersion)
    • 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 ok
      paused - true if paused
      serviceStatusChanged - true if service status changed
      reason - the reason
    • onHealthInspectionFailed

      void onHealthInspectionFailed(boolean healthOk, boolean paused, long retryIndex, int nextInspectionIntervalSeconds)
    • onConfigChangeBefore

      void onConfigChangeBefore(File configFile, JExpressConfig cfg)
    • onConfigChangedAfter

      void onConfigChangedAfter(File configFile, JExpressConfig cfg, Throwable ex)