Class EvaluationRuntimeGrpc.EvaluationRuntimeImplBase
java.lang.Object
com.google.apphosting.base.protos.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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAppVersion(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.final io.grpc.ServerServiceDefinitionvoiddeleteAppVersion(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.voidhandleRequest(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 Details
-
EvaluationRuntimeImplBase
public EvaluationRuntimeImplBase()
-
-
Method Details
-
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:
bindServicein interfaceio.grpc.BindableService
-