stats reply in progress
diff --git a/core/api/src/main/java/org/onlab/onos/net/flow/FlowRuleProvider.java b/core/api/src/main/java/org/onlab/onos/net/flow/FlowRuleProvider.java
index ca22c4f..184479b 100644
--- a/core/api/src/main/java/org/onlab/onos/net/flow/FlowRuleProvider.java
+++ b/core/api/src/main/java/org/onlab/onos/net/flow/FlowRuleProvider.java
@@ -1,6 +1,5 @@
package org.onlab.onos.net.flow;
-import org.onlab.onos.net.DeviceId;
import org.onlab.onos.net.provider.Provider;
/**
@@ -27,13 +26,4 @@
void removeFlowRule(FlowRule... flowRules);
- /**
- * Returns the collection of flow entries currently applied on the given
- * device.
- *
- * @param deviceId device identifier
- * @return collection of flow entries
- */
- Iterable<FlowEntry> getFlowMetrics(DeviceId deviceId);
-
}
diff --git a/core/api/src/main/java/org/onlab/onos/net/flow/FlowRuleProviderService.java b/core/api/src/main/java/org/onlab/onos/net/flow/FlowRuleProviderService.java
index 661b195..dc7b01e2b 100644
--- a/core/api/src/main/java/org/onlab/onos/net/flow/FlowRuleProviderService.java
+++ b/core/api/src/main/java/org/onlab/onos/net/flow/FlowRuleProviderService.java
@@ -29,4 +29,13 @@
*/
void flowAdded(FlowRule flowRule);
+ /**
+ * Pushes the collection of flow entries currently applied on the given
+ * device.
+ *
+ * @param deviceId device identifier
+ * @return collection of flow entries
+ */
+ void pushFlowMetrics(Iterable<FlowEntry> flowEntries);
+
}
diff --git a/core/trivial/src/main/java/org/onlab/onos/net/trivial/flow/impl/SimpleFlowRuleManager.java b/core/trivial/src/main/java/org/onlab/onos/net/trivial/flow/impl/SimpleFlowRuleManager.java
index 7540ec8..30238c4 100644
--- a/core/trivial/src/main/java/org/onlab/onos/net/trivial/flow/impl/SimpleFlowRuleManager.java
+++ b/core/trivial/src/main/java/org/onlab/onos/net/trivial/flow/impl/SimpleFlowRuleManager.java
@@ -1,5 +1,6 @@
package org.onlab.onos.net.trivial.flow.impl;
+import static com.google.common.base.Preconditions.checkNotNull;
import static org.slf4j.LoggerFactory.getLogger;
import java.util.ArrayList;
@@ -28,8 +29,6 @@
import org.onlab.onos.net.provider.AbstractProviderService;
import org.slf4j.Logger;
-import static com.google.common.base.Preconditions.checkNotNull;
-
@Component(immediate = true)
@Service
public class SimpleFlowRuleManager
@@ -111,8 +110,8 @@
}
private class InternalFlowRuleProviderService
- extends AbstractProviderService<FlowRuleProvider>
- implements FlowRuleProviderService {
+ extends AbstractProviderService<FlowRuleProvider>
+ implements FlowRuleProviderService {
protected InternalFlowRuleProviderService(FlowRuleProvider provider) {
super(provider);
@@ -158,6 +157,12 @@
eventDispatcher.post(event);
}
}
+
+ @Override
+ public void pushFlowMetrics(Iterable<FlowEntry> flowEntries) {
+ // TODO Auto-generated method stub
+
+ }
}
}