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

io.camunda.exporter.schema.SearchEngineClient Maven / Gradle / Ivy

There is a newer version: 8.7.0-alpha2
Show newest version
/*
 * 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.exporter.schema;

import io.camunda.exporter.config.ExporterConfiguration.IndexSettings;
import io.camunda.webapps.schema.descriptors.IndexDescriptor;
import io.camunda.webapps.schema.descriptors.IndexTemplateDescriptor;
import java.util.Collection;
import java.util.List;
import java.util.Map;

public interface SearchEngineClient {
  void createIndex(final IndexDescriptor indexDescriptor, final IndexSettings settings);

  void createIndexTemplate(
      final IndexTemplateDescriptor indexDescriptor,
      final IndexSettings settings,
      final boolean create);

  /**
   * @param indexDescriptor Representing index of which to update the mappings
   * @param newProperties New properties to be appended to the index
   */
  void putMapping(
      final IndexDescriptor indexDescriptor, final Collection newProperties);

  Map getMappings(
      final String namePattern, final MappingSource mappingSource);

  void putSettings(
      final List indexDescriptors, final Map toAppendSettings);

  void putIndexLifeCyclePolicy(final String policyName, final String deletionMinAge);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy