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

org.apache.hadoop.yarn.proto.ApplicationHistoryProtocol Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: application_history_client.proto

package org.apache.hadoop.yarn.proto;

public final class ApplicationHistoryProtocol {
  private ApplicationHistoryProtocol() {}
  public static void registerAllExtensions(
      org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      org.apache.hadoop.thirdparty.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf service {@code hadoop.yarn.ApplicationHistoryProtocolService}
   */
  public static abstract class ApplicationHistoryProtocolService
      implements org.apache.hadoop.thirdparty.protobuf.Service {
    protected ApplicationHistoryProtocolService() {}

    public interface Interface {
      /**
       * rpc getApplicationReport(.hadoop.yarn.GetApplicationReportRequestProto) returns (.hadoop.yarn.GetApplicationReportResponseProto);
       */
      public abstract void getApplicationReport(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

      /**
       * rpc getApplications(.hadoop.yarn.GetApplicationsRequestProto) returns (.hadoop.yarn.GetApplicationsResponseProto);
       */
      public abstract void getApplications(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

      /**
       * rpc getApplicationAttemptReport(.hadoop.yarn.GetApplicationAttemptReportRequestProto) returns (.hadoop.yarn.GetApplicationAttemptReportResponseProto);
       */
      public abstract void getApplicationAttemptReport(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

      /**
       * rpc getApplicationAttempts(.hadoop.yarn.GetApplicationAttemptsRequestProto) returns (.hadoop.yarn.GetApplicationAttemptsResponseProto);
       */
      public abstract void getApplicationAttempts(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

      /**
       * rpc getContainerReport(.hadoop.yarn.GetContainerReportRequestProto) returns (.hadoop.yarn.GetContainerReportResponseProto);
       */
      public abstract void getContainerReport(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

      /**
       * rpc getContainers(.hadoop.yarn.GetContainersRequestProto) returns (.hadoop.yarn.GetContainersResponseProto);
       */
      public abstract void getContainers(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

      /**
       * rpc getDelegationToken(.hadoop.common.GetDelegationTokenRequestProto) returns (.hadoop.common.GetDelegationTokenResponseProto);
       */
      public abstract void getDelegationToken(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

      /**
       * rpc renewDelegationToken(.hadoop.common.RenewDelegationTokenRequestProto) returns (.hadoop.common.RenewDelegationTokenResponseProto);
       */
      public abstract void renewDelegationToken(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

      /**
       * rpc cancelDelegationToken(.hadoop.common.CancelDelegationTokenRequestProto) returns (.hadoop.common.CancelDelegationTokenResponseProto);
       */
      public abstract void cancelDelegationToken(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

    }

    public static org.apache.hadoop.thirdparty.protobuf.Service newReflectiveService(
        final Interface impl) {
      return new ApplicationHistoryProtocolService() {
        @java.lang.Override
        public  void getApplicationReport(
            org.apache.hadoop.thirdparty.protobuf.RpcController controller,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto request,
            org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
          impl.getApplicationReport(controller, request, done);
        }

        @java.lang.Override
        public  void getApplications(
            org.apache.hadoop.thirdparty.protobuf.RpcController controller,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto request,
            org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
          impl.getApplications(controller, request, done);
        }

        @java.lang.Override
        public  void getApplicationAttemptReport(
            org.apache.hadoop.thirdparty.protobuf.RpcController controller,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportRequestProto request,
            org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
          impl.getApplicationAttemptReport(controller, request, done);
        }

        @java.lang.Override
        public  void getApplicationAttempts(
            org.apache.hadoop.thirdparty.protobuf.RpcController controller,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsRequestProto request,
            org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
          impl.getApplicationAttempts(controller, request, done);
        }

        @java.lang.Override
        public  void getContainerReport(
            org.apache.hadoop.thirdparty.protobuf.RpcController controller,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportRequestProto request,
            org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
          impl.getContainerReport(controller, request, done);
        }

        @java.lang.Override
        public  void getContainers(
            org.apache.hadoop.thirdparty.protobuf.RpcController controller,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersRequestProto request,
            org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
          impl.getContainers(controller, request, done);
        }

        @java.lang.Override
        public  void getDelegationToken(
            org.apache.hadoop.thirdparty.protobuf.RpcController controller,
            org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto request,
            org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
          impl.getDelegationToken(controller, request, done);
        }

        @java.lang.Override
        public  void renewDelegationToken(
            org.apache.hadoop.thirdparty.protobuf.RpcController controller,
            org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto request,
            org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
          impl.renewDelegationToken(controller, request, done);
        }

        @java.lang.Override
        public  void cancelDelegationToken(
            org.apache.hadoop.thirdparty.protobuf.RpcController controller,
            org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto request,
            org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
          impl.cancelDelegationToken(controller, request, done);
        }

      };
    }

    public static org.apache.hadoop.thirdparty.protobuf.BlockingService
        newReflectiveBlockingService(final BlockingInterface impl) {
      return new org.apache.hadoop.thirdparty.protobuf.BlockingService() {
        public final org.apache.hadoop.thirdparty.protobuf.Descriptors.ServiceDescriptor
            getDescriptorForType() {
          return getDescriptor();
        }

        public final org.apache.hadoop.thirdparty.protobuf.Message callBlockingMethod(
            org.apache.hadoop.thirdparty.protobuf.Descriptors.MethodDescriptor method,
            org.apache.hadoop.thirdparty.protobuf.RpcController controller,
            org.apache.hadoop.thirdparty.protobuf.Message request)
            throws org.apache.hadoop.thirdparty.protobuf.ServiceException {
          if (method.getService() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "Service.callBlockingMethod() given method descriptor for " +
              "wrong service type.");
          }
          switch(method.getIndex()) {
            case 0:
              return impl.getApplicationReport(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto)request);
            case 1:
              return impl.getApplications(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto)request);
            case 2:
              return impl.getApplicationAttemptReport(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportRequestProto)request);
            case 3:
              return impl.getApplicationAttempts(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsRequestProto)request);
            case 4:
              return impl.getContainerReport(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportRequestProto)request);
            case 5:
              return impl.getContainers(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersRequestProto)request);
            case 6:
              return impl.getDelegationToken(controller, (org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto)request);
            case 7:
              return impl.renewDelegationToken(controller, (org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto)request);
            case 8:
              return impl.cancelDelegationToken(controller, (org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto)request);
            default:
              throw new java.lang.AssertionError("Can't get here.");
          }
        }

        public final org.apache.hadoop.thirdparty.protobuf.Message
            getRequestPrototype(
            org.apache.hadoop.thirdparty.protobuf.Descriptors.MethodDescriptor method) {
          if (method.getService() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "Service.getRequestPrototype() given method " +
              "descriptor for wrong service type.");
          }
          switch(method.getIndex()) {
            case 0:
              return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto.getDefaultInstance();
            case 1:
              return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto.getDefaultInstance();
            case 2:
              return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportRequestProto.getDefaultInstance();
            case 3:
              return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsRequestProto.getDefaultInstance();
            case 4:
              return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportRequestProto.getDefaultInstance();
            case 5:
              return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersRequestProto.getDefaultInstance();
            case 6:
              return org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto.getDefaultInstance();
            case 7:
              return org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto.getDefaultInstance();
            case 8:
              return org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto.getDefaultInstance();
            default:
              throw new java.lang.AssertionError("Can't get here.");
          }
        }

        public final org.apache.hadoop.thirdparty.protobuf.Message
            getResponsePrototype(
            org.apache.hadoop.thirdparty.protobuf.Descriptors.MethodDescriptor method) {
          if (method.getService() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "Service.getResponsePrototype() given method " +
              "descriptor for wrong service type.");
          }
          switch(method.getIndex()) {
            case 0:
              return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto.getDefaultInstance();
            case 1:
              return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto.getDefaultInstance();
            case 2:
              return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportResponseProto.getDefaultInstance();
            case 3:
              return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsResponseProto.getDefaultInstance();
            case 4:
              return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportResponseProto.getDefaultInstance();
            case 5:
              return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersResponseProto.getDefaultInstance();
            case 6:
              return org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto.getDefaultInstance();
            case 7:
              return org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto.getDefaultInstance();
            case 8:
              return org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto.getDefaultInstance();
            default:
              throw new java.lang.AssertionError("Can't get here.");
          }
        }

      };
    }

    /**
     * rpc getApplicationReport(.hadoop.yarn.GetApplicationReportRequestProto) returns (.hadoop.yarn.GetApplicationReportResponseProto);
     */
    public abstract void getApplicationReport(
        org.apache.hadoop.thirdparty.protobuf.RpcController controller,
        org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto request,
        org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

    /**
     * rpc getApplications(.hadoop.yarn.GetApplicationsRequestProto) returns (.hadoop.yarn.GetApplicationsResponseProto);
     */
    public abstract void getApplications(
        org.apache.hadoop.thirdparty.protobuf.RpcController controller,
        org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto request,
        org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

    /**
     * rpc getApplicationAttemptReport(.hadoop.yarn.GetApplicationAttemptReportRequestProto) returns (.hadoop.yarn.GetApplicationAttemptReportResponseProto);
     */
    public abstract void getApplicationAttemptReport(
        org.apache.hadoop.thirdparty.protobuf.RpcController controller,
        org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportRequestProto request,
        org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

    /**
     * rpc getApplicationAttempts(.hadoop.yarn.GetApplicationAttemptsRequestProto) returns (.hadoop.yarn.GetApplicationAttemptsResponseProto);
     */
    public abstract void getApplicationAttempts(
        org.apache.hadoop.thirdparty.protobuf.RpcController controller,
        org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsRequestProto request,
        org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

    /**
     * rpc getContainerReport(.hadoop.yarn.GetContainerReportRequestProto) returns (.hadoop.yarn.GetContainerReportResponseProto);
     */
    public abstract void getContainerReport(
        org.apache.hadoop.thirdparty.protobuf.RpcController controller,
        org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportRequestProto request,
        org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

    /**
     * rpc getContainers(.hadoop.yarn.GetContainersRequestProto) returns (.hadoop.yarn.GetContainersResponseProto);
     */
    public abstract void getContainers(
        org.apache.hadoop.thirdparty.protobuf.RpcController controller,
        org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersRequestProto request,
        org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

    /**
     * rpc getDelegationToken(.hadoop.common.GetDelegationTokenRequestProto) returns (.hadoop.common.GetDelegationTokenResponseProto);
     */
    public abstract void getDelegationToken(
        org.apache.hadoop.thirdparty.protobuf.RpcController controller,
        org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto request,
        org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

    /**
     * rpc renewDelegationToken(.hadoop.common.RenewDelegationTokenRequestProto) returns (.hadoop.common.RenewDelegationTokenResponseProto);
     */
    public abstract void renewDelegationToken(
        org.apache.hadoop.thirdparty.protobuf.RpcController controller,
        org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto request,
        org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

    /**
     * rpc cancelDelegationToken(.hadoop.common.CancelDelegationTokenRequestProto) returns (.hadoop.common.CancelDelegationTokenResponseProto);
     */
    public abstract void cancelDelegationToken(
        org.apache.hadoop.thirdparty.protobuf.RpcController controller,
        org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto request,
        org.apache.hadoop.thirdparty.protobuf.RpcCallback done);

    public static final
        org.apache.hadoop.thirdparty.protobuf.Descriptors.ServiceDescriptor
        getDescriptor() {
      return org.apache.hadoop.yarn.proto.ApplicationHistoryProtocol.getDescriptor().getServices().get(0);
    }
    public final org.apache.hadoop.thirdparty.protobuf.Descriptors.ServiceDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }

    public final void callMethod(
        org.apache.hadoop.thirdparty.protobuf.Descriptors.MethodDescriptor method,
        org.apache.hadoop.thirdparty.protobuf.RpcController controller,
        org.apache.hadoop.thirdparty.protobuf.Message request,
        org.apache.hadoop.thirdparty.protobuf.RpcCallback<
          org.apache.hadoop.thirdparty.protobuf.Message> done) {
      if (method.getService() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "Service.callMethod() given method descriptor for wrong " +
          "service type.");
      }
      switch(method.getIndex()) {
        case 0:
          this.getApplicationReport(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto)request,
            org.apache.hadoop.thirdparty.protobuf.RpcUtil.specializeCallback(
              done));
          return;
        case 1:
          this.getApplications(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto)request,
            org.apache.hadoop.thirdparty.protobuf.RpcUtil.specializeCallback(
              done));
          return;
        case 2:
          this.getApplicationAttemptReport(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportRequestProto)request,
            org.apache.hadoop.thirdparty.protobuf.RpcUtil.specializeCallback(
              done));
          return;
        case 3:
          this.getApplicationAttempts(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsRequestProto)request,
            org.apache.hadoop.thirdparty.protobuf.RpcUtil.specializeCallback(
              done));
          return;
        case 4:
          this.getContainerReport(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportRequestProto)request,
            org.apache.hadoop.thirdparty.protobuf.RpcUtil.specializeCallback(
              done));
          return;
        case 5:
          this.getContainers(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersRequestProto)request,
            org.apache.hadoop.thirdparty.protobuf.RpcUtil.specializeCallback(
              done));
          return;
        case 6:
          this.getDelegationToken(controller, (org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto)request,
            org.apache.hadoop.thirdparty.protobuf.RpcUtil.specializeCallback(
              done));
          return;
        case 7:
          this.renewDelegationToken(controller, (org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto)request,
            org.apache.hadoop.thirdparty.protobuf.RpcUtil.specializeCallback(
              done));
          return;
        case 8:
          this.cancelDelegationToken(controller, (org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto)request,
            org.apache.hadoop.thirdparty.protobuf.RpcUtil.specializeCallback(
              done));
          return;
        default:
          throw new java.lang.AssertionError("Can't get here.");
      }
    }

    public final org.apache.hadoop.thirdparty.protobuf.Message
        getRequestPrototype(
        org.apache.hadoop.thirdparty.protobuf.Descriptors.MethodDescriptor method) {
      if (method.getService() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "Service.getRequestPrototype() given method " +
          "descriptor for wrong service type.");
      }
      switch(method.getIndex()) {
        case 0:
          return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto.getDefaultInstance();
        case 1:
          return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto.getDefaultInstance();
        case 2:
          return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportRequestProto.getDefaultInstance();
        case 3:
          return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsRequestProto.getDefaultInstance();
        case 4:
          return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportRequestProto.getDefaultInstance();
        case 5:
          return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersRequestProto.getDefaultInstance();
        case 6:
          return org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto.getDefaultInstance();
        case 7:
          return org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto.getDefaultInstance();
        case 8:
          return org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto.getDefaultInstance();
        default:
          throw new java.lang.AssertionError("Can't get here.");
      }
    }

    public final org.apache.hadoop.thirdparty.protobuf.Message
        getResponsePrototype(
        org.apache.hadoop.thirdparty.protobuf.Descriptors.MethodDescriptor method) {
      if (method.getService() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "Service.getResponsePrototype() given method " +
          "descriptor for wrong service type.");
      }
      switch(method.getIndex()) {
        case 0:
          return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto.getDefaultInstance();
        case 1:
          return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto.getDefaultInstance();
        case 2:
          return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportResponseProto.getDefaultInstance();
        case 3:
          return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsResponseProto.getDefaultInstance();
        case 4:
          return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportResponseProto.getDefaultInstance();
        case 5:
          return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersResponseProto.getDefaultInstance();
        case 6:
          return org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto.getDefaultInstance();
        case 7:
          return org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto.getDefaultInstance();
        case 8:
          return org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto.getDefaultInstance();
        default:
          throw new java.lang.AssertionError("Can't get here.");
      }
    }

    public static Stub newStub(
        org.apache.hadoop.thirdparty.protobuf.RpcChannel channel) {
      return new Stub(channel);
    }

    public static final class Stub extends org.apache.hadoop.yarn.proto.ApplicationHistoryProtocol.ApplicationHistoryProtocolService implements Interface {
      private Stub(org.apache.hadoop.thirdparty.protobuf.RpcChannel channel) {
        this.channel = channel;
      }

      private final org.apache.hadoop.thirdparty.protobuf.RpcChannel channel;

      public org.apache.hadoop.thirdparty.protobuf.RpcChannel getChannel() {
        return channel;
      }

      public  void getApplicationReport(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
        channel.callMethod(
          getDescriptor().getMethods().get(0),
          controller,
          request,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto.getDefaultInstance(),
          org.apache.hadoop.thirdparty.protobuf.RpcUtil.generalizeCallback(
            done,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto.class,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto.getDefaultInstance()));
      }

      public  void getApplications(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
        channel.callMethod(
          getDescriptor().getMethods().get(1),
          controller,
          request,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto.getDefaultInstance(),
          org.apache.hadoop.thirdparty.protobuf.RpcUtil.generalizeCallback(
            done,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto.class,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto.getDefaultInstance()));
      }

      public  void getApplicationAttemptReport(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
        channel.callMethod(
          getDescriptor().getMethods().get(2),
          controller,
          request,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportResponseProto.getDefaultInstance(),
          org.apache.hadoop.thirdparty.protobuf.RpcUtil.generalizeCallback(
            done,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportResponseProto.class,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportResponseProto.getDefaultInstance()));
      }

      public  void getApplicationAttempts(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
        channel.callMethod(
          getDescriptor().getMethods().get(3),
          controller,
          request,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsResponseProto.getDefaultInstance(),
          org.apache.hadoop.thirdparty.protobuf.RpcUtil.generalizeCallback(
            done,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsResponseProto.class,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsResponseProto.getDefaultInstance()));
      }

      public  void getContainerReport(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
        channel.callMethod(
          getDescriptor().getMethods().get(4),
          controller,
          request,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportResponseProto.getDefaultInstance(),
          org.apache.hadoop.thirdparty.protobuf.RpcUtil.generalizeCallback(
            done,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportResponseProto.class,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportResponseProto.getDefaultInstance()));
      }

      public  void getContainers(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
        channel.callMethod(
          getDescriptor().getMethods().get(5),
          controller,
          request,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersResponseProto.getDefaultInstance(),
          org.apache.hadoop.thirdparty.protobuf.RpcUtil.generalizeCallback(
            done,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersResponseProto.class,
            org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersResponseProto.getDefaultInstance()));
      }

      public  void getDelegationToken(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
        channel.callMethod(
          getDescriptor().getMethods().get(6),
          controller,
          request,
          org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto.getDefaultInstance(),
          org.apache.hadoop.thirdparty.protobuf.RpcUtil.generalizeCallback(
            done,
            org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto.class,
            org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto.getDefaultInstance()));
      }

      public  void renewDelegationToken(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
        channel.callMethod(
          getDescriptor().getMethods().get(7),
          controller,
          request,
          org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto.getDefaultInstance(),
          org.apache.hadoop.thirdparty.protobuf.RpcUtil.generalizeCallback(
            done,
            org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto.class,
            org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto.getDefaultInstance()));
      }

      public  void cancelDelegationToken(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto request,
          org.apache.hadoop.thirdparty.protobuf.RpcCallback done) {
        channel.callMethod(
          getDescriptor().getMethods().get(8),
          controller,
          request,
          org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto.getDefaultInstance(),
          org.apache.hadoop.thirdparty.protobuf.RpcUtil.generalizeCallback(
            done,
            org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto.class,
            org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto.getDefaultInstance()));
      }
    }

    public static BlockingInterface newBlockingStub(
        org.apache.hadoop.thirdparty.protobuf.BlockingRpcChannel channel) {
      return new BlockingStub(channel);
    }

    public interface BlockingInterface {
      public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto getApplicationReport(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException;

      public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto getApplications(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException;

      public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportResponseProto getApplicationAttemptReport(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException;

      public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsResponseProto getApplicationAttempts(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException;

      public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportResponseProto getContainerReport(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException;

      public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersResponseProto getContainers(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException;

      public org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto getDelegationToken(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException;

      public org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto renewDelegationToken(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException;

      public org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto cancelDelegationToken(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException;
    }

    private static final class BlockingStub implements BlockingInterface {
      private BlockingStub(org.apache.hadoop.thirdparty.protobuf.BlockingRpcChannel channel) {
        this.channel = channel;
      }

      private final org.apache.hadoop.thirdparty.protobuf.BlockingRpcChannel channel;

      public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto getApplicationReport(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException {
        return (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto) channel.callBlockingMethod(
          getDescriptor().getMethods().get(0),
          controller,
          request,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto.getDefaultInstance());
      }


      public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto getApplications(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException {
        return (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto) channel.callBlockingMethod(
          getDescriptor().getMethods().get(1),
          controller,
          request,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto.getDefaultInstance());
      }


      public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportResponseProto getApplicationAttemptReport(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException {
        return (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportResponseProto) channel.callBlockingMethod(
          getDescriptor().getMethods().get(2),
          controller,
          request,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptReportResponseProto.getDefaultInstance());
      }


      public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsResponseProto getApplicationAttempts(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException {
        return (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsResponseProto) channel.callBlockingMethod(
          getDescriptor().getMethods().get(3),
          controller,
          request,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationAttemptsResponseProto.getDefaultInstance());
      }


      public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportResponseProto getContainerReport(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException {
        return (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportResponseProto) channel.callBlockingMethod(
          getDescriptor().getMethods().get(4),
          controller,
          request,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerReportResponseProto.getDefaultInstance());
      }


      public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersResponseProto getContainers(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException {
        return (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersResponseProto) channel.callBlockingMethod(
          getDescriptor().getMethods().get(5),
          controller,
          request,
          org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersResponseProto.getDefaultInstance());
      }


      public org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto getDelegationToken(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException {
        return (org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto) channel.callBlockingMethod(
          getDescriptor().getMethods().get(6),
          controller,
          request,
          org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto.getDefaultInstance());
      }


      public org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto renewDelegationToken(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException {
        return (org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto) channel.callBlockingMethod(
          getDescriptor().getMethods().get(7),
          controller,
          request,
          org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto.getDefaultInstance());
      }


      public org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto cancelDelegationToken(
          org.apache.hadoop.thirdparty.protobuf.RpcController controller,
          org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto request)
          throws org.apache.hadoop.thirdparty.protobuf.ServiceException {
        return (org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto) channel.callBlockingMethod(
          getDescriptor().getMethods().get(8),
          controller,
          request,
          org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto.getDefaultInstance());
      }

    }

    // @@protoc_insertion_point(class_scope:hadoop.yarn.ApplicationHistoryProtocolService)
  }


  public static org.apache.hadoop.thirdparty.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  org.apache.hadoop.thirdparty.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n application_history_client.proto\022\013hado" +
      "op.yarn\032\016Security.proto\032\031yarn_service_pr" +
      "otos.proto2\315\010\n!ApplicationHistoryProtoco" +
      "lService\022u\n\024getApplicationReport\022-.hadoo" +
      "p.yarn.GetApplicationReportRequestProto\032" +
      "..hadoop.yarn.GetApplicationReportRespon" +
      "seProto\022f\n\017getApplications\022(.hadoop.yarn" +
      ".GetApplicationsRequestProto\032).hadoop.ya" +
      "rn.GetApplicationsResponseProto\022\212\001\n\033getA" +
      "pplicationAttemptReport\0224.hadoop.yarn.Ge" +
      "tApplicationAttemptReportRequestProto\0325." +
      "hadoop.yarn.GetApplicationAttemptReportR" +
      "esponseProto\022{\n\026getApplicationAttempts\022/" +
      ".hadoop.yarn.GetApplicationAttemptsReque" +
      "stProto\0320.hadoop.yarn.GetApplicationAtte" +
      "mptsResponseProto\022o\n\022getContainerReport\022" +
      "+.hadoop.yarn.GetContainerReportRequestP" +
      "roto\032,.hadoop.yarn.GetContainerReportRes" +
      "ponseProto\022`\n\rgetContainers\022&.hadoop.yar" +
      "n.GetContainersRequestProto\032\'.hadoop.yar" +
      "n.GetContainersResponseProto\022s\n\022getDeleg" +
      "ationToken\022-.hadoop.common.GetDelegation" +
      "TokenRequestProto\032..hadoop.common.GetDel" +
      "egationTokenResponseProto\022y\n\024renewDelega" +
      "tionToken\022/.hadoop.common.RenewDelegatio" +
      "nTokenRequestProto\0320.hadoop.common.Renew" +
      "DelegationTokenResponseProto\022|\n\025cancelDe" +
      "legationToken\0220.hadoop.common.CancelDele" +
      "gationTokenRequestProto\0321.hadoop.common." +
      "CancelDelegationTokenResponseProtoB@\n\034or" +
      "g.apache.hadoop.yarn.protoB\032ApplicationH" +
      "istoryProtocol\210\001\001\240\001\001"
    };
    org.apache.hadoop.thirdparty.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new org.apache.hadoop.thirdparty.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public org.apache.hadoop.thirdparty.protobuf.ExtensionRegistry assignDescriptors(
              org.apache.hadoop.thirdparty.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    org.apache.hadoop.thirdparty.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new org.apache.hadoop.thirdparty.protobuf.Descriptors.FileDescriptor[] {
          org.apache.hadoop.security.proto.SecurityProtos.getDescriptor(),
          org.apache.hadoop.yarn.proto.YarnServiceProtos.getDescriptor(),
        }, assigner);
    org.apache.hadoop.security.proto.SecurityProtos.getDescriptor();
    org.apache.hadoop.yarn.proto.YarnServiceProtos.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy