Migrate ntfbenchmark to MDSAL APIs
[controller.git] / benchmark / ntfbenchmark / src / main / java / ntfbenchmark / impl / AbstractNtfbenchProducer.java
index 5dc6618e9c131933a25351a0a794dc6c2e3938a8..e9371cb6654c8a62e61575cc5eaa0da9db16ad54 100644 (file)
@@ -5,12 +5,11 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package ntfbenchmark.impl;
 
 import java.util.ArrayList;
 import java.util.List;
-import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService;
+import org.opendaylight.mdsal.binding.api.NotificationPublishService;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ntfbench.payload.rev150709.Ntfbench;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ntfbench.payload.rev150709.NtfbenchBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ntfbench.payload.rev150709.payload.Payload;
@@ -21,7 +20,12 @@ public abstract class AbstractNtfbenchProducer implements Runnable {
     protected final int iterations;
     protected final Ntfbench ntf;
 
+    protected int ntfOk = 0;
+    protected int ntfError = 0;
+
     /**
+     * Return number of successful notifications.
+     *
      * @return the ntfOk
      */
     public int getNtfOk() {
@@ -29,15 +33,14 @@ public abstract class AbstractNtfbenchProducer implements Runnable {
     }
 
     /**
+     * Return number of unsuccessful notifications.
+     *
      * @return the ntfError
      */
     public int getNtfError() {
         return ntfError;
     }
 
-    protected int ntfOk = 0;
-    protected int ntfError = 0;
-
     public AbstractNtfbenchProducer(final NotificationPublishService publishService, final int iterations,
             final int payloadSize) {
         this.publishService = publishService;