Note: Running all stats for all device statistics in one time is
realy not good idea. So we'd like to bring a possibility for
scalable statistics aproach (one stat in one device in one time).
* remove gatherDynamicData(MultipartType multipartType) method
Change-Id: I3078cfe871b28fd11c09b7001f783b8e2cfbaa0d
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
package org.opendaylight.openflowplugin.api.openflow.statistics;
import com.google.common.util.concurrent.ListenableFuture;
-import javax.annotation.CheckForNull;
import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.MultipartType;
/**
* Created by Martin Bobak <mbobak@cisco.com> on 27.2.2015.
ListenableFuture<Boolean> gatherDynamicData();
- ListenableFuture<Boolean> gatherDynamicData(@CheckForNull MultipartType multipartType);
-
}
return settableStatResultFuture;
}
- @Override
- public ListenableFuture<Boolean> gatherDynamicData(final MultipartType multipartType) {
- Preconditions.checkArgument(multipartType != null);
- final ListenableFuture<Boolean> resultingFuture = deviceConnectionCheck();
- if (resultingFuture != null) {
- return resultingFuture;
- }
- return choiseStat(multipartType);
- }
-
private ListenableFuture<Boolean> choiseStat(final MultipartType multipartType) {
switch (multipartType) {
case OFPMPFLOW: