diff options
author | shaoqiu <tim.huang@est.tech> | 2019-12-13 15:10:29 +0800 |
---|---|---|
committer | shaoqiu <tim.huang@est.tech> | 2020-01-08 10:11:17 +0800 |
commit | b2bb847016d780377ea4ff26b389885e9295e7ff (patch) | |
tree | 559cff3b4d638ae3a9cd91ea7e4d092a1ebe371a /model/engine-model/src/main | |
parent | 79a7ee5e295a5661b12f250495dbe311c8816107 (diff) |
Populate the PdpStatistics data in heartbeat
Apex to populate the PdpStatistics data in every heartbeat sent to PAP
Issue-ID: POLICY-2302
Change-Id: I2d3a6c1e8605d53bf754a135980527bd50762abd
Signed-off-by: shaoqiu <tim.huang@est.tech>
Diffstat (limited to 'model/engine-model/src/main')
-rw-r--r-- | model/engine-model/src/main/java/org/onap/policy/apex/model/enginemodel/concepts/AxEngineStats.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/model/engine-model/src/main/java/org/onap/policy/apex/model/enginemodel/concepts/AxEngineStats.java b/model/engine-model/src/main/java/org/onap/policy/apex/model/enginemodel/concepts/AxEngineStats.java index a66274431..d01da460b 100644 --- a/model/engine-model/src/main/java/org/onap/policy/apex/model/enginemodel/concepts/AxEngineStats.java +++ b/model/engine-model/src/main/java/org/onap/policy/apex/model/enginemodel/concepts/AxEngineStats.java @@ -1,7 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2016-2018 Ericsson. All rights reserved. - * Modifications Copyright (C) 2019 Nordix Foundation. + * Modifications Copyright (C) 2019-2020 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,6 +43,7 @@ import org.onap.policy.apex.model.basicmodel.concepts.AxValidationMessage; import org.onap.policy.apex.model.basicmodel.concepts.AxValidationResult; import org.onap.policy.apex.model.basicmodel.concepts.AxValidationResult.ValidationResult; import org.onap.policy.common.utils.validation.Assertions; +import lombok.Getter; /** * This class is a java bean that is used to record statistics on Apex engines as they execute. @@ -87,6 +88,7 @@ public class AxEngineStats extends AxConcept { private long upTime; @Transient + @Getter private transient long lastEnterTime; @Column @@ -294,7 +296,7 @@ public class AxEngineStats extends AxConcept { * * @return the time at which the policy engine was last started */ - private long getLastStart() { + public long getLastStart() { return lastStart; } |