Correct style issues 85/76085/1
authorMarco Platania <platania@research.att.com>
Mon, 21 Jan 2019 16:21:08 +0000 (11:21 -0500)
committerMarco Platania <platania@research.att.com>
Mon, 21 Jan 2019 16:21:08 +0000 (11:21 -0500)
Change-Id: Icadd241369437b6c1e868285f79b31be2d730871
Issue-ID: INT-824
Signed-off-by: Marco Platania <platania@research.att.com>
vnfs/honeycomb_plugin/parent-pom/pom.xml
vnfs/honeycomb_plugin/stream-count/stream-count-api/pom.xml
vnfs/honeycomb_plugin/stream-count/stream-count-impl/pom.xml
vnfs/honeycomb_plugin/stream-count/stream-count-impl/src/main/java/io/fd/honeycomb/lcmapi/write/ElementCustomizer.java

index b87f8a3..eb84104 100644 (file)
@@ -27,7 +27,7 @@
     <groupId>org.onap.demo.vnf</groupId>
     <artifactId>demo-aggregator</artifactId>
     <version>1.4.0-SNAPSHOT</version>
-    <relativePath>../../../../pom.xml</relativePath>
+    <relativePath>../../../pom.xml</relativePath>
 </parent>
 
     <properties>
index 52c82fe..3bc79ad 100644 (file)
@@ -59,7 +59,7 @@
       <artifactId>yang-ext</artifactId>
     </dependency>
   </dependencies>
+
   <build>
     <plugins>
       <plugin>
index f04cb9b..25d6d76 100644 (file)
@@ -72,7 +72,7 @@
             <version>${guice.version}</version>
         </dependency>
     </dependencies>
-    
+
   <build>
     <plugins>
       <plugin>
index 92a4cfe..740ffdf 100644 (file)
@@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory;
 
 public final class ElementCustomizer implements WriterCustomizer<Streams> {
 
-       private static final Logger LOG = LoggerFactory.getLogger(ElementCustomizer.class);
+    private static final Logger LOG = LoggerFactory.getLogger(ElementCustomizer.class);
 
     private final CrudService<Streams> crudService;
 
@@ -55,10 +55,11 @@ public final class ElementCustomizer implements WriterCustomizer<Streams> {
         //invoked by PUT operation,if provided data doesn't exist in Config data
         crudService.writeData(id, dataAfter);
         try {
-               runScript(dataAfter.getActiveStreams().getValue());
+            runScript(dataAfter.getActiveStreams().getValue());
         }
         catch (IOException e) {
-            LOG.error("Write operation failed: " + e);
+            String message = "Write operation failed " + e;
+            LOG.error(message);
         }
     }
 
@@ -67,13 +68,14 @@ public final class ElementCustomizer implements WriterCustomizer<Streams> {
                                         @Nonnull final Streams dataBefore,
                                         @Nonnull final Streams dataAfter, @Nonnull final WriteContext writeContext)
             throws WriteFailedException {
-       //invoked by PUT operation,if provided data does exist in Config data
-       crudService.updateData(id, dataBefore, dataAfter);
-       try {
-               runScript(dataAfter.getActiveStreams().getValue());
+        //invoked by PUT operation,if provided data does exist in Config data
+        crudService.updateData(id, dataBefore, dataAfter);
+        try {
+            runScript(dataAfter.getActiveStreams().getValue());
         }
         catch (IOException e) {
-            LOG.error("Update operation failed: " + e);
+            String message = "Write operation failed " + e;
+            LOG.error(message);
         }
     }
 
@@ -90,7 +92,7 @@ public final class ElementCustomizer implements WriterCustomizer<Streams> {
     //Update the number of running streams running a custom script that uses the old vPacketGen REST APIs
     private void runScript(long streams) throws IOException {
 
-       String script = new String("bash /opt/update_running_streams.sh " + streams);
+        String script = new String("bash /opt/update_running_streams.sh " + streams);
         Runtime.getRuntime().exec(script);
         String message = "Number of running streams updated to " + streams;
         LOG.info(message);