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

io.reactiverse.elasticsearch.client.reactivex.IndexLifecycleClient Maven / Gradle / Ivy

There is a newer version: 0.9.0-ec7.10.1
Show newest version
/*
 * Copyright 2014 Red Hat, Inc.
 *
 * Red Hat licenses this file to you under the Apache License, version 2.0
 * (the "License"); you may not use this file except in compliance with the
 * License.  You may obtain a copy of the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */

package io.reactiverse.elasticsearch.client.reactivex;

import java.util.Map;
import io.reactivex.Observable;
import io.reactivex.Flowable;
import io.reactivex.Single;
import io.reactivex.Completable;
import io.reactivex.Maybe;
import org.elasticsearch.client.indexlifecycle.ExplainLifecycleRequest;
import org.elasticsearch.client.indexlifecycle.RetryLifecyclePolicyRequest;
import org.elasticsearch.client.indexlifecycle.GetLifecyclePolicyRequest;
import org.elasticsearch.client.indexlifecycle.GetLifecyclePolicyResponse;
import org.elasticsearch.client.indexlifecycle.ExplainLifecycleResponse;
import org.elasticsearch.client.slm.GetSnapshotLifecycleStatsRequest;
import org.elasticsearch.client.slm.GetSnapshotLifecyclePolicyRequest;
import org.elasticsearch.client.slm.DeleteSnapshotLifecyclePolicyRequest;
import org.elasticsearch.client.slm.StartSLMRequest;
import org.elasticsearch.client.indexlifecycle.RemoveIndexLifecyclePolicyResponse;
import org.elasticsearch.client.slm.GetSnapshotLifecyclePolicyResponse;
import org.elasticsearch.client.indexlifecycle.DeleteLifecyclePolicyRequest;
import org.elasticsearch.client.indexlifecycle.LifecycleManagementStatusResponse;
import org.elasticsearch.client.slm.ExecuteSnapshotLifecyclePolicyResponse;
import org.elasticsearch.client.indexlifecycle.LifecycleManagementStatusRequest;
import org.elasticsearch.client.slm.ExecuteSnapshotLifecyclePolicyRequest;
import org.elasticsearch.client.RequestOptions;
import io.vertx.core.AsyncResult;
import org.elasticsearch.client.slm.PutSnapshotLifecyclePolicyRequest;
import org.elasticsearch.client.slm.StopSLMRequest;
import org.elasticsearch.client.indexlifecycle.StartILMRequest;
import org.elasticsearch.client.slm.SnapshotLifecycleManagementStatusRequest;
import org.elasticsearch.client.indexlifecycle.PutLifecyclePolicyRequest;
import org.elasticsearch.client.slm.ExecuteSnapshotLifecycleRetentionRequest;
import org.elasticsearch.client.indexlifecycle.RemoveIndexLifecyclePolicyRequest;
import org.elasticsearch.client.indexlifecycle.StopILMRequest;
import org.elasticsearch.client.slm.GetSnapshotLifecycleStatsResponse;
import org.elasticsearch.client.core.AcknowledgedResponse;
import io.vertx.core.Handler;


@io.vertx.lang.rx.RxGen(io.reactiverse.elasticsearch.client.IndexLifecycleClient.class)
public class IndexLifecycleClient {

  @Override
  public String toString() {
    return delegate.toString();
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    IndexLifecycleClient that = (IndexLifecycleClient) o;
    return delegate.equals(that.delegate);
  }
  
  @Override
  public int hashCode() {
    return delegate.hashCode();
  }

  public static final io.vertx.lang.rx.TypeArg __TYPE_ARG = new io.vertx.lang.rx.TypeArg<>(    obj -> new IndexLifecycleClient((io.reactiverse.elasticsearch.client.IndexLifecycleClient) obj),
    IndexLifecycleClient::getDelegate
  );

  private final io.reactiverse.elasticsearch.client.IndexLifecycleClient delegate;
  
  public IndexLifecycleClient(io.reactiverse.elasticsearch.client.IndexLifecycleClient delegate) {
    this.delegate = delegate;
  }

  public io.reactiverse.elasticsearch.client.IndexLifecycleClient getDelegate() {
    return delegate;
  }

  public void getLifecyclePolicyAsync(GetLifecyclePolicyRequest request, RequestOptions options, Handler> handler) { 
    delegate.getLifecyclePolicyAsync(request, options, handler);
  }

  public Single rxGetLifecyclePolicyAsync(GetLifecyclePolicyRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      getLifecyclePolicyAsync(request, options, handler);
    });
  }

  public void putLifecyclePolicyAsync(PutLifecyclePolicyRequest request, RequestOptions options, Handler> handler) { 
    delegate.putLifecyclePolicyAsync(request, options, handler);
  }

  public Single rxPutLifecyclePolicyAsync(PutLifecyclePolicyRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      putLifecyclePolicyAsync(request, options, handler);
    });
  }

  public void deleteLifecyclePolicyAsync(DeleteLifecyclePolicyRequest request, RequestOptions options, Handler> handler) { 
    delegate.deleteLifecyclePolicyAsync(request, options, handler);
  }

  public Single rxDeleteLifecyclePolicyAsync(DeleteLifecyclePolicyRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      deleteLifecyclePolicyAsync(request, options, handler);
    });
  }

  public void removeIndexLifecyclePolicyAsync(RemoveIndexLifecyclePolicyRequest request, RequestOptions options, Handler> handler) { 
    delegate.removeIndexLifecyclePolicyAsync(request, options, handler);
  }

  public Single rxRemoveIndexLifecyclePolicyAsync(RemoveIndexLifecyclePolicyRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      removeIndexLifecyclePolicyAsync(request, options, handler);
    });
  }

  public void startILMAsync(StartILMRequest request, RequestOptions options, Handler> handler) { 
    delegate.startILMAsync(request, options, handler);
  }

  public Single rxStartILMAsync(StartILMRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      startILMAsync(request, options, handler);
    });
  }

  public void stopILMAsync(StopILMRequest request, RequestOptions options, Handler> handler) { 
    delegate.stopILMAsync(request, options, handler);
  }

  public Single rxStopILMAsync(StopILMRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      stopILMAsync(request, options, handler);
    });
  }

  public void lifecycleManagementStatusAsync(LifecycleManagementStatusRequest request, RequestOptions options, Handler> handler) { 
    delegate.lifecycleManagementStatusAsync(request, options, handler);
  }

  public Single rxLifecycleManagementStatusAsync(LifecycleManagementStatusRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      lifecycleManagementStatusAsync(request, options, handler);
    });
  }

  public void explainLifecycleAsync(ExplainLifecycleRequest request, RequestOptions options, Handler> handler) { 
    delegate.explainLifecycleAsync(request, options, handler);
  }

  public Single rxExplainLifecycleAsync(ExplainLifecycleRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      explainLifecycleAsync(request, options, handler);
    });
  }

  public void retryLifecyclePolicyAsync(RetryLifecyclePolicyRequest request, RequestOptions options, Handler> handler) { 
    delegate.retryLifecyclePolicyAsync(request, options, handler);
  }

  public Single rxRetryLifecyclePolicyAsync(RetryLifecyclePolicyRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      retryLifecyclePolicyAsync(request, options, handler);
    });
  }

  public void getSnapshotLifecyclePolicyAsync(GetSnapshotLifecyclePolicyRequest request, RequestOptions options, Handler> handler) { 
    delegate.getSnapshotLifecyclePolicyAsync(request, options, handler);
  }

  public Single rxGetSnapshotLifecyclePolicyAsync(GetSnapshotLifecyclePolicyRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      getSnapshotLifecyclePolicyAsync(request, options, handler);
    });
  }

  public void putSnapshotLifecyclePolicyAsync(PutSnapshotLifecyclePolicyRequest request, RequestOptions options, Handler> handler) { 
    delegate.putSnapshotLifecyclePolicyAsync(request, options, handler);
  }

  public Single rxPutSnapshotLifecyclePolicyAsync(PutSnapshotLifecyclePolicyRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      putSnapshotLifecyclePolicyAsync(request, options, handler);
    });
  }

  public void deleteSnapshotLifecyclePolicyAsync(DeleteSnapshotLifecyclePolicyRequest request, RequestOptions options, Handler> handler) { 
    delegate.deleteSnapshotLifecyclePolicyAsync(request, options, handler);
  }

  public Single rxDeleteSnapshotLifecyclePolicyAsync(DeleteSnapshotLifecyclePolicyRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      deleteSnapshotLifecyclePolicyAsync(request, options, handler);
    });
  }

  public void executeSnapshotLifecyclePolicyAsync(ExecuteSnapshotLifecyclePolicyRequest request, RequestOptions options, Handler> handler) { 
    delegate.executeSnapshotLifecyclePolicyAsync(request, options, handler);
  }

  public Single rxExecuteSnapshotLifecyclePolicyAsync(ExecuteSnapshotLifecyclePolicyRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      executeSnapshotLifecyclePolicyAsync(request, options, handler);
    });
  }

  public void executeSnapshotLifecycleRetentionAsync(ExecuteSnapshotLifecycleRetentionRequest request, RequestOptions options, Handler> handler) { 
    delegate.executeSnapshotLifecycleRetentionAsync(request, options, handler);
  }

  public Single rxExecuteSnapshotLifecycleRetentionAsync(ExecuteSnapshotLifecycleRetentionRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      executeSnapshotLifecycleRetentionAsync(request, options, handler);
    });
  }

  public void getSnapshotLifecycleStatsAsync(GetSnapshotLifecycleStatsRequest request, RequestOptions options, Handler> handler) { 
    delegate.getSnapshotLifecycleStatsAsync(request, options, handler);
  }

  public Single rxGetSnapshotLifecycleStatsAsync(GetSnapshotLifecycleStatsRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      getSnapshotLifecycleStatsAsync(request, options, handler);
    });
  }

  public void startSLMAsync(StartSLMRequest request, RequestOptions options, Handler> handler) { 
    delegate.startSLMAsync(request, options, handler);
  }

  public Single rxStartSLMAsync(StartSLMRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      startSLMAsync(request, options, handler);
    });
  }

  public void stopSLMAsync(StopSLMRequest request, RequestOptions options, Handler> handler) { 
    delegate.stopSLMAsync(request, options, handler);
  }

  public Single rxStopSLMAsync(StopSLMRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      stopSLMAsync(request, options, handler);
    });
  }

  public void getSLMStatusAsync(SnapshotLifecycleManagementStatusRequest request, RequestOptions options, Handler> handler) { 
    delegate.getSLMStatusAsync(request, options, handler);
  }

  public Single rxGetSLMStatusAsync(SnapshotLifecycleManagementStatusRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      getSLMStatusAsync(request, options, handler);
    });
  }


  public static  IndexLifecycleClient newInstance(io.reactiverse.elasticsearch.client.IndexLifecycleClient arg) {
    return arg != null ? new IndexLifecycleClient(arg) : null;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy