Search in sources :

Example 1 with DeviceMeterRegistryImpl

use of org.opendaylight.openflowplugin.impl.registry.meter.DeviceMeterRegistryImpl in project openflowplugin by opendaylight.

the class DeviceContextImpl method lazyTransactionManagerInitialization.

@VisibleForTesting
void lazyTransactionManagerInitialization() {
    if (!this.initialized.get()) {
        if (LOG.isDebugEnabled()) {
            LOG.debug("Transaction chain manager for node {} created", deviceInfo);
        }
        this.transactionChainManager = new TransactionChainManager(dataBroker, deviceInfo.getNodeId().getValue());
        this.deviceFlowRegistry = new DeviceFlowRegistryImpl(deviceInfo.getVersion(), dataBroker, deviceInfo.getNodeInstanceIdentifier());
        this.deviceGroupRegistry = new DeviceGroupRegistryImpl();
        this.deviceMeterRegistry = new DeviceMeterRegistryImpl();
    }
    transactionChainManager.activateTransactionManager();
    initialized.set(true);
}
Also used : DeviceGroupRegistryImpl(org.opendaylight.openflowplugin.impl.registry.group.DeviceGroupRegistryImpl) TransactionChainManager(org.opendaylight.openflowplugin.common.txchain.TransactionChainManager) DeviceMeterRegistryImpl(org.opendaylight.openflowplugin.impl.registry.meter.DeviceMeterRegistryImpl) DeviceFlowRegistryImpl(org.opendaylight.openflowplugin.impl.registry.flow.DeviceFlowRegistryImpl) VisibleForTesting(com.google.common.annotations.VisibleForTesting)

Aggregations

VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 TransactionChainManager (org.opendaylight.openflowplugin.common.txchain.TransactionChainManager)1 DeviceFlowRegistryImpl (org.opendaylight.openflowplugin.impl.registry.flow.DeviceFlowRegistryImpl)1 DeviceGroupRegistryImpl (org.opendaylight.openflowplugin.impl.registry.group.DeviceGroupRegistryImpl)1 DeviceMeterRegistryImpl (org.opendaylight.openflowplugin.impl.registry.meter.DeviceMeterRegistryImpl)1