google-nomulus/java/google/registry/request
jianglai c702b4486c Use standard java thread factory instead of the AppEngine flavor
With Java 8 in GAE standard environment, we can now use standard java thread factory to run the metric reporter in the background in daemon mode, which would not interfere with basic scaling idle timeout as App Engine thread would.

Because the thread is not created by ThreadManager, no App Engine APIs can be called from it. We therefore use GoogleCredential instead of AppIdentityCredential as HttpRequestInitializer, and NetHttpTransport instead of UlrFetchTransport as HttpTransport.

MetricReporter is lazy injected because it depends on jsonCredential retrieved from CloudKms, which is not available in a test environment, causing FrontendServletTest and BackendServletTest to fail.

Some minor re-formatting with google-java-format on edited files.

Lastly removed moe comments in import statement, which makes the linter unhappy.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=172896227
2017-10-24 16:53:47 -04:00
..
auth Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
lock Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
Action.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
Actions.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
BUILD Create an injectable LockHandler 2017-09-12 15:51:50 -04:00
Header.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
HttpException.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
JsonActionRunner.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
JsonPayload.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
JsonResponse.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
Modules.java Use standard java thread factory instead of the AppEngine flavor 2017-10-24 16:53:47 -04:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
Parameter.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ParameterMap.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
Payload.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RequestComponentBuilder.java Remove Builder type param on RequestComponentBuilder/RequestHandler 2017-02-27 11:12:07 -05:00
RequestHandler.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
RequestLogId.java Add tool to check if other requests are still running 2017-09-12 15:51:50 -04:00
RequestMethod.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RequestModule.java Check if lock owner is finished on lock acquisition 2017-09-20 10:27:17 -04:00
RequestParameters.java Prepare ICANN reporting for production 2017-10-24 16:53:47 -04:00
RequestPath.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RequestScope.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
Response.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ResponseImpl.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
Route.java Remove xsrfScope and xsrfProtection authentication attributes 2017-06-21 09:46:40 -04:00
Router.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
RouterDisplayHelper.java Run automatic Java 8 conversion over codebase 2017-10-10 12:09:41 -04:00