use of org.opendaylight.controller.md.sal.dom.store.impl.jmx.InMemoryDataStoreStats in project controller by opendaylight.
the class InMemoryOperationalDataStoreProviderModule method createInstance.
@Override
public java.lang.AutoCloseable createInstance() {
InMemoryDOMDataStore dataStore = InMemoryDOMDataStoreFactory.create("DOM-OPER", LogicalDatastoreType.OPERATIONAL, getSchemaServiceDependency(), getDebugTransactions(), InMemoryDOMDataStoreConfigProperties.create(getMaxDataChangeExecutorPoolSize(), getMaxDataChangeExecutorQueueSize(), getMaxDataChangeListenerQueueSize(), getMaxDataStoreExecutorQueueSize()));
InMemoryDataStoreStats statsBean = new InMemoryDataStoreStats("InMemoryOperationalDataStore", dataStore);
dataStore.setCloseable(statsBean);
return dataStore;
}
use of org.opendaylight.controller.md.sal.dom.store.impl.jmx.InMemoryDataStoreStats in project controller by opendaylight.
the class InMemoryConfigDataStoreProviderModule method createInstance.
@Override
public java.lang.AutoCloseable createInstance() {
InMemoryDOMDataStore dataStore = InMemoryDOMDataStoreFactory.create("DOM-CFG", LogicalDatastoreType.CONFIGURATION, getSchemaServiceDependency(), getDebugTransactions(), InMemoryDOMDataStoreConfigProperties.create(getMaxDataChangeExecutorPoolSize(), getMaxDataChangeExecutorQueueSize(), getMaxDataChangeListenerQueueSize(), getMaxDataStoreExecutorQueueSize()));
InMemoryDataStoreStats statsBean = new InMemoryDataStoreStats("InMemoryConfigDataStore", dataStore);
dataStore.setCloseable(statsBean);
return dataStore;
}
Aggregations