aboutsummaryrefslogtreecommitdiffstats
path: root/services/services-onappf
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2021-02-17 17:19:41 +0000
committerJim Hahn <jrh3@att.com>2021-02-19 20:14:57 +0000
commit0150a629d2f15f3fcaf6a8ed584f64512201b25d (patch)
tree903f7eb89f2374077a1d556ccef7d004b7d53899 /services/services-onappf
parent696db11d54f061664b8b9ddf9a98e2bceb71f289 (diff)
Convert Date to Instant in stats
Issue-ID: POLICY-3069 Change-Id: Ib30782485652ec693d2dbea79514183c7cfbb0c4 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'services/services-onappf')
-rw-r--r--services/services-onappf/src/main/java/org/onap/policy/apex/services/onappf/handler/PdpMessageHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/services-onappf/src/main/java/org/onap/policy/apex/services/onappf/handler/PdpMessageHandler.java b/services/services-onappf/src/main/java/org/onap/policy/apex/services/onappf/handler/PdpMessageHandler.java
index c16f11c9c..4044a4903 100644
--- a/services/services-onappf/src/main/java/org/onap/policy/apex/services/onappf/handler/PdpMessageHandler.java
+++ b/services/services-onappf/src/main/java/org/onap/policy/apex/services/onappf/handler/PdpMessageHandler.java
@@ -20,8 +20,8 @@
package org.onap.policy.apex.services.onappf.handler;
+import java.time.Instant;
import java.util.ArrayList;
-import java.util.Date;
import java.util.List;
import lombok.NonNull;
import org.onap.policy.apex.model.enginemodel.concepts.AxEngineModel;
@@ -130,7 +130,7 @@ public class PdpMessageHandler {
private PdpStatistics getStatistics(final PdpStatus pdpStatusContext, final ApexEngineHandler apexEngineHandler) {
PdpStatistics pdpStatistics = new PdpStatistics();
pdpStatistics.setPdpInstanceId(pdpStatusContext.getName());
- pdpStatistics.setTimeStamp(new Date());
+ pdpStatistics.setTimeStamp(Instant.now());
pdpStatistics.setPdpGroupName(pdpStatusContext.getPdpGroup());
pdpStatistics.setPdpSubGroupName(pdpStatusContext.getPdpSubgroup());
if (apexEngineHandler != null) {