All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.playtika.testcontainer.elasticsearch.ElasticSearchProperties Maven / Gradle / Ivy

The newest version!
package com.playtika.testcontainer.elasticsearch;

import com.playtika.testcontainer.common.properties.CommonContainerProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@ConfigurationProperties("embedded.elasticsearch")
public class ElasticSearchProperties extends CommonContainerProperties {
    public static final String BEAN_NAME_EMBEDDED_ELASTIC_SEARCH = "embeddedElasticSearch";

    String clusterName = "test_cluster";
    String host = "localhost";
    List indices = new ArrayList<>();
    int httpPort = 9200;
    int transportPort = 9300;
    int clusterRamMb = 256;

    // https://hub.docker.com/_/elasticsearch
    @Override
    public String getDefaultDockerImage() {
        // Please don`t remove this comment.
        // renovate: datasource=docker
        return "docker.elastic.co/elasticsearch/elasticsearch:8.17.0";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy