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/FlowBatchState.java b/src/main/java/net/onrc/onos/api/flowmanager/FlowBatchState.java
new file mode 100644
index 0000000..fd62a97
--- /dev/null
+++ b/src/main/java/net/onrc/onos/api/flowmanager/FlowBatchState.java
@@ -0,0 +1,27 @@
+package net.onrc.onos.api.flowmanager;
+
+/**
+ * Represents the state of {@link FlowBatchOperation}.
+ */
+public enum FlowBatchState {
+ /**
+ * The operation has been submitted, but the FlowManager is not executing
+ * yet.
+ */
+ SUBMITTED,
+
+ /**
+ * The FlowManager is executing the operation, but not completed yet.
+ */
+ EXECUTING,
+
+ /**
+ * The operation has been executed successfully.
+ */
+ COMPLETED,
+
+ /**
+ * The operation has been failed to be submitted or executed.
+ */
+ FAILED,
+}