public class JavaRuntime extends Object implements EvaluationRuntimeServerInterface
GenericServlet.
JavaRuntime is not responsible for configuring ApiProxy with a delegate. This
class should probably be instantiated by JavaRuntimeFactory, which also sets up ApiProxy.
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaRuntime.Builder
Builder for JavaRuntime.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAppVersion(AnyRpcServerContext rpc,
com.google.apphosting.base.protos.AppinfoPb.AppInfo appInfo)
Adds the specified application version so that it can be used for future requests.
|
static JavaRuntime.Builder |
builder()
Get a partly-initialized builder.
|
void |
deleteAppVersion(AnyRpcServerContext rpc,
com.google.apphosting.base.protos.AppinfoPb.AppInfo appInfo)
Obsolete operation.
|
void |
handleRequest(AnyRpcServerContext rpc,
com.google.apphosting.base.protos.RuntimePb.UPRequest upRequest)
Translate the specified UPRequest from Prometheus into a
HttpServletRequest, invoke the specified servlet, and translate the
response back into an UPResponse. |
static void |
killCloneIfSeriousException(Throwable th) |
void |
start(ServletEngineAdapter.Config runtimeOptions)
Starts the Stubby service, and then perform any initialization that the servlet engine
requires.
|
void |
stop()
Perform a graceful shutdown of our RPC service, and then shut down our servlet engine.
|
public static JavaRuntime.Builder builder()
public void start(ServletEngineAdapter.Config runtimeOptions)
public void stop()
public void handleRequest(AnyRpcServerContext rpc, com.google.apphosting.base.protos.RuntimePb.UPRequest upRequest)
HttpServletRequest, invoke the specified servlet, and translate the
response back into an UPResponse.handleRequest in interface EvaluationRuntimeServerInterfacepublic void addAppVersion(AnyRpcServerContext rpc, com.google.apphosting.base.protos.AppinfoPb.AppInfo appInfo)
addAppVersion in interface EvaluationRuntimeServerInterfacepublic void deleteAppVersion(AnyRpcServerContext rpc, com.google.apphosting.base.protos.AppinfoPb.AppInfo appInfo)
deleteAppVersion in interface EvaluationRuntimeServerInterfacepublic static void killCloneIfSeriousException(Throwable th)
Copyright © 2022. All rights reserved.