Implement event listeners of the FlowManager.
- This commit adds two types of event objects: FlowBatchStateChangedEvent and FlowStatesChangedEvent.
- Listeners for these objects are defined by FlowManagerListener interface.
- FlowBatchStateChangedEvent notifies state changes of the flow batch operation.
-- The state is defined by FlowBatchState.
- FlowStatesChangedEvent notifies state changes of the set of Flow objects.
-- The state is defined by FlowState.
- This task is a part of ONOS-1739.
Change-Id: Ie8b3bb1c58dbe6bc608936e4a269e1de12dee96c
diff --git a/src/main/java/net/onrc/onos/api/flowmanager/FlowManagerListener.java b/src/main/java/net/onrc/onos/api/flowmanager/FlowManagerListener.java
new file mode 100644
index 0000000..0e70867
--- /dev/null
+++ b/src/main/java/net/onrc/onos/api/flowmanager/FlowManagerListener.java
@@ -0,0 +1,20 @@
+package net.onrc.onos.api.flowmanager;
+
+/**
+ * An interface to the FlowManager's listener.
+ */
+public interface FlowManagerListener {
+ /**
+ * Handles flow state changes.
+ *
+ * @param event the state changes of the flow objects
+ */
+ public void flowStatesChanged(FlowStatesChangedEvent event);
+
+ /**
+ * Handles flow batch operation's state changes.
+ *
+ * @param event the state changes of the flow batch operations
+ */
+ public void flowBatchStateChanged(FlowBatchStateChangedEvent event);
+}