Skip to content
Snippets Groups Projects
Commit 11c4557a authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

Merge branch 'fix' into 'master'

Fix services

See merge request ghsc/nshmp/nshmp-haz-v2!518
parents 53d09c7f 17d54d1a
No related branches found
No related tags found
1 merge request!518Fix services
Pipeline #37905 passed
...@@ -6,6 +6,8 @@ import java.util.List; ...@@ -6,6 +6,8 @@ import java.util.List;
import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutionException;
import java.util.function.Function; import java.util.function.Function;
import javax.inject.Singleton;
import com.google.common.base.Stopwatch; import com.google.common.base.Stopwatch;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
...@@ -32,6 +34,7 @@ import io.micronaut.http.HttpResponse; ...@@ -32,6 +34,7 @@ import io.micronaut.http.HttpResponse;
* *
* @author U.S. Geological Survey * @author U.S. Geological Survey
*/ */
@Singleton
public final class DeaggEpsilonService { public final class DeaggEpsilonService {
/* Developer notes: See HazardService. */ /* Developer notes: See HazardService. */
......
...@@ -11,6 +11,8 @@ import java.util.Map; ...@@ -11,6 +11,8 @@ import java.util.Map;
import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutionException;
import java.util.function.Function; import java.util.function.Function;
import javax.inject.Singleton;
import com.google.common.base.Stopwatch; import com.google.common.base.Stopwatch;
import gov.usgs.earthquake.nshmp.calc.CalcConfig; import gov.usgs.earthquake.nshmp.calc.CalcConfig;
...@@ -43,6 +45,7 @@ import io.micronaut.http.HttpResponse; ...@@ -43,6 +45,7 @@ import io.micronaut.http.HttpResponse;
* *
* @author U.S. Geological Survey * @author U.S. Geological Survey
*/ */
@Singleton
public final class HazardService { public final class HazardService {
private static final String NAME = "Hazard Service"; private static final String NAME = "Hazard Service";
......
...@@ -6,6 +6,8 @@ import java.util.Optional; ...@@ -6,6 +6,8 @@ import java.util.Optional;
import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutionException;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import javax.inject.Singleton;
import com.google.common.base.Stopwatch; import com.google.common.base.Stopwatch;
import com.google.common.util.concurrent.ListenableFuture; import com.google.common.util.concurrent.ListenableFuture;
...@@ -35,6 +37,7 @@ import io.micronaut.http.HttpResponse; ...@@ -35,6 +37,7 @@ import io.micronaut.http.HttpResponse;
* *
* @author U.S. Geological Survey * @author U.S. Geological Survey
*/ */
@Singleton
public final class RateService { public final class RateService {
/* /*
......
...@@ -15,6 +15,8 @@ import java.util.HashMap; ...@@ -15,6 +15,8 @@ import java.util.HashMap;
import java.util.concurrent.ExecutorService; import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors; import java.util.concurrent.Executors;
import javax.inject.Singleton;
import com.google.common.base.Stopwatch; import com.google.common.base.Stopwatch;
import com.google.common.util.concurrent.ListeningExecutorService; import com.google.common.util.concurrent.ListeningExecutorService;
import com.google.common.util.concurrent.MoreExecutors; import com.google.common.util.concurrent.MoreExecutors;
...@@ -42,6 +44,7 @@ import io.micronaut.runtime.event.annotation.EventListener; ...@@ -42,6 +44,7 @@ import io.micronaut.runtime.event.annotation.EventListener;
* *
* @author U.S. Geological Survey * @author U.S. Geological Survey
*/ */
@Singleton
public class ServletUtil { public class ServletUtil {
public static final Gson GSON; public static final Gson GSON;
......
...@@ -3,6 +3,8 @@ package gov.usgs.earthquake.nshmp.www.services; ...@@ -3,6 +3,8 @@ package gov.usgs.earthquake.nshmp.www.services;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import javax.inject.Singleton;
import com.google.common.base.Stopwatch; import com.google.common.base.Stopwatch;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.GsonBuilder; import com.google.gson.GsonBuilder;
...@@ -25,6 +27,7 @@ import io.micronaut.http.HttpResponse; ...@@ -25,6 +27,7 @@ import io.micronaut.http.HttpResponse;
* *
* @author U.S. Geological Survey * @author U.S. Geological Survey
*/ */
@Singleton
public class SourceServices { public class SourceServices {
private static final String NAME = "Source Model"; private static final String NAME = "Source Model";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment