diff options
author | Jim Hahn <jrh3@att.com> | 2019-07-10 17:00:11 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2019-07-10 17:17:22 -0400 |
commit | affd783174f1fe5b92dc54a69388f9bb8bde1d88 (patch) | |
tree | 616b004f508faa9646b08a901788802e52294ec1 /feature-state-management/src/main | |
parent | a593d0931f9a5785572bb52c5dfae32faa5d8116 (diff) |
Fix checkstyle issues in feature-state-management
Also deleted the checkstyle suppression file.
Change-Id: I41adf8c09fe0613134876976c6aadd193e38fbaa
Issue-ID: POLICY-1905
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'feature-state-management/src/main')
-rw-r--r-- | feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DbAudit.java | 6 | ||||
-rw-r--r-- | feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DroolsPdpIntegrityMonitor.java (renamed from feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DroolsPDPIntegrityMonitor.java) | 16 | ||||
-rw-r--r-- | feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/IntegrityMonitorRestManager.java | 6 | ||||
-rw-r--r-- | feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/RepositoryAudit.java | 6 | ||||
-rw-r--r-- | feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/StateManagementFeature.java | 8 |
5 files changed, 21 insertions, 21 deletions
diff --git a/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DbAudit.java b/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DbAudit.java index 108ee6b0..b34d64e6 100644 --- a/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DbAudit.java +++ b/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DbAudit.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * feature-state-management * ================================================================================ - * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017-2019 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. @@ -33,7 +33,7 @@ import org.slf4j.LoggerFactory; /** This class audits the database. */ -public class DbAudit extends DroolsPDPIntegrityMonitor.AuditBase { +public class DbAudit extends DroolsPdpIntegrityMonitor.AuditBase { // get an instance of logger private static Logger logger = LoggerFactory.getLogger(DbAudit.class); // single global instance of this audit object @@ -66,7 +66,7 @@ public class DbAudit extends DroolsPDPIntegrityMonitor.AuditBase { * Get the instance. * * @return the single 'DbAudit' instance. */ - public static DroolsPDPIntegrityMonitor.AuditBase getInstance() { + public static DroolsPdpIntegrityMonitor.AuditBase getInstance() { return instance; } diff --git a/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DroolsPDPIntegrityMonitor.java b/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DroolsPdpIntegrityMonitor.java index a0b709b5..1e528b2d 100644 --- a/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DroolsPDPIntegrityMonitor.java +++ b/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DroolsPdpIntegrityMonitor.java @@ -36,15 +36,15 @@ import org.slf4j.LoggerFactory; * This class extends 'IntegrityMonitor' for use in the 'Drools PDP' virtual machine. The included * audits are 'Database' and 'Repository'. */ -public class DroolsPDPIntegrityMonitor extends IntegrityMonitor { +public class DroolsPdpIntegrityMonitor extends IntegrityMonitor { private static final String INVALID_PROPERTY_VALUE = "init: property {} does not have the expected value of {}"; // get an instance of logger - private static final Logger logger = LoggerFactory.getLogger(DroolsPDPIntegrityMonitor.class); + private static final Logger logger = LoggerFactory.getLogger(DroolsPdpIntegrityMonitor.class); // static global instance - private static DroolsPDPIntegrityMonitor im = null; + private static DroolsPdpIntegrityMonitor im = null; // list of audits to run private static AuditBase[] audits = new AuditBase[] {DbAudit.getInstance(), RepositoryAudit.getInstance()}; @@ -61,7 +61,7 @@ public class DroolsPDPIntegrityMonitor extends IntegrityMonitor { * @param properties properties used locally, as well as by 'IntegrityMonitor' * @throws IntegrityMonitorException (passed from superclass) */ - private DroolsPDPIntegrityMonitor(String resourceName, Properties consolidatedProperties) + private DroolsPdpIntegrityMonitor(String resourceName, Properties consolidatedProperties) throws IntegrityMonitorException { super(resourceName, consolidatedProperties); } @@ -85,7 +85,7 @@ public class DroolsPDPIntegrityMonitor extends IntegrityMonitor { * * @throws IntegrityMonitorException exception */ - public static DroolsPDPIntegrityMonitor init(String configDir) throws IntegrityMonitorException { + public static DroolsPdpIntegrityMonitor init(String configDir) throws IntegrityMonitorException { logger.info("init: Entering and invoking PropertyUtil.getProperties() on '{}'", configDir); @@ -150,11 +150,11 @@ public class DroolsPDPIntegrityMonitor extends IntegrityMonitor { * @return monitor object * @throws IntegrityMonitorException exception */ - private static DroolsPDPIntegrityMonitor makeMonitor(String resourceName, Properties properties) + private static DroolsPdpIntegrityMonitor makeMonitor(String resourceName, Properties properties) throws IntegrityMonitorException { try { - return new DroolsPDPIntegrityMonitor(resourceName, properties); + return new DroolsPdpIntegrityMonitor(resourceName, properties); } catch (Exception e) { throw new IntegrityMonitorException(e); @@ -426,7 +426,7 @@ public class DroolsPDPIntegrityMonitor extends IntegrityMonitor { * @return DroolsPDPIntegrityMonitor object * @throws IntegrityMonitorException exception */ - public static DroolsPDPIntegrityMonitor getInstance() throws IntegrityMonitorException { + public static DroolsPdpIntegrityMonitor getInstance() throws IntegrityMonitorException { if (logger.isDebugEnabled()) { logger.debug("getInstance() called"); } diff --git a/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/IntegrityMonitorRestManager.java b/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/IntegrityMonitorRestManager.java index 77c188d0..7dca9e63 100644 --- a/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/IntegrityMonitorRestManager.java +++ b/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/IntegrityMonitorRestManager.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * feature-state-management * ================================================================================ - * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017-2019 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. @@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory; @Path("/") public class IntegrityMonitorRestManager { private static Logger logger = LoggerFactory.getLogger(IntegrityMonitorRestManager.class); - private DroolsPDPIntegrityMonitor im; + private DroolsPdpIntegrityMonitor im; /** * Test interface for Integrity Monitor. @@ -78,7 +78,7 @@ public class IntegrityMonitorRestManager { if (im == null) { try { - im = DroolsPDPIntegrityMonitor.getInstance(); + im = DroolsPdpIntegrityMonitor.getInstance(); } catch (Exception e) { logger.error("IntegrityMonitorRestManager: test() interface caught an exception", e); body.append("\nException: " + e + "\n"); diff --git a/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/RepositoryAudit.java b/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/RepositoryAudit.java index 92ec2ac0..e78b0a1a 100644 --- a/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/RepositoryAudit.java +++ b/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/RepositoryAudit.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * feature-state-management * ================================================================================ - * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017-2019 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. @@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory; /** * This class audits the Maven repository. */ -public class RepositoryAudit extends DroolsPDPIntegrityMonitor.AuditBase { +public class RepositoryAudit extends DroolsPdpIntegrityMonitor.AuditBase { private static final long DEFAULT_TIMEOUT = 60; //timeout in 60 seconds // get an instance of logger @@ -59,7 +59,7 @@ public class RepositoryAudit extends DroolsPDPIntegrityMonitor.AuditBase { * * @return the single 'RepositoryAudit' instance */ - public static DroolsPDPIntegrityMonitor.AuditBase getInstance() { + public static DroolsPdpIntegrityMonitor.AuditBase getInstance() { return instance; } diff --git a/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/StateManagementFeature.java b/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/StateManagementFeature.java index 94f35409..be9cc53c 100644 --- a/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/StateManagementFeature.java +++ b/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/StateManagementFeature.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * feature-state-management * ================================================================================ - * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017-2019 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. @@ -49,7 +49,7 @@ public class StateManagementFeature implements StateManagementFeatureAPI, private static final Logger logger = LoggerFactory.getLogger(StateManagementFeature.class); - private DroolsPDPIntegrityMonitor droolsPdpIntegrityMonitor = null; + private DroolsPdpIntegrityMonitor droolsPdpIntegrityMonitor = null; private StateManagement stateManagement = null; public StateManagementFeature() { @@ -62,7 +62,7 @@ public class StateManagementFeature implements StateManagementFeatureAPI, logger.debug("StateManagementFeature.globalInit({}) entry", configDir); try { - droolsPdpIntegrityMonitor = DroolsPDPIntegrityMonitor.init(configDir); + droolsPdpIntegrityMonitor = DroolsPdpIntegrityMonitor.init(configDir); } catch (Exception e) { logger.debug("DroolsPDPIntegrityMonitor initialization exception: ", e); logger.error("DroolsPDPIntegrityMonitor.init()", e); @@ -72,7 +72,7 @@ public class StateManagementFeature implements StateManagementFeatureAPI, //At this point the DroolsPDPIntegrityMonitor instance must exist. Let's check it. try { - droolsPdpIntegrityMonitor = DroolsPDPIntegrityMonitor.getInstance(); + droolsPdpIntegrityMonitor = DroolsPdpIntegrityMonitor.getInstance(); stateManagement = droolsPdpIntegrityMonitor.getStateManager(); if (stateManagement == null) { |