A B C D E F G H I L M N O R S U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- ApiConfig() - Constructor for class com.google.apphosting.api.ApiProxy.ApiConfig
- ApiDeadlineExceededException(String, String) - Constructor for exception com.google.apphosting.api.ApiProxy.ApiDeadlineExceededException
- ApiProxy - Class in com.google.apphosting.api
-
ApiProxy is a static class that serves as the collection point for all API calls from user code into the application server.
- ApiProxy.ApiConfig - Class in com.google.apphosting.api
-
ApiConfig
encapsulates one or more configuration parameters scoped to an individual API call. - ApiProxy.ApiDeadlineExceededException - Exception in com.google.apphosting.api
- ApiProxy.ApiProxyException - Exception in com.google.apphosting.api
-
An exception produced when trying to perform an API call.
- ApiProxy.ApiResultFuture<T> - Interface in com.google.apphosting.api
-
A subtype of
Future
that provides more detailed information about the timing and resource consumption of particular API calls. - ApiProxy.ApplicationException - Exception in com.google.apphosting.api
- ApiProxy.ArgumentException - Exception in com.google.apphosting.api
- ApiProxy.CallNotFoundException - Exception in com.google.apphosting.api
- ApiProxy.CancelledException - Exception in com.google.apphosting.api
- ApiProxy.CapabilityDisabledException - Exception in com.google.apphosting.api
- ApiProxy.Delegate<E extends ApiProxy.Environment> - Interface in com.google.apphosting.api
-
This interface can be used to provide a class that actually implements API calls.
- ApiProxy.Environment - Interface in com.google.apphosting.api
-
Environment is a simple data container that provides additional information about the current request (e.g.
- ApiProxy.EnvironmentFactory - Interface in com.google.apphosting.api
-
Used to create an Environment object to use if no thread local Environment is set.
- ApiProxy.EnvironmentWithTrace - Interface in com.google.apphosting.api
-
A specialization of Environment with call-tracing metadata.
- ApiProxy.FeatureNotEnabledException - Exception in com.google.apphosting.api
- ApiProxy.LogRecord - Class in com.google.apphosting.api
-
LogRecord
represents a single apphosting log entry, including a Java-specific logging level, a timestamp in microseconds, and a message, which is a formatted string containing the rest of the logging information (e.g. - ApiProxy.LogRecord.Level - Enum in com.google.apphosting.api
- ApiProxy.OverQuotaException - Exception in com.google.apphosting.api
- ApiProxy.RequestTooLargeException - Exception in com.google.apphosting.api
- ApiProxy.ResponseTooLargeException - Exception in com.google.apphosting.api
- ApiProxy.RPCFailedException - Exception in com.google.apphosting.api
- ApiProxy.UnknownException - Exception in com.google.apphosting.api
-
An exception whose cause is not known or understood by the API code.
- ApiProxyException(String) - Constructor for exception com.google.apphosting.api.ApiProxy.ApiProxyException
- ApiProxyException(String, String, String) - Constructor for exception com.google.apphosting.api.ApiProxy.ApiProxyException
-
Returns a new
ApiProxy.ApiProxyException
where the exception message is the result of callingString.format(message, packageName, methodName)
. - ApiProxyException(String, Throwable) - Constructor for exception com.google.apphosting.api.ApiProxy.ApiProxyException
- ApiStats - Class in com.google.apphosting.api
-
Represents automatic statistics collected by the ApiProxy.
- ApiStats(ApiProxy.Environment) - Constructor for class com.google.apphosting.api.ApiStats
-
Creates a new ApiStats object and binds it to a given Environment.
- ApplicationException(int) - Constructor for exception com.google.apphosting.api.ApiProxy.ApplicationException
- ApplicationException(int, String) - Constructor for exception com.google.apphosting.api.ApiProxy.ApplicationException
- ArgumentException(String, String) - Constructor for exception com.google.apphosting.api.ApiProxy.ArgumentException
B
- beginShutdown(long) - Method in class com.google.appengine.api.LifecycleManager
-
For testing purposes only: Notifies the LifecycleManager that the runtime is shutting down.
C
- CallNotFoundException(String, String) - Constructor for exception com.google.apphosting.api.ApiProxy.CallNotFoundException
- CancelledException(String, String) - Constructor for exception com.google.apphosting.api.ApiProxy.CancelledException
- CancelledException(String, String, String) - Constructor for exception com.google.apphosting.api.ApiProxy.CancelledException
- CapabilityDisabledException(String, String, String) - Constructor for exception com.google.apphosting.api.ApiProxy.CapabilityDisabledException
- clearEnvironmentForCurrentThread() - Static method in class com.google.apphosting.api.ApiProxy
-
Removes any environment associated with the current thread.
- cloneWithoutStackTrace() - Method in exception com.google.apphosting.api.ApiProxy.ApiDeadlineExceededException
- cloneWithoutStackTrace() - Method in exception com.google.apphosting.api.ApiProxy.ApiProxyException
-
Produces a copy of this exception where the stack trace is replaced by one from the place where this method was called.
- cloneWithoutStackTrace() - Method in exception com.google.apphosting.api.ApiProxy.ApplicationException
- cloneWithoutStackTrace() - Method in exception com.google.apphosting.api.ApiProxy.ArgumentException
- cloneWithoutStackTrace() - Method in exception com.google.apphosting.api.ApiProxy.CallNotFoundException
- cloneWithoutStackTrace() - Method in exception com.google.apphosting.api.ApiProxy.CancelledException
- cloneWithoutStackTrace() - Method in exception com.google.apphosting.api.ApiProxy.CapabilityDisabledException
- cloneWithoutStackTrace() - Method in exception com.google.apphosting.api.ApiProxy.FeatureNotEnabledException
- cloneWithoutStackTrace() - Method in exception com.google.apphosting.api.ApiProxy.OverQuotaException
- cloneWithoutStackTrace() - Method in exception com.google.apphosting.api.ApiProxy.RequestTooLargeException
- cloneWithoutStackTrace() - Method in exception com.google.apphosting.api.ApiProxy.ResponseTooLargeException
- cloneWithoutStackTrace() - Method in exception com.google.apphosting.api.ApiProxy.RPCFailedException
- cloneWithoutStackTrace() - Method in exception com.google.apphosting.api.ApiProxy.UnknownException
- CloudTrace - Class in com.google.apphosting.api
-
Holds the current trace context visible to user code.
- CloudTrace(ApiProxy.Environment) - Constructor for class com.google.apphosting.api.CloudTrace
-
Creates a new CloudTrace object and binds it to a given Environment.
- CloudTraceContext - Class in com.google.apphosting.api
-
Stores tracing context including IDs and settings.
- CloudTraceContext(byte[], long, long) - Constructor for class com.google.apphosting.api.CloudTraceContext
-
Create a new context with the given parameters.
- CloudTraceContext(byte[], long, long, long) - Constructor for class com.google.apphosting.api.CloudTraceContext
-
Create a new context with the given parameters.
- com.google.appengine.api - package com.google.appengine.api
- com.google.apphosting.api - package com.google.apphosting.api
-
Provides access to the ApiProxy, which dispatches API calls to backend services.
- copy(StackTraceElement[]) - Method in exception com.google.apphosting.api.ApiProxy.ApiProxyException
-
Clones this exception and then sets this Exception as the cause of the clone and sets the given stack trace in the clone.
- createChildContext() - Method in class com.google.apphosting.api.CloudTraceContext
-
Creates a child context of the current context.
D
- DeadlineExceededException - Exception in com.google.apphosting.api
-
DeadlineExceededException
is an unchecked exception thrown whenever a request has exceeded the request deadline (e.g. - DeadlineExceededException() - Constructor for exception com.google.apphosting.api.DeadlineExceededException
- DeadlineExceededException(String) - Constructor for exception com.google.apphosting.api.DeadlineExceededException
- debug - com.google.apphosting.api.ApiProxy.LogRecord.Level
E
- endSpan(ApiProxy.Environment, CloudTraceContext, CloudTraceContext) - Static method in class com.google.apphosting.api.CloudTrace
-
Ends the span for the given context.
- endSpanImpl(CloudTraceContext) - Method in class com.google.apphosting.api.CloudTrace
- equals(Object) - Method in class com.google.apphosting.api.ApiProxy.ApiConfig
- error - com.google.apphosting.api.ApiProxy.LogRecord.Level
F
- fatal - com.google.apphosting.api.ApiProxy.LogRecord.Level
- FeatureNotEnabledException(String) - Constructor for exception com.google.apphosting.api.ApiProxy.FeatureNotEnabledException
- FeatureNotEnabledException(String, String, String) - Constructor for exception com.google.apphosting.api.ApiProxy.FeatureNotEnabledException
- flushLogs() - Static method in class com.google.apphosting.api.ApiProxy
-
Synchronously flush all pending application logs.
- flushLogs(E) - Method in interface com.google.apphosting.api.ApiProxy.Delegate
G
- get(ApiProxy.Environment) - Static method in class com.google.apphosting.api.ApiStats
-
For a given environment, return the corresponding ApiStats object.
- getApiTimeInMegaCycles() - Method in class com.google.apphosting.api.ApiStats
- getAppId() - Method in interface com.google.apphosting.api.ApiProxy.Environment
-
Gets the application identifier for the current application.
- getApplicationError() - Method in exception com.google.apphosting.api.ApiProxy.ApplicationException
- getAttributes() - Method in interface com.google.apphosting.api.ApiProxy.Environment
-
Get a
Map
containing any attributes that have been set in thisEnvironment
. - getAuthDomain() - Method in interface com.google.apphosting.api.ApiProxy.Environment
-
Returns the domain used for authentication.
- getCpuTimeInMegaCycles() - Method in interface com.google.apphosting.api.ApiProxy.ApiResultFuture
-
Returns the amount of CPU time consumed across any backend servers responsible for serving this API call.
- getCpuTimeInMegaCycles() - Method in class com.google.apphosting.api.ApiStats
- getCurrentContext(ApiProxy.Environment) - Static method in class com.google.apphosting.api.CloudTrace
-
Returns the current trace context for the given environment and the current thread.
- getCurrentEnvironment() - Static method in class com.google.apphosting.api.ApiProxy
-
Gets the environment associated with this thread.
- getDeadlineInSeconds() - Method in class com.google.apphosting.api.ApiProxy.ApiConfig
-
Returns the number of seconds that the API call will be allowed to run, or
null
for the default deadline. - getDefaultContext() - Method in class com.google.apphosting.api.CloudTrace
-
Returns the default context when a thread-specific one doesn't exist.
- getDelegate() - Static method in class com.google.apphosting.api.ApiProxy
-
Gets the delegate to which we will proxy requests.
- getEmail() - Method in interface com.google.apphosting.api.ApiProxy.Environment
-
Gets the email address of the currently logged-in user.
- getEnvironmentFactory() - Static method in class com.google.apphosting.api.ApiProxy
- getErrorDetail() - Method in exception com.google.apphosting.api.ApiProxy.ApplicationException
- getInstance() - Static method in class com.google.appengine.api.LifecycleManager
- getLevel() - Method in class com.google.apphosting.api.ApiProxy.LogRecord
- getMessage() - Method in class com.google.apphosting.api.ApiProxy.LogRecord
- getModuleId() - Method in interface com.google.apphosting.api.ApiProxy.Environment
-
Gets the module identifier for the current application instance.
- getParentSpanId() - Method in class com.google.apphosting.api.CloudTraceContext
- getRemainingMillis() - Method in interface com.google.apphosting.api.ApiProxy.Environment
-
Gets the remaining number of milliseconds left before this request receives a DeadlineExceededException from App Engine.
- getRemainingShutdownTime() - Method in class com.google.appengine.api.LifecycleManager
-
If the runtime is shutting down, returns how long, in milliseconds, is left for shutdown code to clean up.
- getRequestNamespace() - Method in interface com.google.apphosting.api.ApiProxy.Environment
-
Deprecated.Use
NamespaceManager
.getGoogleAppsNamespace() - getRequestThreads() - Static method in class com.google.apphosting.api.ApiProxy
-
Returns a list of all threads which are currently running requests.
- getRequestThreads(E) - Method in interface com.google.apphosting.api.ApiProxy.Delegate
-
Returns a list of all threads which are currently running requests.
- getSourceLocation() - Method in class com.google.apphosting.api.ApiProxy.LogRecord
- getSpanId() - Method in interface com.google.apphosting.api.ApiProxy.EnvironmentWithTrace
-
Get the span id of the current request, which can be used to identify a span within a trace.
- getSpanId() - Method in class com.google.apphosting.api.CloudTraceContext
- getStackFrame() - Method in class com.google.apphosting.api.ApiProxy.LogRecord
- getTimestamp() - Method in class com.google.apphosting.api.ApiProxy.LogRecord
-
Returns the timestamp of the log message, in microseconds since midnight UTC on 1 January 1970.
- getTraceId() - Method in interface com.google.apphosting.api.ApiProxy.EnvironmentWithTrace
-
Get the trace id of the current request, which can be used to correlate log messages belonging to that request.
- getTraceId() - Method in class com.google.apphosting.api.CloudTraceContext
- getTraceMask() - Method in class com.google.apphosting.api.CloudTraceContext
- getVersionId() - Method in interface com.google.apphosting.api.ApiProxy.Environment
-
Gets the version identifier for the current application version.
- getWallclockTimeInMillis() - Method in interface com.google.apphosting.api.ApiProxy.ApiResultFuture
-
Returns the amount of wallclock time, measured in milliseconds, that this API call took to complete, as measured from the client side.
H
- hashCode() - Method in class com.google.apphosting.api.ApiProxy.ApiConfig
I
- info - com.google.apphosting.api.ApiProxy.LogRecord.Level
- interruptAllRequests() - Method in class com.google.appengine.api.LifecycleManager
-
Calls Thread.interrupt() on all threads running requests for this application.
- isAdmin() - Method in interface com.google.apphosting.api.ApiProxy.Environment
-
Returns true if the currently logged-in user is an administrator.
- isLoggedIn() - Method in interface com.google.apphosting.api.ApiProxy.Environment
-
Returns true if the user is logged in.
- isShuttingDown() - Method in class com.google.appengine.api.LifecycleManager
- isTraceEnabled() - Method in class com.google.apphosting.api.CloudTraceContext
L
- LifecycleManager - Class in com.google.appengine.api
-
Information about the current status of the Java Runtime.
- LifecycleManager.ShutdownHook - Interface in com.google.appengine.api
- log(ApiProxy.LogRecord) - Static method in class com.google.apphosting.api.ApiProxy
- log(E, ApiProxy.LogRecord) - Method in interface com.google.apphosting.api.ApiProxy.Delegate
- LogRecord(ApiProxy.LogRecord.Level, long, String) - Constructor for class com.google.apphosting.api.ApiProxy.LogRecord
- LogRecord(ApiProxy.LogRecord.Level, long, String, StackTraceElement) - Constructor for class com.google.apphosting.api.ApiProxy.LogRecord
-
Constructor for when the source location will be extracted from a StackTraceElement.
- LogRecord(ApiProxy.LogRecord.Level, long, String, Throwable) - Constructor for class com.google.apphosting.api.ApiProxy.LogRecord
-
Deprecated.Prefer the constructor that takes a StackTraceElement to identify the source location.
- LogRecord(ApiProxy.LogRecord, String) - Constructor for class com.google.apphosting.api.ApiProxy.LogRecord
-
A partial copy constructor.
M
- makeAsyncCall(E, String, String, byte[], ApiProxy.ApiConfig) - Method in interface com.google.apphosting.api.ApiProxy.Delegate
-
Make an asynchronous call to the specified method in the specified API package.
- makeAsyncCall(String, String, byte[]) - Static method in class com.google.apphosting.api.ApiProxy
- makeAsyncCall(String, String, byte[], ApiProxy.ApiConfig) - Static method in class com.google.apphosting.api.ApiProxy
-
Make an asynchronous call to the specified method in the specified API package.
- makeSyncCall(E, String, String, byte[]) - Method in interface com.google.apphosting.api.ApiProxy.Delegate
-
Make a synchronous call to the specified method in the specified API package.
- makeSyncCall(String, String, byte[]) - Static method in class com.google.apphosting.api.ApiProxy
- makeSyncCall(String, String, byte[], ApiProxy.ApiConfig) - Static method in class com.google.apphosting.api.ApiProxy
-
Make a synchronous call to the specified method in the specified API package.
N
- newEnvironment() - Method in interface com.google.apphosting.api.ApiProxy.EnvironmentFactory
-
Creates a new Environment object to use if no thread local Environment is set.
O
- OverQuotaException(String, String) - Constructor for exception com.google.apphosting.api.ApiProxy.OverQuotaException
- OverQuotaException(String, String, String) - Constructor for exception com.google.apphosting.api.ApiProxy.OverQuotaException
- OverQuotaException(String, Throwable) - Constructor for exception com.google.apphosting.api.ApiProxy.OverQuotaException
R
- RequestTooLargeException(String, String) - Constructor for exception com.google.apphosting.api.ApiProxy.RequestTooLargeException
- ResponseTooLargeException(String, String) - Constructor for exception com.google.apphosting.api.ApiProxy.ResponseTooLargeException
- RPCFailedException(String, String) - Constructor for exception com.google.apphosting.api.ApiProxy.RPCFailedException
- RPCFailedException(String, Throwable) - Constructor for exception com.google.apphosting.api.ApiProxy.RPCFailedException
S
- setCurrentContext(ApiProxy.Environment, CloudTraceContext) - Static method in class com.google.apphosting.api.CloudTrace
-
Sets the current trace context for the current environment and the current thread.
- setDeadlineInSeconds(Double) - Method in class com.google.apphosting.api.ApiProxy.ApiConfig
-
Set the number of seconds that the API call will be allowed to run, or
null
for the default deadline. - setDelegate(ApiProxy.Delegate<?>) - Static method in class com.google.apphosting.api.ApiProxy
-
Sets a delegate to which we will proxy requests.
- setEnvironmentFactory(ApiProxy.EnvironmentFactory) - Static method in class com.google.apphosting.api.ApiProxy
-
Set the EnvironmentFactory instance to use, which will be used to create Environment instances when a thread local one is not set.
- setEnvironmentForCurrentThread(ApiProxy.Environment) - Static method in class com.google.apphosting.api.ApiProxy
-
Sets an environment for the current thread.
- setLabel(ApiProxy.Environment, CloudTraceContext, String, String) - Static method in class com.google.apphosting.api.CloudTrace
-
Sets a key:value label on the span for the given context.
- setLabelImpl(CloudTraceContext, String, String) - Method in class com.google.apphosting.api.CloudTrace
- setShutdownHook(LifecycleManager.ShutdownHook) - Method in class com.google.appengine.api.LifecycleManager
-
Register a ShutdownHook to be called when the runtime shuts down.
- shutdown() - Method in interface com.google.appengine.api.LifecycleManager.ShutdownHook
- startChildSpan(ApiProxy.Environment, CloudTraceContext, String) - Static method in class com.google.apphosting.api.CloudTrace
-
Starts a new span as the child of the given context.
- startChildSpanImpl(CloudTraceContext, String) - Method in class com.google.apphosting.api.CloudTrace
U
- UnknownException(String) - Constructor for exception com.google.apphosting.api.ApiProxy.UnknownException
- UnknownException(String, String) - Constructor for exception com.google.apphosting.api.ApiProxy.UnknownException
- UnknownException(String, String, Throwable) - Constructor for exception com.google.apphosting.api.ApiProxy.UnknownException
V
- valueOf(String) - Static method in enum com.google.apphosting.api.ApiProxy.LogRecord.Level
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.google.apphosting.api.ApiProxy.LogRecord.Level
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- warn - com.google.apphosting.api.ApiProxy.LogRecord.Level
All Classes All Packages