Class ConfigSyncService

java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.codelibs.elasticsearch.configsync.service.ConfigSyncService
All Implemented Interfaces:
Closeable, AutoCloseable, org.elasticsearch.common.component.LifecycleComponent, org.elasticsearch.core.Releasable

public class ConfigSyncService extends org.elasticsearch.common.component.AbstractLifecycleComponent
  • Field Details

    • FILE_UPDATER_ENABLED_SETTING

      public static final org.elasticsearch.common.settings.Setting<Boolean> FILE_UPDATER_ENABLED_SETTING
    • FLUSH_INTERVAL_SETTING

      public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.core.TimeValue> FLUSH_INTERVAL_SETTING
    • SCROLL_SIZE_SETTING

      public static final org.elasticsearch.common.settings.Setting<Integer> SCROLL_SIZE_SETTING
    • SCROLL_TIME_SETTING

      public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.core.TimeValue> SCROLL_TIME_SETTING
    • CONFIG_PATH_SETTING

      public static final org.elasticsearch.common.settings.Setting<String> CONFIG_PATH_SETTING
    • INDEX_SETTING

      public static final org.elasticsearch.common.settings.Setting<String> INDEX_SETTING
    • XPACK_SECURITY_USER_SETTING

      public static final org.elasticsearch.common.settings.Setting<String> XPACK_SECURITY_USER_SETTING
    • XPACK_SECURITY_PASSWORD_SETTING

      public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.common.settings.SecureString> XPACK_SECURITY_PASSWORD_SETTING
    • TIMESTAMP

      public static final String TIMESTAMP
      See Also:
    • CONTENT

      public static final String CONTENT
      See Also:
    • PATH

      public static final String PATH
      See Also:
  • Constructor Details

    • ConfigSyncService

      public ConfigSyncService(org.elasticsearch.client.internal.Client client, org.elasticsearch.cluster.service.ClusterService clusterService, org.elasticsearch.env.Environment environment, org.elasticsearch.threadpool.ThreadPool threadPool)
  • Method Details

    • doStart

      protected void doStart()
      Specified by:
      doStart in class org.elasticsearch.common.component.AbstractLifecycleComponent
    • doStop

      protected void doStop()
      Specified by:
      doStop in class org.elasticsearch.common.component.AbstractLifecycleComponent
    • doClose

      protected void doClose()
      Specified by:
      doClose in class org.elasticsearch.common.component.AbstractLifecycleComponent
    • store

      public void store(String path, byte[] contentArray, org.elasticsearch.action.ActionListener<org.elasticsearch.action.DocWriteResponse> listener)
    • getPaths

      public void getPaths(int from, int size, String[] fields, String sortField, String sortOrder, org.elasticsearch.action.ActionListener<List<Object>> listener)
    • resetSync

      public void resetSync(org.elasticsearch.action.ActionListener<ConfigResetSyncResponse> listener)
    • resetSync

      public void resetSync(Iterator<org.elasticsearch.cluster.node.DiscoveryNode> nodesIt, org.elasticsearch.action.ActionListener<ConfigResetSyncResponse> listener)
    • restartUpdater

      public void restartUpdater(org.elasticsearch.action.ActionListener<org.elasticsearch.action.ActionResponse> listener)
    • flush

      public void flush(org.elasticsearch.action.ActionListener<ConfigFileFlushResponse> listener)
    • flushOnNode

      public void flushOnNode(Iterator<org.elasticsearch.cluster.node.DiscoveryNode> nodesIt, org.elasticsearch.action.ActionListener<ConfigFileFlushResponse> listener)
    • getContent

      public void getContent(String path, org.elasticsearch.action.ActionListener<byte[]> listener)
    • delete

      public void delete(String path, org.elasticsearch.action.ActionListener<org.elasticsearch.action.delete.DeleteResponse> listener)
    • waitForStatus

      public void waitForStatus(String waitForStatus, String timeout, org.elasticsearch.action.ActionListener<org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse> listener)
    • newConfigFileWriter

      public ConfigSyncService.ConfigFileWriter newConfigFileWriter()
    • setFileFlushAction

      public void setFileFlushAction(TransportFileFlushAction fileFlushAction)
    • setResetSyncAction

      public void setResetSyncAction(TransportResetSyncAction resetSyncAction)