diff options
Diffstat (limited to 'examples/examples-aadm/src/main/java/org')
4 files changed, 25 insertions, 151 deletions
diff --git a/examples/examples-aadm/src/main/java/org/onap/policy/apex/examples/aadm/concepts/ENodeBStatus.java b/examples/examples-aadm/src/main/java/org/onap/policy/apex/examples/aadm/concepts/ENodeBStatus.java index 70af74ab9..650bd82e0 100644 --- a/examples/examples-aadm/src/main/java/org/onap/policy/apex/examples/aadm/concepts/ENodeBStatus.java +++ b/examples/examples-aadm/src/main/java/org/onap/policy/apex/examples/aadm/concepts/ENodeBStatus.java @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,13 +22,19 @@ package org.onap.policy.apex.examples.aadm.concepts; import java.io.Serializable; +import lombok.AccessLevel; +import lombok.Getter; +import lombok.Setter; /** * The Class ENodeBStatus holds the status of an eNodeB in the AADM domain. */ +@Getter +@Setter public class ENodeBStatus implements Serializable { private static final long serialVersionUID = 2852523814242234172L; + @Getter(AccessLevel.NONE) private final String enodeB; private long dosCount = 0; @@ -52,24 +59,6 @@ public class ENodeBStatus implements Serializable { } /** - * Gets the number of Denial Of Service incidents on the eNodeB. - * - * @return the number of Denial Of Service incidents on the eNodeB - */ - public long getDosCount() { - return dosCount; - } - - /** - * Sets the number of Denial Of Service incidents on the eNodeB. - * - * @param incomingDosCount the number of Denial Of Service incidents on the eNodeB - */ - public void setDosCount(final long incomingDosCount) { - this.dosCount = incomingDosCount; - } - - /** * Increment DOS count. * * @return the long @@ -86,22 +75,4 @@ public class ENodeBStatus implements Serializable { public long decrementDosCount() { return --dosCount; } - - /** - * Gets the being probed. - * - * @return the being probed - */ - public boolean getBeingProbed() { - return beingProbed; - } - - /** - * Sets the being probed. - * - * @param beingProbed the being probed - */ - public void setBeingProbed(final boolean beingProbed) { - this.beingProbed = beingProbed; - } } diff --git a/examples/examples-aadm/src/main/java/org/onap/policy/apex/examples/aadm/concepts/ImsiStatus.java b/examples/examples-aadm/src/main/java/org/onap/policy/apex/examples/aadm/concepts/ImsiStatus.java index 4b7def097..74f069dce 100644 --- a/examples/examples-aadm/src/main/java/org/onap/policy/apex/examples/aadm/concepts/ImsiStatus.java +++ b/examples/examples-aadm/src/main/java/org/onap/policy/apex/examples/aadm/concepts/ImsiStatus.java @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,10 +22,15 @@ package org.onap.policy.apex.examples.aadm.concepts; import java.io.Serializable; +import lombok.AccessLevel; +import lombok.Getter; +import lombok.Setter; /** * The Class IMSIStatus holds the status of an IMSI in the AADM domain. */ +@Getter +@Setter public class ImsiStatus implements Serializable { private static final long serialVersionUID = 2852523814242234172L; @@ -34,8 +40,10 @@ public class ImsiStatus implements Serializable { private boolean anomalous = false; private long anomalousTime = TIME_NOT_SET; + @Getter(AccessLevel.NONE) + @Setter(AccessLevel.NONE) private String enodeBId; - private long blackListedTime = TIME_NOT_SET; + private long blacklistedTime = TIME_NOT_SET; private long blockingCount = 0; /** @@ -48,51 +56,6 @@ public class ImsiStatus implements Serializable { } /** - * Gets the IMSI value. - * - * @return the IMSI value - */ - public String getImsi() { - return imsi; - } - - /** - * Gets the anomalous flag. - * - * @return the anomalous flag - */ - public boolean getAnomalous() { - return anomalous; - } - - /** - * Sets the anomalous flag. - * - * @param anomalous the anomalous flag - */ - public void setAnomalous(final boolean anomalous) { - this.anomalous = anomalous; - } - - /** - * Gets the time of the most recent anomolous event. - * - * @return the time of the most recent anomolous event - */ - public long getAnomolousTime() { - return anomalousTime; - } - - /** - * Sets the time of the most recent anomolous event. - * - * @param incomingAnomalousTime the time of the most recent anomolous event - */ - public void setAnomolousTime(final long incomingAnomalousTime) { - this.anomalousTime = incomingAnomalousTime; - } - - /** * Gets the eNodeB ID to which the IMSI is attached. * * @return theeNodeB ID to which the IMSI is attached @@ -120,42 +83,6 @@ public class ImsiStatus implements Serializable { } /** - * Gets the time at which the IMSI was blacklisted. - * - * @return the time at which the IMSI was blacklisted - */ - public long getBlacklistedTime() { - return blackListedTime; - } - - /** - * Sets the time at which the IMSI was blacklisted. - * - * @param incomingBlackListedTime the time at which the IMSI was blacklisted - */ - public void setBlacklistedTime(final long incomingBlackListedTime) { - this.blackListedTime = incomingBlackListedTime; - } - - /** - * Gets the number of times this IMSI was blocked. - * - * @return the number of times this IMSI was blocked - */ - public long getBlockingCount() { - return blockingCount; - } - - /** - * Sets the number of times this IMSI was blocked. - * - * @param blockingCount the number of times this IMSI was blocked - */ - public void setBlockingCount(final long blockingCount) { - this.blockingCount = blockingCount; - } - - /** * Increment the number of times this IMSI was blocked. * * @return the incremented number of times this IMSI was blocked diff --git a/examples/examples-aadm/src/main/java/org/onap/policy/apex/examples/aadm/concepts/IpAddressStatus.java b/examples/examples-aadm/src/main/java/org/onap/policy/apex/examples/aadm/concepts/IpAddressStatus.java index 689865b16..26f2b4110 100644 --- a/examples/examples-aadm/src/main/java/org/onap/policy/apex/examples/aadm/concepts/IpAddressStatus.java +++ b/examples/examples-aadm/src/main/java/org/onap/policy/apex/examples/aadm/concepts/IpAddressStatus.java @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,10 +22,14 @@ package org.onap.policy.apex.examples.aadm.concepts; import java.io.Serializable; +import lombok.Getter; +import lombok.Setter; /** * The Class IPAddressStatus holds the status of an IP address in the AADM domain. */ +@Getter +@Setter public class IpAddressStatus implements Serializable { private static final long serialVersionUID = -7402022458317593252L; @@ -42,33 +47,6 @@ public class IpAddressStatus implements Serializable { } /** - * Gets the IP address. - * - * @return the IP address - */ - public String getIpAddress() { - return ipAddress; - } - - /** - * Gets the IMSI. - * - * @return the imsi - */ - public String getImsi() { - return imsi; - } - - /** - * Sets the IMSI. - * - * @param incomingImsi the imsi - */ - public void setImsi(final String incomingImsi) { - this.imsi = incomingImsi; - } - - /** * Check set IMSI. * * @return true, if check set IMSI diff --git a/examples/examples-aadm/src/main/java/org/onap/policy/apex/examples/aadm/model/AadmDomainModelSaver.java b/examples/examples-aadm/src/main/java/org/onap/policy/apex/examples/aadm/model/AadmDomainModelSaver.java index 492769dad..52edb31a3 100644 --- a/examples/examples-aadm/src/main/java/org/onap/policy/apex/examples/aadm/model/AadmDomainModelSaver.java +++ b/examples/examples-aadm/src/main/java/org/onap/policy/apex/examples/aadm/model/AadmDomainModelSaver.java @@ -2,6 +2,7 @@ * ============LICENSE_START======================================================= * Copyright (C) 2016-2018 Ericsson. All rights reserved. * Modifications Copyright (C) 2019 Nordix Foundation. + * Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,6 +22,8 @@ package org.onap.policy.apex.examples.aadm.model; +import lombok.AccessLevel; +import lombok.NoArgsConstructor; import org.onap.policy.apex.model.basicmodel.concepts.ApexException; import org.onap.policy.apex.model.basicmodel.handling.ApexModelSaver; import org.onap.policy.apex.model.policymodel.concepts.AxPolicyModel; @@ -32,17 +35,12 @@ import org.slf4j.ext.XLoggerFactory; * * @author Liam Fallon (liam.fallon@ericsson.com) */ +@NoArgsConstructor(access = AccessLevel.PRIVATE) public final class AadmDomainModelSaver { // Logger for this class private static final XLogger LOGGER = XLoggerFactory.getXLogger(AadmDomainModelSaver.class); /** - * Private default constructor to prevent subclassing. - */ - private AadmDomainModelSaver() { - } - - /** * Write the AADM model to args[0]. * * @param args Not used |