Skip to content

Commit

Permalink
notify when switch from initial to serving state.
Browse files Browse the repository at this point in the history
  • Loading branch information
hanm committed Sep 4, 2020
1 parent 397f31a commit 789cb10
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -663,16 +663,15 @@ public void startdata() throws IOException, InterruptedException {

public synchronized void startup() {
startupWithServerState(State.RUNNING);
notifyAll();
}

public synchronized void startupWithoutServing() {
startupWithServerState(State.INITIAL);
notifyAll();
}

public synchronized void startServing() {
setState(State.RUNNING);
notifyAll();
}

private void startupWithServerState(State state) {
Expand All @@ -695,6 +694,8 @@ private void startupWithServerState(State state) {
requestPathMetricsCollector.start();

localSessionEnabled = sessionTracker.isLocalSessionsEnabled();

notifyAll();
}

protected void startJvmPauseMonitor() {
Expand Down

0 comments on commit 789cb10

Please sign in to comment.