[CORD-2785] Refactor McastHandler and move to separated folder

Change-Id: I1f8ef7d51d57c90c4d29d79fa7e1ac9d0dbd4676
(cherry picked from commit 004d7cf78bf0228e23cbd17d19b2856c339c53e8)
diff --git a/app/src/main/java/org/onosproject/segmentrouting/mcast/McastRole.java b/app/src/main/java/org/onosproject/segmentrouting/mcast/McastRole.java
new file mode 100644
index 0000000..454bb5c
--- /dev/null
+++ b/app/src/main/java/org/onosproject/segmentrouting/mcast/McastRole.java
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2018-present Open Networking Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onosproject.segmentrouting.mcast;
+
+/**
+ * Enum that defines role in the multicast tree.
+ */
+public enum McastRole {
+    /**
+     * The device is the ingress device of this group.
+     */
+    INGRESS,
+    /**
+     * The device is the transit device of this group.
+     */
+    TRANSIT,
+    /**
+     * The device is the egress device of this group.
+     */
+    EGRESS
+}