diff options
author | Jorge Hernandez <jh1730@att.com> | 2018-08-14 19:36:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-08-14 19:36:43 +0000 |
commit | 6509e95ef278ee141c706cb66fe269e146ef888e (patch) | |
tree | 211756db7c24dab684bcbab8a981ac9361afcc8e /integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java | |
parent | d40823cd9dc76fee6d77963902fd786222ba15a6 (diff) | |
parent | 6505fa1c845c34d59c44a40f87b66ef79f3e911c (diff) |
Merge "Fixes for checkstyle issues"
Diffstat (limited to 'integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java')
-rw-r--r-- | integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java b/integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java index eee77056..9845fc71 100644 --- a/integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java +++ b/integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java @@ -213,7 +213,8 @@ public class IntegrityMonitor { // Did it get created? // if (emf == null) { - logger.error("Error creating IM entity manager factory with persistence unit: {}", factory.getPersistenceUnit()); + logger.error("Error creating IM entity manager factory with persistence unit: {}", + factory.getPersistenceUnit()); throw new IntegrityMonitorException("Unable to create IM Entity Manager Factory"); } @@ -1713,7 +1714,7 @@ public class IntegrityMonitor { try { factory.runStarted(); - while(!stopRequested) { + while (!stopRequested) { MonitorTime.getInstance().sleep(CYCLE_INTERVAL_MILLIS); IntegrityMonitor.this.runOnce(); @@ -1873,7 +1874,7 @@ public class IntegrityMonitor { * Indicates that the {@link FpManager#run()} method has started. This method * simply returns. * - * @throws InterruptedException + * @throws InterruptedException can be interrupted */ public void runStarted() throws InterruptedException { // does nothing @@ -1882,13 +1883,15 @@ public class IntegrityMonitor { /** * Indicates that a monitor activity has completed. This method simply returns. * - * @throws InterruptedException + * @throws InterruptedException can be interrupted */ public void monitorCompleted() throws InterruptedException { // does nothing } /** + * Get persistence unit. + * * @return the persistence unit to be used */ public String getPersistenceUnit() { |