Class EvaluationRuntimeGrpc.EvaluationRuntimeImplBase

  • All Implemented Interfaces:
    io.grpc.BindableService
    Enclosing class:
    EvaluationRuntimeGrpc

    public abstract static class EvaluationRuntimeGrpc.EvaluationRuntimeImplBase
    extends Object
    implements io.grpc.BindableService
     A service for evaluating HTTP requests. This service is implemented by
     all the App Engine runtimes. Note that all our existing sandbox/VM
     environments only support a single app version at a time, despite the
     multi-app-version capability implied by this interface.
     TODO: Consider changing the interface to not suggest that it can
     support multiple app versions. This would probably make the code less
     confusing. Related to that, there's no reason why the AppServer-side of
     the runtime needs to inherit from this interface. To the extent that it
     really does need similar methods, it can define its own local (non-RPC)
     versions of those interfaces.
     
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAppVersion​(com.google.apphosting.base.protos.AppinfoPb.AppInfo request, io.grpc.stub.StreamObserver<com.google.apphosting.base.protos.EmptyMessage> responseObserver)
      Add an app version to the runtime.
      io.grpc.ServerServiceDefinition bindService()  
      void deleteAppVersion​(com.google.apphosting.base.protos.AppinfoPb.AppInfo request, io.grpc.stub.StreamObserver<com.google.apphosting.base.protos.EmptyMessage> responseObserver)
      Delete an app version from the runtime.
      void handleRequest​(com.google.apphosting.base.protos.RuntimePb.UPRequest request, io.grpc.stub.StreamObserver<com.google.apphosting.base.protos.RuntimePb.UPResponse> responseObserver)
      Given information an application and an HTTP request, execute the request and prepare a response for the user.
    • Constructor Detail

      • EvaluationRuntimeImplBase

        public EvaluationRuntimeImplBase()
    • Method Detail

      • handleRequest

        public void handleRequest​(com.google.apphosting.base.protos.RuntimePb.UPRequest request,
                                  io.grpc.stub.StreamObserver<com.google.apphosting.base.protos.RuntimePb.UPResponse> responseObserver)
         Given information an application and an HTTP request, execute the
         request and prepare a response for the user.
         
      • addAppVersion

        public void addAppVersion​(com.google.apphosting.base.protos.AppinfoPb.AppInfo request,
                                  io.grpc.stub.StreamObserver<com.google.apphosting.base.protos.EmptyMessage> responseObserver)
         Add an app version to the runtime.
         
      • deleteAppVersion

        public void deleteAppVersion​(com.google.apphosting.base.protos.AppinfoPb.AppInfo request,
                                     io.grpc.stub.StreamObserver<com.google.apphosting.base.protos.EmptyMessage> responseObserver)
         Delete an app version from the runtime.
         NOTE: Here, AppInfo will be an AppInfo-lite.
         
      • bindService

        public final io.grpc.ServerServiceDefinition bindService()
        Specified by:
        bindService in interface io.grpc.BindableService