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

cz.proto.coordinator.CoordinatorMasterGrpc Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package cz.proto.coordinator;

import static io.grpc.MethodDescriptor.generateFullMethodName;

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

  private CoordinatorMasterGrpc() {}

  public static final String SERVICE_NAME = "cz.proto.coordinator.CoordinatorMaster";

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

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetJobAddress",
      requestType = cz.proto.coordinator.CoordinatorServiceOuterClass.GetJobAddressRequest.class,
      responseType = cz.proto.coordinator.CoordinatorServiceOuterClass.GetJobAddressResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetJobAddressMethod() {
    io.grpc.MethodDescriptor getGetJobAddressMethod;
    if ((getGetJobAddressMethod = CoordinatorMasterGrpc.getGetJobAddressMethod) == null) {
      synchronized (CoordinatorMasterGrpc.class) {
        if ((getGetJobAddressMethod = CoordinatorMasterGrpc.getGetJobAddressMethod) == null) {
          CoordinatorMasterGrpc.getGetJobAddressMethod = getGetJobAddressMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJobAddress"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.GetJobAddressRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.GetJobAddressResponse.getDefaultInstance()))
              .setSchemaDescriptor(new CoordinatorMasterMethodDescriptorSupplier("GetJobAddress"))
              .build();
        }
      }
    }
    return getGetJobAddressMethod;
  }

  private static volatile io.grpc.MethodDescriptor getReportHeartbeatMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "ReportHeartbeat",
      requestType = cz.proto.coordinator.CoordinatorServiceOuterClass.HeartBeat.class,
      responseType = cz.proto.coordinator.CoordinatorServiceOuterClass.HeartBeatResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getReportHeartbeatMethod() {
    io.grpc.MethodDescriptor getReportHeartbeatMethod;
    if ((getReportHeartbeatMethod = CoordinatorMasterGrpc.getReportHeartbeatMethod) == null) {
      synchronized (CoordinatorMasterGrpc.class) {
        if ((getReportHeartbeatMethod = CoordinatorMasterGrpc.getReportHeartbeatMethod) == null) {
          CoordinatorMasterGrpc.getReportHeartbeatMethod = getReportHeartbeatMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportHeartbeat"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.HeartBeat.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.HeartBeatResponse.getDefaultInstance()))
              .setSchemaDescriptor(new CoordinatorMasterMethodDescriptorSupplier("ReportHeartbeat"))
              .build();
        }
      }
    }
    return getReportHeartbeatMethod;
  }

  private static volatile io.grpc.MethodDescriptor getListWorkerMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "ListWorker",
      requestType = cz.proto.coordinator.CoordinatorServiceOuterClass.ListWorkerRequest.class,
      responseType = cz.proto.coordinator.CoordinatorServiceOuterClass.ListWorkerResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListWorkerMethod() {
    io.grpc.MethodDescriptor getListWorkerMethod;
    if ((getListWorkerMethod = CoordinatorMasterGrpc.getListWorkerMethod) == null) {
      synchronized (CoordinatorMasterGrpc.class) {
        if ((getListWorkerMethod = CoordinatorMasterGrpc.getListWorkerMethod) == null) {
          CoordinatorMasterGrpc.getListWorkerMethod = getListWorkerMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorker"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.ListWorkerRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.ListWorkerResponse.getDefaultInstance()))
              .setSchemaDescriptor(new CoordinatorMasterMethodDescriptorSupplier("ListWorker"))
              .build();
        }
      }
    }
    return getListWorkerMethod;
  }

  private static volatile io.grpc.MethodDescriptor getListJobsMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "ListJobs",
      requestType = cz.proto.coordinator.CoordinatorServiceOuterClass.ListMasterJobsRequest.class,
      responseType = cz.proto.coordinator.CoordinatorServiceOuterClass.ListJobsResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListJobsMethod() {
    io.grpc.MethodDescriptor getListJobsMethod;
    if ((getListJobsMethod = CoordinatorMasterGrpc.getListJobsMethod) == null) {
      synchronized (CoordinatorMasterGrpc.class) {
        if ((getListJobsMethod = CoordinatorMasterGrpc.getListJobsMethod) == null) {
          CoordinatorMasterGrpc.getListJobsMethod = getListJobsMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListJobs"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.ListMasterJobsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.ListJobsResponse.getDefaultInstance()))
              .setSchemaDescriptor(new CoordinatorMasterMethodDescriptorSupplier("ListJobs"))
              .build();
        }
      }
    }
    return getListJobsMethod;
  }

  private static volatile io.grpc.MethodDescriptor getDeleteJobMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "DeleteJob",
      requestType = cz.proto.coordinator.CoordinatorServiceOuterClass.JobID.class,
      responseType = cz.proto.ServiceCommon.ResponseStatus.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getDeleteJobMethod() {
    io.grpc.MethodDescriptor getDeleteJobMethod;
    if ((getDeleteJobMethod = CoordinatorMasterGrpc.getDeleteJobMethod) == null) {
      synchronized (CoordinatorMasterGrpc.class) {
        if ((getDeleteJobMethod = CoordinatorMasterGrpc.getDeleteJobMethod) == null) {
          CoordinatorMasterGrpc.getDeleteJobMethod = getDeleteJobMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteJob"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.JobID.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.ServiceCommon.ResponseStatus.getDefaultInstance()))
              .setSchemaDescriptor(new CoordinatorMasterMethodDescriptorSupplier("DeleteJob"))
              .build();
        }
      }
    }
    return getDeleteJobMethod;
  }

  private static volatile io.grpc.MethodDescriptor getHotUpgradeMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "HotUpgrade",
      requestType = cz.proto.coordinator.CoordinatorServiceOuterClass.HotUpgradeRequest.class,
      responseType = cz.proto.coordinator.CoordinatorServiceOuterClass.HotUpgradeResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getHotUpgradeMethod() {
    io.grpc.MethodDescriptor getHotUpgradeMethod;
    if ((getHotUpgradeMethod = CoordinatorMasterGrpc.getHotUpgradeMethod) == null) {
      synchronized (CoordinatorMasterGrpc.class) {
        if ((getHotUpgradeMethod = CoordinatorMasterGrpc.getHotUpgradeMethod) == null) {
          CoordinatorMasterGrpc.getHotUpgradeMethod = getHotUpgradeMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "HotUpgrade"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.HotUpgradeRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.HotUpgradeResponse.getDefaultInstance()))
              .setSchemaDescriptor(new CoordinatorMasterMethodDescriptorSupplier("HotUpgrade"))
              .build();
        }
      }
    }
    return getHotUpgradeMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetHotUpgradeStateMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetHotUpgradeState",
      requestType = cz.proto.coordinator.CoordinatorServiceOuterClass.GetHotUpgradeStateRequest.class,
      responseType = cz.proto.coordinator.CoordinatorServiceOuterClass.GetHotUpgradeStateResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetHotUpgradeStateMethod() {
    io.grpc.MethodDescriptor getGetHotUpgradeStateMethod;
    if ((getGetHotUpgradeStateMethod = CoordinatorMasterGrpc.getGetHotUpgradeStateMethod) == null) {
      synchronized (CoordinatorMasterGrpc.class) {
        if ((getGetHotUpgradeStateMethod = CoordinatorMasterGrpc.getGetHotUpgradeStateMethod) == null) {
          CoordinatorMasterGrpc.getGetHotUpgradeStateMethod = getGetHotUpgradeStateMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHotUpgradeState"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.GetHotUpgradeStateRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.GetHotUpgradeStateResponse.getDefaultInstance()))
              .setSchemaDescriptor(new CoordinatorMasterMethodDescriptorSupplier("GetHotUpgradeState"))
              .build();
        }
      }
    }
    return getGetHotUpgradeStateMethod;
  }

  private static volatile io.grpc.MethodDescriptor getSetServiceRouteMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "SetServiceRoute",
      requestType = cz.proto.coordinator.CoordinatorServiceOuterClass.SetServiceRouteRequest.class,
      responseType = cz.proto.coordinator.CoordinatorServiceOuterClass.SetServiceRouteResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getSetServiceRouteMethod() {
    io.grpc.MethodDescriptor getSetServiceRouteMethod;
    if ((getSetServiceRouteMethod = CoordinatorMasterGrpc.getSetServiceRouteMethod) == null) {
      synchronized (CoordinatorMasterGrpc.class) {
        if ((getSetServiceRouteMethod = CoordinatorMasterGrpc.getSetServiceRouteMethod) == null) {
          CoordinatorMasterGrpc.getSetServiceRouteMethod = getSetServiceRouteMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetServiceRoute"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.SetServiceRouteRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.SetServiceRouteResponse.getDefaultInstance()))
              .setSchemaDescriptor(new CoordinatorMasterMethodDescriptorSupplier("SetServiceRoute"))
              .build();
        }
      }
    }
    return getSetServiceRouteMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetServiceRouteMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetServiceRoute",
      requestType = cz.proto.coordinator.CoordinatorServiceOuterClass.GetServiceRouteRequest.class,
      responseType = cz.proto.coordinator.CoordinatorServiceOuterClass.GetServiceRouteResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetServiceRouteMethod() {
    io.grpc.MethodDescriptor getGetServiceRouteMethod;
    if ((getGetServiceRouteMethod = CoordinatorMasterGrpc.getGetServiceRouteMethod) == null) {
      synchronized (CoordinatorMasterGrpc.class) {
        if ((getGetServiceRouteMethod = CoordinatorMasterGrpc.getGetServiceRouteMethod) == null) {
          CoordinatorMasterGrpc.getGetServiceRouteMethod = getGetServiceRouteMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServiceRoute"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.GetServiceRouteRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.coordinator.CoordinatorServiceOuterClass.GetServiceRouteResponse.getDefaultInstance()))
              .setSchemaDescriptor(new CoordinatorMasterMethodDescriptorSupplier("GetServiceRoute"))
              .build();
        }
      }
    }
    return getGetServiceRouteMethod;
  }

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

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

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

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

    /**
     * 
     **
     * Get job coordinator address cache from master(may not equal with meta)
     * 
*/ public void getJobAddress(cz.proto.coordinator.CoordinatorServiceOuterClass.GetJobAddressRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobAddressMethod(), responseObserver); } /** *
     **
     * Coordinator HB
     * 
*/ public void reportHeartbeat(cz.proto.coordinator.CoordinatorServiceOuterClass.HeartBeat request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReportHeartbeatMethod(), responseObserver); } /** *
     **
     * List active coordinator
     * 
*/ public void listWorker(cz.proto.coordinator.CoordinatorServiceOuterClass.ListWorkerRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkerMethod(), responseObserver); } /** *
     **
     * Internal interface: List current jobs, ignore most parameters
     * 
*/ public void listJobs(cz.proto.coordinator.CoordinatorServiceOuterClass.ListMasterJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver); } /** *
     **
     * Internal interface: force delete job when all coordinator crash
     * 
*/ public void deleteJob(cz.proto.coordinator.CoordinatorServiceOuterClass.JobID request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver); } /** *
     **
     * Start upgrade
     * 
*/ public void hotUpgrade(cz.proto.coordinator.CoordinatorServiceOuterClass.HotUpgradeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getHotUpgradeMethod(), responseObserver); } /** *
     **
     * Get upgrade state
     * 
*/ public void getHotUpgradeState(cz.proto.coordinator.CoordinatorServiceOuterClass.GetHotUpgradeStateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHotUpgradeStateMethod(), responseObserver); } /** *
     **
     * Set service route
     * 
*/ public void setServiceRoute(cz.proto.coordinator.CoordinatorServiceOuterClass.SetServiceRouteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetServiceRouteMethod(), responseObserver); } /** *
     **
     * Get service route
     * 
*/ public void getServiceRoute(cz.proto.coordinator.CoordinatorServiceOuterClass.GetServiceRouteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceRouteMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getGetJobAddressMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cz.proto.coordinator.CoordinatorServiceOuterClass.GetJobAddressRequest, cz.proto.coordinator.CoordinatorServiceOuterClass.GetJobAddressResponse>( this, METHODID_GET_JOB_ADDRESS))) .addMethod( getReportHeartbeatMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cz.proto.coordinator.CoordinatorServiceOuterClass.HeartBeat, cz.proto.coordinator.CoordinatorServiceOuterClass.HeartBeatResponse>( this, METHODID_REPORT_HEARTBEAT))) .addMethod( getListWorkerMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cz.proto.coordinator.CoordinatorServiceOuterClass.ListWorkerRequest, cz.proto.coordinator.CoordinatorServiceOuterClass.ListWorkerResponse>( this, METHODID_LIST_WORKER))) .addMethod( getListJobsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cz.proto.coordinator.CoordinatorServiceOuterClass.ListMasterJobsRequest, cz.proto.coordinator.CoordinatorServiceOuterClass.ListJobsResponse>( this, METHODID_LIST_JOBS))) .addMethod( getDeleteJobMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cz.proto.coordinator.CoordinatorServiceOuterClass.JobID, cz.proto.ServiceCommon.ResponseStatus>( this, METHODID_DELETE_JOB))) .addMethod( getHotUpgradeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cz.proto.coordinator.CoordinatorServiceOuterClass.HotUpgradeRequest, cz.proto.coordinator.CoordinatorServiceOuterClass.HotUpgradeResponse>( this, METHODID_HOT_UPGRADE))) .addMethod( getGetHotUpgradeStateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cz.proto.coordinator.CoordinatorServiceOuterClass.GetHotUpgradeStateRequest, cz.proto.coordinator.CoordinatorServiceOuterClass.GetHotUpgradeStateResponse>( this, METHODID_GET_HOT_UPGRADE_STATE))) .addMethod( getSetServiceRouteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cz.proto.coordinator.CoordinatorServiceOuterClass.SetServiceRouteRequest, cz.proto.coordinator.CoordinatorServiceOuterClass.SetServiceRouteResponse>( this, METHODID_SET_SERVICE_ROUTE))) .addMethod( getGetServiceRouteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cz.proto.coordinator.CoordinatorServiceOuterClass.GetServiceRouteRequest, cz.proto.coordinator.CoordinatorServiceOuterClass.GetServiceRouteResponse>( this, METHODID_GET_SERVICE_ROUTE))) .build(); } } /** */ public static final class CoordinatorMasterStub extends io.grpc.stub.AbstractAsyncStub { private CoordinatorMasterStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected CoordinatorMasterStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CoordinatorMasterStub(channel, callOptions); } /** *
     **
     * Get job coordinator address cache from master(may not equal with meta)
     * 
*/ public void getJobAddress(cz.proto.coordinator.CoordinatorServiceOuterClass.GetJobAddressRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetJobAddressMethod(), getCallOptions()), request, responseObserver); } /** *
     **
     * Coordinator HB
     * 
*/ public void reportHeartbeat(cz.proto.coordinator.CoordinatorServiceOuterClass.HeartBeat request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getReportHeartbeatMethod(), getCallOptions()), request, responseObserver); } /** *
     **
     * List active coordinator
     * 
*/ public void listWorker(cz.proto.coordinator.CoordinatorServiceOuterClass.ListWorkerRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListWorkerMethod(), getCallOptions()), request, responseObserver); } /** *
     **
     * Internal interface: List current jobs, ignore most parameters
     * 
*/ public void listJobs(cz.proto.coordinator.CoordinatorServiceOuterClass.ListMasterJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListJobsMethod(), getCallOptions()), request, responseObserver); } /** *
     **
     * Internal interface: force delete job when all coordinator crash
     * 
*/ public void deleteJob(cz.proto.coordinator.CoordinatorServiceOuterClass.JobID request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request, responseObserver); } /** *
     **
     * Start upgrade
     * 
*/ public void hotUpgrade(cz.proto.coordinator.CoordinatorServiceOuterClass.HotUpgradeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getHotUpgradeMethod(), getCallOptions()), request, responseObserver); } /** *
     **
     * Get upgrade state
     * 
*/ public void getHotUpgradeState(cz.proto.coordinator.CoordinatorServiceOuterClass.GetHotUpgradeStateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetHotUpgradeStateMethod(), getCallOptions()), request, responseObserver); } /** *
     **
     * Set service route
     * 
*/ public void setServiceRoute(cz.proto.coordinator.CoordinatorServiceOuterClass.SetServiceRouteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSetServiceRouteMethod(), getCallOptions()), request, responseObserver); } /** *
     **
     * Get service route
     * 
*/ public void getServiceRoute(cz.proto.coordinator.CoordinatorServiceOuterClass.GetServiceRouteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetServiceRouteMethod(), getCallOptions()), request, responseObserver); } } /** */ public static final class CoordinatorMasterBlockingStub extends io.grpc.stub.AbstractBlockingStub { private CoordinatorMasterBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected CoordinatorMasterBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CoordinatorMasterBlockingStub(channel, callOptions); } /** *
     **
     * Get job coordinator address cache from master(may not equal with meta)
     * 
*/ public cz.proto.coordinator.CoordinatorServiceOuterClass.GetJobAddressResponse getJobAddress(cz.proto.coordinator.CoordinatorServiceOuterClass.GetJobAddressRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetJobAddressMethod(), getCallOptions(), request); } /** *
     **
     * Coordinator HB
     * 
*/ public cz.proto.coordinator.CoordinatorServiceOuterClass.HeartBeatResponse reportHeartbeat(cz.proto.coordinator.CoordinatorServiceOuterClass.HeartBeat request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getReportHeartbeatMethod(), getCallOptions(), request); } /** *
     **
     * List active coordinator
     * 
*/ public cz.proto.coordinator.CoordinatorServiceOuterClass.ListWorkerResponse listWorker(cz.proto.coordinator.CoordinatorServiceOuterClass.ListWorkerRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListWorkerMethod(), getCallOptions(), request); } /** *
     **
     * Internal interface: List current jobs, ignore most parameters
     * 
*/ public cz.proto.coordinator.CoordinatorServiceOuterClass.ListJobsResponse listJobs(cz.proto.coordinator.CoordinatorServiceOuterClass.ListMasterJobsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListJobsMethod(), getCallOptions(), request); } /** *
     **
     * Internal interface: force delete job when all coordinator crash
     * 
*/ public cz.proto.ServiceCommon.ResponseStatus deleteJob(cz.proto.coordinator.CoordinatorServiceOuterClass.JobID request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteJobMethod(), getCallOptions(), request); } /** *
     **
     * Start upgrade
     * 
*/ public cz.proto.coordinator.CoordinatorServiceOuterClass.HotUpgradeResponse hotUpgrade(cz.proto.coordinator.CoordinatorServiceOuterClass.HotUpgradeRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getHotUpgradeMethod(), getCallOptions(), request); } /** *
     **
     * Get upgrade state
     * 
*/ public cz.proto.coordinator.CoordinatorServiceOuterClass.GetHotUpgradeStateResponse getHotUpgradeState(cz.proto.coordinator.CoordinatorServiceOuterClass.GetHotUpgradeStateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetHotUpgradeStateMethod(), getCallOptions(), request); } /** *
     **
     * Set service route
     * 
*/ public cz.proto.coordinator.CoordinatorServiceOuterClass.SetServiceRouteResponse setServiceRoute(cz.proto.coordinator.CoordinatorServiceOuterClass.SetServiceRouteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSetServiceRouteMethod(), getCallOptions(), request); } /** *
     **
     * Get service route
     * 
*/ public cz.proto.coordinator.CoordinatorServiceOuterClass.GetServiceRouteResponse getServiceRoute(cz.proto.coordinator.CoordinatorServiceOuterClass.GetServiceRouteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetServiceRouteMethod(), getCallOptions(), request); } } /** */ public static final class CoordinatorMasterFutureStub extends io.grpc.stub.AbstractFutureStub { private CoordinatorMasterFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected CoordinatorMasterFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CoordinatorMasterFutureStub(channel, callOptions); } /** *
     **
     * Get job coordinator address cache from master(may not equal with meta)
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getJobAddress( cz.proto.coordinator.CoordinatorServiceOuterClass.GetJobAddressRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetJobAddressMethod(), getCallOptions()), request); } /** *
     **
     * Coordinator HB
     * 
*/ public com.google.common.util.concurrent.ListenableFuture reportHeartbeat( cz.proto.coordinator.CoordinatorServiceOuterClass.HeartBeat request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getReportHeartbeatMethod(), getCallOptions()), request); } /** *
     **
     * List active coordinator
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listWorker( cz.proto.coordinator.CoordinatorServiceOuterClass.ListWorkerRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListWorkerMethod(), getCallOptions()), request); } /** *
     **
     * Internal interface: List current jobs, ignore most parameters
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listJobs( cz.proto.coordinator.CoordinatorServiceOuterClass.ListMasterJobsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListJobsMethod(), getCallOptions()), request); } /** *
     **
     * Internal interface: force delete job when all coordinator crash
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteJob( cz.proto.coordinator.CoordinatorServiceOuterClass.JobID request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); } /** *
     **
     * Start upgrade
     * 
*/ public com.google.common.util.concurrent.ListenableFuture hotUpgrade( cz.proto.coordinator.CoordinatorServiceOuterClass.HotUpgradeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getHotUpgradeMethod(), getCallOptions()), request); } /** *
     **
     * Get upgrade state
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getHotUpgradeState( cz.proto.coordinator.CoordinatorServiceOuterClass.GetHotUpgradeStateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetHotUpgradeStateMethod(), getCallOptions()), request); } /** *
     **
     * Set service route
     * 
*/ public com.google.common.util.concurrent.ListenableFuture setServiceRoute( cz.proto.coordinator.CoordinatorServiceOuterClass.SetServiceRouteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetServiceRouteMethod(), getCallOptions()), request); } /** *
     **
     * Get service route
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getServiceRoute( cz.proto.coordinator.CoordinatorServiceOuterClass.GetServiceRouteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetServiceRouteMethod(), getCallOptions()), request); } } private static final int METHODID_GET_JOB_ADDRESS = 0; private static final int METHODID_REPORT_HEARTBEAT = 1; private static final int METHODID_LIST_WORKER = 2; private static final int METHODID_LIST_JOBS = 3; private static final int METHODID_DELETE_JOB = 4; private static final int METHODID_HOT_UPGRADE = 5; private static final int METHODID_GET_HOT_UPGRADE_STATE = 6; private static final int METHODID_SET_SERVICE_ROUTE = 7; private static final int METHODID_GET_SERVICE_ROUTE = 8; 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 CoordinatorMasterImplBase serviceImpl; private final int methodId; MethodHandlers(CoordinatorMasterImplBase 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_GET_JOB_ADDRESS: serviceImpl.getJobAddress((cz.proto.coordinator.CoordinatorServiceOuterClass.GetJobAddressRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REPORT_HEARTBEAT: serviceImpl.reportHeartbeat((cz.proto.coordinator.CoordinatorServiceOuterClass.HeartBeat) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_WORKER: serviceImpl.listWorker((cz.proto.coordinator.CoordinatorServiceOuterClass.ListWorkerRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_JOBS: serviceImpl.listJobs((cz.proto.coordinator.CoordinatorServiceOuterClass.ListMasterJobsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_JOB: serviceImpl.deleteJob((cz.proto.coordinator.CoordinatorServiceOuterClass.JobID) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_HOT_UPGRADE: serviceImpl.hotUpgrade((cz.proto.coordinator.CoordinatorServiceOuterClass.HotUpgradeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_HOT_UPGRADE_STATE: serviceImpl.getHotUpgradeState((cz.proto.coordinator.CoordinatorServiceOuterClass.GetHotUpgradeStateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SET_SERVICE_ROUTE: serviceImpl.setServiceRoute((cz.proto.coordinator.CoordinatorServiceOuterClass.SetServiceRouteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SERVICE_ROUTE: serviceImpl.getServiceRoute((cz.proto.coordinator.CoordinatorServiceOuterClass.GetServiceRouteRequest) 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 CoordinatorMasterBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { CoordinatorMasterBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return cz.proto.coordinator.CoordinatorServiceOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("CoordinatorMaster"); } } private static final class CoordinatorMasterFileDescriptorSupplier extends CoordinatorMasterBaseDescriptorSupplier { CoordinatorMasterFileDescriptorSupplier() {} } private static final class CoordinatorMasterMethodDescriptorSupplier extends CoordinatorMasterBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; CoordinatorMasterMethodDescriptorSupplier(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 (CoordinatorMasterGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new CoordinatorMasterFileDescriptorSupplier()) .addMethod(getGetJobAddressMethod()) .addMethod(getReportHeartbeatMethod()) .addMethod(getListWorkerMethod()) .addMethod(getListJobsMethod()) .addMethod(getDeleteJobMethod()) .addMethod(getHotUpgradeMethod()) .addMethod(getGetHotUpgradeStateMethod()) .addMethod(getSetServiceRouteMethod()) .addMethod(getGetServiceRouteMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy