google-nomulus/java/google/registry/module/backend
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
..
BackendComponent.java Use standard java thread factory instead of the AppEngine flavor 2017-10-24 16:53:47 -04:00
BackendModule.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
BackendRequestComponent.java Move ResaveAllEppResources mapreduce from tools service to backend 2017-09-20 10:27:17 -04:00
BackendRequestHandler.java Remove requireLogin action attribute 2017-06-21 10:04:05 -04:00
BackendServlet.java Use standard java thread factory instead of the AppEngine flavor 2017-10-24 16:53:47 -04:00
BUILD Create ICANN report upload action 2017-07-10 11:27:58 -04:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00