Merge "BUG-2218: Keep existing link augmentations during discovery process"
[controller.git] / opendaylight / config / config-manager / src / test / java / org / opendaylight / controller / config / manager / testingservices / scheduledthreadpool / TestingScheduledThreadPoolModule.java
index 4716d589f1c0b5fc4894ee3d0e0f983957b4cd60..2b9760cfc4e922fe8663bfd653bc285fc3c1bc4b 100644 (file)
@@ -30,30 +30,25 @@ public class TestingScheduledThreadPoolModule implements Module,
         RuntimeBeanRegistratorAwareModule,
         TestingScheduledThreadPoolServiceInterface {
 
-    private final ModuleIdentifier name;
+    private final ModuleIdentifier identifier;
     @Nullable
     private final AutoCloseable oldCloseable;
     @Nullable
     private final TestingScheduledThreadPoolImpl oldInstance;
 
-    private final int threadCount = 10;
+    private int threadCount = 10;
     private TestingScheduledThreadPoolImpl instance;
     private RootRuntimeBeanRegistrator runtimeBeanRegistrator;
     private boolean recreate;
 
-    public TestingScheduledThreadPoolModule(ModuleIdentifier name,
+    public TestingScheduledThreadPoolModule(ModuleIdentifier identifier,
             @Nullable AutoCloseable oldCloseable,
             @Nullable TestingScheduledThreadPoolImpl oldInstance) {
-        this.name = name;
+        this.identifier = identifier;
         this.oldCloseable = oldCloseable;
         this.oldInstance = oldInstance;
     }
 
-    @Override
-    public ModuleIdentifier getName() {
-        return name;
-    }
-
     @Override
     public void setRuntimeBeanRegistrator(
             RootRuntimeBeanRegistrator runtimeBeanRegistrator) {
@@ -73,6 +68,11 @@ public class TestingScheduledThreadPoolModule implements Module,
         return threadCount;
     }
 
+    @Override
+    public void setThreadCount(int threadCount) {
+        this.threadCount = threadCount;
+    }
+
     @Override
     public Closeable getInstance() {
         assertNotNull(runtimeBeanRegistrator);
@@ -108,4 +108,10 @@ public class TestingScheduledThreadPoolModule implements Module,
         this.recreate = recreate;
     }
 
+    @Override
+    public ModuleIdentifier getIdentifier() {
+        return identifier;
+    }
+
+
 }