diff options
author | Jim Hahn <jrh3@att.com> | 2020-01-09 14:34:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-01-09 14:34:54 +0000 |
commit | eaf16c2ca33c67752c71d1e23ebe1fe5f8cc23d7 (patch) | |
tree | af3a7e74a0c1235f7393e3b752768bf7fe8d5e75 /model | |
parent | b358f3bc90fd033044113aa306ac3f1a1de904ed (diff) | |
parent | b2bb847016d780377ea4ff26b389885e9295e7ff (diff) |
Merge "Populate the PdpStatistics data in heartbeat"
Diffstat (limited to 'model')
-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; } |