io.camunda.tasklist.property.TasklistOpenSearchProperties Maven / Gradle / Ivy
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Camunda License 1.0. You may not use this file
* except in compliance with the Camunda License 1.0.
*/
package io.camunda.tasklist.property;
import java.util.Map;
public class TasklistOpenSearchProperties extends OpenSearchProperties {
public static final String DEFAULT_INDEX_PREFIX = "tasklist";
private static final int DEFAULT_NUMBER_OF_SHARDS = 1;
private static final int DEFAULT_NUMBER_OF_REPLICAS = 0;
private static final String DEFAULT_REFRESH_INTERVAL = "1s";
private String indexPrefix = DEFAULT_INDEX_PREFIX;
private int numberOfShards = DEFAULT_NUMBER_OF_SHARDS;
private int numberOfReplicas = DEFAULT_NUMBER_OF_REPLICAS;
private Map numberOfShardsPerIndex = Map.of();
private Map numberOfReplicasPerIndex = Map.of();
private String refreshInterval = DEFAULT_REFRESH_INTERVAL;
public String getIndexPrefix() {
return indexPrefix;
}
public void setIndexPrefix(final String indexPrefix) {
this.indexPrefix = indexPrefix;
}
public void setDefaultIndexPrefix() {
setIndexPrefix(DEFAULT_INDEX_PREFIX);
}
public int getNumberOfShards() {
return numberOfShards;
}
public void setNumberOfShards(final int numberOfShards) {
this.numberOfShards = numberOfShards;
}
public int getNumberOfReplicas() {
return numberOfReplicas;
}
public void setNumberOfReplicas(final int numberOfReplicas) {
this.numberOfReplicas = numberOfReplicas;
}
public String getRefreshInterval() {
return refreshInterval;
}
public void setRefreshInterval(final String refreshInterval) {
this.refreshInterval = refreshInterval;
}
public Map getNumberOfShardsPerIndex() {
return numberOfShardsPerIndex;
}
public void setNumberOfShardsPerIndex(final Map numberOfShardsPerIndex) {
this.numberOfShardsPerIndex = numberOfShardsPerIndex;
}
public Map getNumberOfReplicasPerIndex() {
return numberOfReplicasPerIndex;
}
public void setNumberOfReplicasPerIndex(final Map numberOfReplicasPerIndex) {
this.numberOfReplicasPerIndex = numberOfReplicasPerIndex;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy