* @return an InMemoryDOMDataStore instance
*/
public static InMemoryDOMDataStore create(final String name,
* @return an InMemoryDOMDataStore instance
*/
public static InMemoryDOMDataStore create(final String name,
- return create(name, schemaService, false, properties);
+ return create(name, LogicalDatastoreType.OPERATIONAL, schemaService, false, properties);
* @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
*/
* @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
*/
- public static InMemoryDOMDataStore create(final String name,
- @Nullable final SchemaService schemaService, final boolean debugTransactions,
+ public static InMemoryDOMDataStore create(final String name, final LogicalDatastoreType type,
+ @Nullable final DOMSchemaService schemaService, final boolean debugTransactions,
@Nullable final InMemoryDOMDataStoreConfigProperties properties) {
InMemoryDOMDataStoreConfigProperties actualProperties = properties;
@Nullable final InMemoryDOMDataStoreConfigProperties properties) {
InMemoryDOMDataStoreConfigProperties actualProperties = properties;
int dclExecutorMaxPoolSize = actualProperties.getMaxDataChangeExecutorPoolSize();
ExecutorService dataChangeListenerExecutor = SpecialExecutors.newBlockingBoundedFastThreadPool(
int dclExecutorMaxPoolSize = actualProperties.getMaxDataChangeExecutorPoolSize();
ExecutorService dataChangeListenerExecutor = SpecialExecutors.newBlockingBoundedFastThreadPool(
- dclExecutorMaxPoolSize, dclExecutorMaxQueueSize, name + "-DCL" );
+ dclExecutorMaxPoolSize, dclExecutorMaxQueueSize, name + "-DCL", InMemoryDOMDataStore.class);
- final ListeningExecutorService commitExecutor = MoreExecutors.sameThreadExecutor();
- final InMemoryDOMDataStore dataStore = new InMemoryDOMDataStore(name,
- commitExecutor, dataChangeListenerExecutor,
+ final InMemoryDOMDataStore dataStore = new InMemoryDOMDataStore(name, type, dataChangeListenerExecutor,
actualProperties.getMaxDataChangeListenerQueueSize(), debugTransactions);
if (schemaService != null) {
actualProperties.getMaxDataChangeListenerQueueSize(), debugTransactions);
if (schemaService != null) {