Skip to content

Commit

Permalink
IndexDAO setup is called on PostConstruct
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindanr committed Dec 5, 2020
1 parent 1021e2e commit d52b528
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import java.io.IOException;
import java.text.SimpleDateFormat;
Expand Down Expand Up @@ -206,6 +207,7 @@ private void shutdownExecutorService(ExecutorService execService) {
}

@Override
@PostConstruct
public void setup() throws Exception {
waitForHealthyCluster();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import java.io.IOException;
import java.io.InputStream;
Expand Down Expand Up @@ -228,6 +229,7 @@ private void shutdownExecutorService(ExecutorService execService) {
}

@Override
@PostConstruct
public void setup() throws Exception {
waitForHealthyCluster();

Expand Down

0 comments on commit d52b528

Please sign in to comment.