import java.util.concurrent.ExecutorService;
import javax.annotation.Nullable;
import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
-import org.opendaylight.controller.sal.core.api.model.SchemaService;
+import org.opendaylight.mdsal.dom.api.DOMSchemaService;
import org.opendaylight.yangtools.util.concurrent.SpecialExecutors;
/**
}
public static InMemoryDOMDataStore create(final String name,
- @Nullable final SchemaService schemaService) {
+ @Nullable final DOMSchemaService schemaService) {
return create(name, schemaService, null);
}
* @return an InMemoryDOMDataStore instance
*/
public static InMemoryDOMDataStore create(final String name,
- @Nullable final SchemaService schemaService,
+ @Nullable final DOMSchemaService schemaService,
@Nullable final InMemoryDOMDataStoreConfigProperties properties) {
return create(name, LogicalDatastoreType.OPERATIONAL, schemaService, false, properties);
}
- /**
- * Creates an InMemoryDOMDataStore instance.
- *
- * @param name the name of the data store
- * @param schemaService the SchemaService to which to register the data store.
- * @param debugTransactions enable transaction debugging
- * @param properties configuration properties for the InMemoryDOMDataStore instance. If null,
- * default property values are used.
- * @return an InMemoryDOMDataStore instance
- *
- * @deprecated Use {@link #create(String, LogicalDatastoreType, SchemaService, boolean, InMemoryDOMDataStoreConfigProperties)}
- * instead.
- */
- @Deprecated
- public static InMemoryDOMDataStore create(final String name,
- @Nullable final SchemaService schemaService, final boolean debugTransactions,
- @Nullable final InMemoryDOMDataStoreConfigProperties properties) {
- return create(name, LogicalDatastoreType.OPERATIONAL, schemaService, debugTransactions, properties);
- }
-
/**
* Creates an InMemoryDOMDataStore instance.
*
* @return an InMemoryDOMDataStore instance
*/
public static InMemoryDOMDataStore create(final String name, final LogicalDatastoreType type,
- @Nullable final SchemaService schemaService, final boolean debugTransactions,
+ @Nullable final DOMSchemaService schemaService, final boolean debugTransactions,
@Nullable final InMemoryDOMDataStoreConfigProperties properties) {
InMemoryDOMDataStoreConfigProperties actualProperties = properties;
int dclExecutorMaxPoolSize = actualProperties.getMaxDataChangeExecutorPoolSize();
ExecutorService dataChangeListenerExecutor = SpecialExecutors.newBlockingBoundedFastThreadPool(
- dclExecutorMaxPoolSize, dclExecutorMaxQueueSize, name + "-DCL" );
+ dclExecutorMaxPoolSize, dclExecutorMaxQueueSize, name + "-DCL", InMemoryDOMDataStore.class);
final InMemoryDOMDataStore dataStore = new InMemoryDOMDataStore(name, type, dataChangeListenerExecutor,
actualProperties.getMaxDataChangeListenerQueueSize(), debugTransactions);