Class OpenSearchStartupChecker

java.lang.Object
com.atlassian.confluence.plugins.opensearch.OpenSearchStartupChecker
All Implemented Interfaces:
com.atlassian.sal.api.lifecycle.LifecycleAware

public class OpenSearchStartupChecker extends Object implements com.atlassian.sal.api.lifecycle.LifecycleAware
Checks all requirements for OpenSearch to start. Note: It is better to utilize #HealthCheck for the proper checks, could refactor this class in the future. But for now, we will keep it as is.
Since:
9.0
  • Constructor Details

  • Method Details

    • processOpenSearchException

      public static void processOpenSearchException(org.opensearch.client.opensearch._types.OpenSearchException exception)
      Process OpenSearch exception for permission checks and raise Johnson event if necessary
      Parameters:
      exception - OpenSearch related exception
    • processOpenSearchIOException

      public static void processOpenSearchIOException(IOException exception)
      Process OpenSearch IOException for permission checks and raise Johnson event if necessary
      Parameters:
      exception - OpenSearch related IOException
    • onStart

      public void onStart()
      Specified by:
      onStart in interface com.atlassian.sal.api.lifecycle.LifecycleAware
    • onStop

      public void onStop()
      Specified by:
      onStop in interface com.atlassian.sal.api.lifecycle.LifecycleAware