import static org.junit.Assert.assertNull;
import java.io.Closeable;
-
import javax.annotation.Nullable;
-
import org.opendaylight.controller.config.api.ModuleIdentifier;
import org.opendaylight.controller.config.api.RuntimeBeanRegistratorAwareModule;
import org.opendaylight.controller.config.api.runtime.RootRuntimeBeanRegistrator;
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) {
return threadCount;
}
+ @Override
+ public void setThreadCount(int threadCount) {
+ this.threadCount = threadCount;
+ }
+
@Override
public Closeable getInstance() {
assertNotNull(runtimeBeanRegistrator);
this.recreate = recreate;
}
+ @Override
+ public ModuleIdentifier getIdentifier() {
+ return identifier;
+ }
+
+
}