Class OpenSearchConfig
- java.lang.Object
-
- com.atlassian.confluence.plugins.opensearch.OpenSearchConfig
-
- All Implemented Interfaces:
SearchPlatformConfig
@ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public class OpenSearchConfig extends Object implements SearchPlatformConfig
Application config for configuring OpenSearch- Since:
- 8.6
-
-
Constructor Summary
Constructors Constructor Description OpenSearchConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>getAWSRegion()IntegergetBulkApiBatchSize()StringgetChangeIndexName()LonggetConnectRequestTimeout()LonggetConnectTimout()StringgetContentIndexName()StringgetCustomIndexPrefix()StringgetHttpUrl()StringgetIndexName(Index index)StringgetJournalIndexName()IntegergetSocketTimeout()Optional<org.apache.commons.lang3.tuple.Pair<String,String>>getUsernamePassword()booleanisSharedIndex()Indicate whether indices are shared between nodes in clustervoidrefresh()
-
-
-
Method Detail
-
refresh
public void refresh()
-
getHttpUrl
public String getHttpUrl()
-
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:SearchPlatformConfigIndicate whether indices are shared between nodes in cluster- Specified by:
isSharedIndexin interfaceSearchPlatformConfig- Returns:
- true is indices are shared otherwise false
-
-