Skip to content

Commit

Permalink
Note at-since from #6228 and #6237 (#6252)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
  • Loading branch information
daniel-beck and daniel-beck committed Feb 5, 2022
1 parent 8e6e151 commit 7915d82
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/src/main/java/hudson/lifecycle/Lifecycle.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ public boolean canRestart() {
/**
* Called when Jenkins startup is finished or when Jenkins has finished reloading its
* configuration.
*
* @since 2.333
*/
public void onReady() {
LOGGER.log(Level.INFO, "Jenkins is fully up and running");
Expand All @@ -264,6 +266,8 @@ public void onReady() {
*
* <p>Callers must also send an {@link #onReady()} notification when Jenkins has finished
* reloading its configuration.
*
* @since 2.333
*/
public void onReload(@NonNull String user, @CheckForNull String remoteAddr) {
if (remoteAddr != null) {
Expand All @@ -278,6 +282,8 @@ public void onReload(@NonNull String user, @CheckForNull String remoteAddr) {

/**
* Called when Jenkins is beginning its shutdown.
*
* @since 2.333
*/
public void onStop(@NonNull String user, @CheckForNull String remoteAddr) {
if (remoteAddr != null) {
Expand All @@ -297,6 +303,8 @@ public void onStop(@NonNull String user, @CheckForNull String remoteAddr) {
*
* @param timeout The amount by which to extend the timeout.
* @param unit The time unit of the timeout argument.
*
* @since TODO
*/
public void onExtendTimeout(long timeout, @NonNull TimeUnit unit) {}

Expand All @@ -305,6 +313,8 @@ public void onExtendTimeout(long timeout, @NonNull TimeUnit unit) {}
*
* @param status The status string. This is free-form and can be used for various purposes:
* general state feedback, completion percentages, human-readable error message, etc.
*
* @since 2.333
*/
public void onStatusUpdate(String status) {
LOGGER.log(Level.INFO, status);
Expand Down

0 comments on commit 7915d82

Please sign in to comment.