Class OpenSearchConfig

  • All Implemented Interfaces:
    SearchPlatformConfig

    @ParametersAreNonnullByDefault
    @ReturnValuesAreNonnullByDefault
    public class OpenSearchConfig
    extends Object
    implements SearchPlatformConfig
    Application config for configuring OpenSearch
    Since:
    8.6
    • Constructor Detail

      • OpenSearchConfig

        public OpenSearchConfig​(com.atlassian.config.ApplicationConfiguration applicationConfig)
    • Method Detail

      • refresh

        public void refresh()
      • getHttpUrl

        public String getHttpUrl()
      • getIndexName

        public String getIndexName​(Index index)
      • getContentIndexName

        public String getContentIndexName()
      • getChangeIndexName

        public String getChangeIndexName()
      • getCustomIndexPrefix

        public String getCustomIndexPrefix()
      • getJournalIndexName

        public String getJournalIndexName()
      • getUsernamePassword

        public Optional<org.apache.commons.lang3.tuple.Pair<String,​String>> getUsernamePassword()
      • getConnectRequestTimeout

        public Long getConnectRequestTimeout()
      • getConnectTimout

        public Long getConnectTimout()
      • getSocketTimeout

        public Integer getSocketTimeout()
      • getBulkApiBatchSize

        public Integer getBulkApiBatchSize()
      • isSharedIndex

        public boolean isSharedIndex()
        Description copied from interface: SearchPlatformConfig
        Indicate whether indices are shared between nodes in cluster
        Specified by:
        isSharedIndex in interface SearchPlatformConfig
        Returns:
        true is indices are shared otherwise false