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

com.ibm.etcd.api.MaintenanceGrpc Maven / Gradle / Ivy

There is a newer version: 0.0.24
Show newest version
package com.ibm.etcd.api;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.48.1)",
    comments = "Source: rpc.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class MaintenanceGrpc {

  private MaintenanceGrpc() {}

  public static final String SERVICE_NAME = "etcdserverpb.Maintenance";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor getAlarmMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Alarm",
      requestType = com.ibm.etcd.api.AlarmRequest.class,
      responseType = com.ibm.etcd.api.AlarmResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getAlarmMethod() {
    io.grpc.MethodDescriptor getAlarmMethod;
    if ((getAlarmMethod = MaintenanceGrpc.getAlarmMethod) == null) {
      synchronized (MaintenanceGrpc.class) {
        if ((getAlarmMethod = MaintenanceGrpc.getAlarmMethod) == null) {
          MaintenanceGrpc.getAlarmMethod = getAlarmMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Alarm"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AlarmRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AlarmResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MaintenanceMethodDescriptorSupplier("Alarm"))
              .build();
        }
      }
    }
    return getAlarmMethod;
  }

  private static volatile io.grpc.MethodDescriptor getStatusMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Status",
      requestType = com.ibm.etcd.api.StatusRequest.class,
      responseType = com.ibm.etcd.api.StatusResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getStatusMethod() {
    io.grpc.MethodDescriptor getStatusMethod;
    if ((getStatusMethod = MaintenanceGrpc.getStatusMethod) == null) {
      synchronized (MaintenanceGrpc.class) {
        if ((getStatusMethod = MaintenanceGrpc.getStatusMethod) == null) {
          MaintenanceGrpc.getStatusMethod = getStatusMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Status"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.StatusRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.StatusResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MaintenanceMethodDescriptorSupplier("Status"))
              .build();
        }
      }
    }
    return getStatusMethod;
  }

  private static volatile io.grpc.MethodDescriptor getDefragmentMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Defragment",
      requestType = com.ibm.etcd.api.DefragmentRequest.class,
      responseType = com.ibm.etcd.api.DefragmentResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getDefragmentMethod() {
    io.grpc.MethodDescriptor getDefragmentMethod;
    if ((getDefragmentMethod = MaintenanceGrpc.getDefragmentMethod) == null) {
      synchronized (MaintenanceGrpc.class) {
        if ((getDefragmentMethod = MaintenanceGrpc.getDefragmentMethod) == null) {
          MaintenanceGrpc.getDefragmentMethod = getDefragmentMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Defragment"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.DefragmentRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.DefragmentResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MaintenanceMethodDescriptorSupplier("Defragment"))
              .build();
        }
      }
    }
    return getDefragmentMethod;
  }

  private static volatile io.grpc.MethodDescriptor getHashMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Hash",
      requestType = com.ibm.etcd.api.HashRequest.class,
      responseType = com.ibm.etcd.api.HashResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getHashMethod() {
    io.grpc.MethodDescriptor getHashMethod;
    if ((getHashMethod = MaintenanceGrpc.getHashMethod) == null) {
      synchronized (MaintenanceGrpc.class) {
        if ((getHashMethod = MaintenanceGrpc.getHashMethod) == null) {
          MaintenanceGrpc.getHashMethod = getHashMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Hash"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.HashRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.HashResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MaintenanceMethodDescriptorSupplier("Hash"))
              .build();
        }
      }
    }
    return getHashMethod;
  }

  private static volatile io.grpc.MethodDescriptor getHashKVMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "HashKV",
      requestType = com.ibm.etcd.api.HashKVRequest.class,
      responseType = com.ibm.etcd.api.HashKVResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getHashKVMethod() {
    io.grpc.MethodDescriptor getHashKVMethod;
    if ((getHashKVMethod = MaintenanceGrpc.getHashKVMethod) == null) {
      synchronized (MaintenanceGrpc.class) {
        if ((getHashKVMethod = MaintenanceGrpc.getHashKVMethod) == null) {
          MaintenanceGrpc.getHashKVMethod = getHashKVMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "HashKV"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.HashKVRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.HashKVResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MaintenanceMethodDescriptorSupplier("HashKV"))
              .build();
        }
      }
    }
    return getHashKVMethod;
  }

  private static volatile io.grpc.MethodDescriptor getSnapshotMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Snapshot",
      requestType = com.ibm.etcd.api.SnapshotRequest.class,
      responseType = com.ibm.etcd.api.SnapshotResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
  public static io.grpc.MethodDescriptor getSnapshotMethod() {
    io.grpc.MethodDescriptor getSnapshotMethod;
    if ((getSnapshotMethod = MaintenanceGrpc.getSnapshotMethod) == null) {
      synchronized (MaintenanceGrpc.class) {
        if ((getSnapshotMethod = MaintenanceGrpc.getSnapshotMethod) == null) {
          MaintenanceGrpc.getSnapshotMethod = getSnapshotMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Snapshot"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.SnapshotRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.SnapshotResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MaintenanceMethodDescriptorSupplier("Snapshot"))
              .build();
        }
      }
    }
    return getSnapshotMethod;
  }

  private static volatile io.grpc.MethodDescriptor getMoveLeaderMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "MoveLeader",
      requestType = com.ibm.etcd.api.MoveLeaderRequest.class,
      responseType = com.ibm.etcd.api.MoveLeaderResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getMoveLeaderMethod() {
    io.grpc.MethodDescriptor getMoveLeaderMethod;
    if ((getMoveLeaderMethod = MaintenanceGrpc.getMoveLeaderMethod) == null) {
      synchronized (MaintenanceGrpc.class) {
        if ((getMoveLeaderMethod = MaintenanceGrpc.getMoveLeaderMethod) == null) {
          MaintenanceGrpc.getMoveLeaderMethod = getMoveLeaderMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MoveLeader"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.MoveLeaderRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.MoveLeaderResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MaintenanceMethodDescriptorSupplier("MoveLeader"))
              .build();
        }
      }
    }
    return getMoveLeaderMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static MaintenanceStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public MaintenanceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new MaintenanceStub(channel, callOptions);
        }
      };
    return MaintenanceStub.newStub(factory, channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static MaintenanceBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public MaintenanceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new MaintenanceBlockingStub(channel, callOptions);
        }
      };
    return MaintenanceBlockingStub.newStub(factory, channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static MaintenanceFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public MaintenanceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new MaintenanceFutureStub(channel, callOptions);
        }
      };
    return MaintenanceFutureStub.newStub(factory, channel);
  }

  /**
   */
  public static abstract class MaintenanceImplBase implements io.grpc.BindableService {

    /**
     * 
     * Alarm activates, deactivates, and queries alarms regarding cluster health.
     * 
*/ public void alarm(com.ibm.etcd.api.AlarmRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAlarmMethod(), responseObserver); } /** *
     * Status gets the status of the member.
     * 
*/ public void status(com.ibm.etcd.api.StatusRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStatusMethod(), responseObserver); } /** *
     * Defragment defragments a member's backend database to recover storage space.
     * 
*/ public void defragment(com.ibm.etcd.api.DefragmentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDefragmentMethod(), responseObserver); } /** *
     * Hash computes the hash of whole backend keyspace,
     * including key, lease, and other buckets in storage.
     * This is designed for testing ONLY!
     * Do not rely on this in production with ongoing transactions,
     * since Hash operation does not hold MVCC locks.
     * Use "HashKV" API instead for "key" bucket consistency checks.
     * 
*/ public void hash(com.ibm.etcd.api.HashRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getHashMethod(), responseObserver); } /** *
     * HashKV computes the hash of all MVCC keys up to a given revision.
     * It only iterates "key" bucket in backend storage.
     * 
*/ public void hashKV(com.ibm.etcd.api.HashKVRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getHashKVMethod(), responseObserver); } /** *
     * Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
     * 
*/ public void snapshot(com.ibm.etcd.api.SnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSnapshotMethod(), responseObserver); } /** *
     * MoveLeader requests current leader node to transfer its leadership to transferee.
     * 
*/ public void moveLeader(com.ibm.etcd.api.MoveLeaderRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMoveLeaderMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getAlarmMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.ibm.etcd.api.AlarmRequest, com.ibm.etcd.api.AlarmResponse>( this, METHODID_ALARM))) .addMethod( getStatusMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.ibm.etcd.api.StatusRequest, com.ibm.etcd.api.StatusResponse>( this, METHODID_STATUS))) .addMethod( getDefragmentMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.ibm.etcd.api.DefragmentRequest, com.ibm.etcd.api.DefragmentResponse>( this, METHODID_DEFRAGMENT))) .addMethod( getHashMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.ibm.etcd.api.HashRequest, com.ibm.etcd.api.HashResponse>( this, METHODID_HASH))) .addMethod( getHashKVMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.ibm.etcd.api.HashKVRequest, com.ibm.etcd.api.HashKVResponse>( this, METHODID_HASH_KV))) .addMethod( getSnapshotMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall( new MethodHandlers< com.ibm.etcd.api.SnapshotRequest, com.ibm.etcd.api.SnapshotResponse>( this, METHODID_SNAPSHOT))) .addMethod( getMoveLeaderMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.ibm.etcd.api.MoveLeaderRequest, com.ibm.etcd.api.MoveLeaderResponse>( this, METHODID_MOVE_LEADER))) .build(); } } /** */ public static final class MaintenanceStub extends io.grpc.stub.AbstractAsyncStub { private MaintenanceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MaintenanceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MaintenanceStub(channel, callOptions); } /** *
     * Alarm activates, deactivates, and queries alarms regarding cluster health.
     * 
*/ public void alarm(com.ibm.etcd.api.AlarmRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getAlarmMethod(), getCallOptions()), request, responseObserver); } /** *
     * Status gets the status of the member.
     * 
*/ public void status(com.ibm.etcd.api.StatusRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getStatusMethod(), getCallOptions()), request, responseObserver); } /** *
     * Defragment defragments a member's backend database to recover storage space.
     * 
*/ public void defragment(com.ibm.etcd.api.DefragmentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDefragmentMethod(), getCallOptions()), request, responseObserver); } /** *
     * Hash computes the hash of whole backend keyspace,
     * including key, lease, and other buckets in storage.
     * This is designed for testing ONLY!
     * Do not rely on this in production with ongoing transactions,
     * since Hash operation does not hold MVCC locks.
     * Use "HashKV" API instead for "key" bucket consistency checks.
     * 
*/ public void hash(com.ibm.etcd.api.HashRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getHashMethod(), getCallOptions()), request, responseObserver); } /** *
     * HashKV computes the hash of all MVCC keys up to a given revision.
     * It only iterates "key" bucket in backend storage.
     * 
*/ public void hashKV(com.ibm.etcd.api.HashKVRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getHashKVMethod(), getCallOptions()), request, responseObserver); } /** *
     * Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
     * 
*/ public void snapshot(com.ibm.etcd.api.SnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getSnapshotMethod(), getCallOptions()), request, responseObserver); } /** *
     * MoveLeader requests current leader node to transfer its leadership to transferee.
     * 
*/ public void moveLeader(com.ibm.etcd.api.MoveLeaderRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getMoveLeaderMethod(), getCallOptions()), request, responseObserver); } } /** */ public static final class MaintenanceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private MaintenanceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MaintenanceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MaintenanceBlockingStub(channel, callOptions); } /** *
     * Alarm activates, deactivates, and queries alarms regarding cluster health.
     * 
*/ public com.ibm.etcd.api.AlarmResponse alarm(com.ibm.etcd.api.AlarmRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAlarmMethod(), getCallOptions(), request); } /** *
     * Status gets the status of the member.
     * 
*/ public com.ibm.etcd.api.StatusResponse status(com.ibm.etcd.api.StatusRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getStatusMethod(), getCallOptions(), request); } /** *
     * Defragment defragments a member's backend database to recover storage space.
     * 
*/ public com.ibm.etcd.api.DefragmentResponse defragment(com.ibm.etcd.api.DefragmentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDefragmentMethod(), getCallOptions(), request); } /** *
     * Hash computes the hash of whole backend keyspace,
     * including key, lease, and other buckets in storage.
     * This is designed for testing ONLY!
     * Do not rely on this in production with ongoing transactions,
     * since Hash operation does not hold MVCC locks.
     * Use "HashKV" API instead for "key" bucket consistency checks.
     * 
*/ public com.ibm.etcd.api.HashResponse hash(com.ibm.etcd.api.HashRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getHashMethod(), getCallOptions(), request); } /** *
     * HashKV computes the hash of all MVCC keys up to a given revision.
     * It only iterates "key" bucket in backend storage.
     * 
*/ public com.ibm.etcd.api.HashKVResponse hashKV(com.ibm.etcd.api.HashKVRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getHashKVMethod(), getCallOptions(), request); } /** *
     * Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
     * 
*/ public java.util.Iterator snapshot( com.ibm.etcd.api.SnapshotRequest request) { return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getSnapshotMethod(), getCallOptions(), request); } /** *
     * MoveLeader requests current leader node to transfer its leadership to transferee.
     * 
*/ public com.ibm.etcd.api.MoveLeaderResponse moveLeader(com.ibm.etcd.api.MoveLeaderRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getMoveLeaderMethod(), getCallOptions(), request); } } /** */ public static final class MaintenanceFutureStub extends io.grpc.stub.AbstractFutureStub { private MaintenanceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MaintenanceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MaintenanceFutureStub(channel, callOptions); } /** *
     * Alarm activates, deactivates, and queries alarms regarding cluster health.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture alarm( com.ibm.etcd.api.AlarmRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAlarmMethod(), getCallOptions()), request); } /** *
     * Status gets the status of the member.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture status( com.ibm.etcd.api.StatusRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getStatusMethod(), getCallOptions()), request); } /** *
     * Defragment defragments a member's backend database to recover storage space.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture defragment( com.ibm.etcd.api.DefragmentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDefragmentMethod(), getCallOptions()), request); } /** *
     * Hash computes the hash of whole backend keyspace,
     * including key, lease, and other buckets in storage.
     * This is designed for testing ONLY!
     * Do not rely on this in production with ongoing transactions,
     * since Hash operation does not hold MVCC locks.
     * Use "HashKV" API instead for "key" bucket consistency checks.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture hash( com.ibm.etcd.api.HashRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getHashMethod(), getCallOptions()), request); } /** *
     * HashKV computes the hash of all MVCC keys up to a given revision.
     * It only iterates "key" bucket in backend storage.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture hashKV( com.ibm.etcd.api.HashKVRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getHashKVMethod(), getCallOptions()), request); } /** *
     * MoveLeader requests current leader node to transfer its leadership to transferee.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture moveLeader( com.ibm.etcd.api.MoveLeaderRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getMoveLeaderMethod(), getCallOptions()), request); } } private static final int METHODID_ALARM = 0; private static final int METHODID_STATUS = 1; private static final int METHODID_DEFRAGMENT = 2; private static final int METHODID_HASH = 3; private static final int METHODID_HASH_KV = 4; private static final int METHODID_SNAPSHOT = 5; private static final int METHODID_MOVE_LEADER = 6; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final MaintenanceImplBase serviceImpl; private final int methodId; MethodHandlers(MaintenanceImplBase serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_ALARM: serviceImpl.alarm((com.ibm.etcd.api.AlarmRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_STATUS: serviceImpl.status((com.ibm.etcd.api.StatusRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DEFRAGMENT: serviceImpl.defragment((com.ibm.etcd.api.DefragmentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_HASH: serviceImpl.hash((com.ibm.etcd.api.HashRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_HASH_KV: serviceImpl.hashKV((com.ibm.etcd.api.HashKVRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SNAPSHOT: serviceImpl.snapshot((com.ibm.etcd.api.SnapshotRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_MOVE_LEADER: serviceImpl.moveLeader((com.ibm.etcd.api.MoveLeaderRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } private static abstract class MaintenanceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { MaintenanceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.ibm.etcd.api.Rpc.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("Maintenance"); } } private static final class MaintenanceFileDescriptorSupplier extends MaintenanceBaseDescriptorSupplier { MaintenanceFileDescriptorSupplier() {} } private static final class MaintenanceMethodDescriptorSupplier extends MaintenanceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; MaintenanceMethodDescriptorSupplier(String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (MaintenanceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new MaintenanceFileDescriptorSupplier()) .addMethod(getAlarmMethod()) .addMethod(getStatusMethod()) .addMethod(getDefragmentMethod()) .addMethod(getHashMethod()) .addMethod(getHashKVMethod()) .addMethod(getSnapshotMethod()) .addMethod(getMoveLeaderMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy