/*
* Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.openflowplugin.api.openflow.statistics;
import javax.annotation.Nonnull;
import org.opendaylight.openflowplugin.api.openflow.OFPManager;
import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
import org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo;
/**
* Manager to start or stop scheduling statistics
*/
public interface StatisticsManager extends OFPManager {
/**
* Start scheduling statistic gathering for given device info
* @param deviceInfo for this device should be running statistics gathering
*/
void startScheduling(final DeviceInfo deviceInfo);
/**
* Stop scheduling statistic gathering for given device info
* @param deviceInfo for this device should be stopped statistics gathering
*/
void stopScheduling(final DeviceInfo deviceInfo);
@Override
void close();
void setIsStatisticsPollingOn(boolean isStatisticsPollingOn);
void setBasicTimerDelay(final long basicTimerDelay);
void setMaximumTimerDelay(final long maximumTimerDelay);
StatisticsContext createContext(@Nonnull final DeviceContext deviceContext);
}