Search in sources :

Example 6 with StatisticsContext

use of org.opendaylight.openflowplugin.api.openflow.statistics.StatisticsContext in project openflowplugin by opendaylight.

the class StatisticsManagerImpl method close.

@Override
public void close() {
    isStatisticsFullyDisabled = true;
    controlServiceRegistration.close();
    for (StatisticsContext context : contexts.values()) {
        context.close();
    }
    contexts.clear();
}
Also used : StatisticsContext(org.opendaylight.openflowplugin.api.openflow.statistics.StatisticsContext)

Aggregations

StatisticsContext (org.opendaylight.openflowplugin.api.openflow.statistics.StatisticsContext)6 Test (org.junit.Test)3 ChangeStatisticsWorkModeInputBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflowplugin.sm.control.rev150812.ChangeStatisticsWorkModeInputBuilder)3 RpcResult (org.opendaylight.yangtools.yang.common.RpcResult)3 VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 DeviceContext (org.opendaylight.openflowplugin.api.openflow.device.DeviceContext)1 DeviceInfo (org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo)1 ContextChain (org.opendaylight.openflowplugin.api.openflow.lifecycle.ContextChain)1 RoleContext (org.opendaylight.openflowplugin.api.openflow.role.RoleContext)1 RpcContext (org.opendaylight.openflowplugin.api.openflow.rpc.RpcContext)1 MultipartWriterProvider (org.opendaylight.openflowplugin.impl.datastore.MultipartWriterProvider)1