Preperation for the FloodlightModule implementaion of MatchActionModule.
- Marked MatchActionFloodlightService interface as IFloodlightService.
- MatchActionFloodlightService extends MatchActionService and IFloodlightService.
- Added methods for getting ID generators to MatchActionService.
- Updated to use the MatchActionService in FlowManagerModule.
- This task is a part of ONOS-1730.
Change-Id: I86726939a2af905c378af57a9337c49a2a2425d5
diff --git a/src/main/java/net/onrc/onos/core/matchaction/MatchActionModule.java b/src/main/java/net/onrc/onos/core/matchaction/MatchActionModule.java
index 9ed031c..78e528c 100644
--- a/src/main/java/net/onrc/onos/core/matchaction/MatchActionModule.java
+++ b/src/main/java/net/onrc/onos/core/matchaction/MatchActionModule.java
@@ -5,6 +5,7 @@
import java.util.HashSet;
import java.util.List;
import java.util.Set;
+
import net.onrc.onos.api.flowmanager.ConflictDetectionPolicy;
/**
@@ -12,7 +13,7 @@
* <p>
* TODO: Make all methods thread-safe
*/
-public class MatchActionModule implements MatchActionService {
+public class MatchActionModule implements MatchActionFloodlightService {
private final HashSet<MatchAction> currentOperations = new HashSet<>();
@@ -55,6 +56,20 @@
}
@Override
+ public MatchActionIdGenerator getMatchActionIdGenerator() {
+ // TODO Auto-generated method stub
+ // use MatchActionIdGeneratorWithIdBlockAllocator.
+ return null;
+ }
+
+ @Override
+ public MatchActionOperationsIdGenerator getMatchActionOperationsIdGenerator() {
+ // TODO Auto-generated method stub
+ // use MatchActionOperationsIdGeneratorWithIdBlockAllocator.
+ return null;
+ }
+
+ @Override
public void addEventListener(EventListener listener) {
// TODO Auto-generated method stub