Package org.glassfish.hk2.runlevel
Interface ProgressStartedListener
Instances of classes implementing this contract can be registered with HK2
to be informed when the system starts progressing to a new level, either
upward or downward
Lengthy operations should not be performed in the listener since that may impact the performance of the RunLevelController calling the listener
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onProgressStarting
(ChangeableRunLevelFuture currentJob, int currentLevel) Called when the RunLevelController starts progressing to a new level but before any work has been done yet
-
Method Details
-
onProgressStarting
Called when the RunLevelController starts progressing to a new level but before any work has been done yetNeither
RunLevelController.proceedTo(int)
norRunLevelController.proceedToAsync(int)
may be called from this method. However,ChangeableRunLevelFuture.changeProposedLevel(int)
may be calledAny exception thrown from this method is ignored
- Parameters:
currentJob
- the job currently runningcurrentLevel
- the level that the system is currently at before any work has been done to move the system up or down
-