Reorganize mappingservice.implementation
[lispflowmapping.git] / mappingservice / api / src / main / java / org / opendaylight / lispflowmapping / interfaces / dao / RLOCGroup.java
similarity index 83%
rename from mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/dao/MappingServiceRLOCGroup.java
rename to mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/dao/RLOCGroup.java
index 438e867b8ec67930a5ed6727025335f930a09c2e..5707339c5a64fec26dd7d8c33ce021ff0a8a20c3 100644 (file)
@@ -17,7 +17,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.control.plane.rev150314
 /**
  * A RLOC in the mapping service with it's properties.
  */
-public class MappingServiceRLOCGroup {
+public class RLOCGroup {
 
     private List<LocatorRecord> records;
     private int ttl;
@@ -25,11 +25,11 @@ public class MappingServiceRLOCGroup {
     private boolean authoritative;
     private Date registerdDate;
 
-    public MappingServiceRLOCGroup(int ttl, Action action, boolean authoritative) {
+    public RLOCGroup(int ttl, Action action, boolean authoritative) {
         this(ttl, action, authoritative, new Date(System.currentTimeMillis()));
     }
 
-    public MappingServiceRLOCGroup(int ttl, Action action, boolean authoritative, Date registerdDate) {
+    public RLOCGroup(int ttl, Action action, boolean authoritative, Date registerdDate) {
         super();
         this.records = new ArrayList<>();
         this.ttl = ttl;
@@ -42,7 +42,7 @@ public class MappingServiceRLOCGroup {
         return records;
     }
 
-    public MappingServiceRLOCGroup addRecord(LocatorRecord record) {
+    public RLOCGroup addRecord(LocatorRecord record) {
         this.records.add(record);
         return this;
     }
@@ -51,7 +51,7 @@ public class MappingServiceRLOCGroup {
         return ttl;
     }
 
-    public MappingServiceRLOCGroup setTtl(int ttl) {
+    public RLOCGroup setTtl(int ttl) {
         this.ttl = ttl;
         return this;
     }
@@ -60,7 +60,7 @@ public class MappingServiceRLOCGroup {
         return action;
     }
 
-    public MappingServiceRLOCGroup setAction(Action action) {
+    public RLOCGroup setAction(Action action) {
         this.action = action;
         return this;
     }
@@ -69,7 +69,7 @@ public class MappingServiceRLOCGroup {
         return authoritative;
     }
 
-    public MappingServiceRLOCGroup setAuthoritative(boolean authoritative) {
+    public RLOCGroup setAuthoritative(boolean authoritative) {
         this.authoritative = authoritative;
         return this;
     }
@@ -78,7 +78,7 @@ public class MappingServiceRLOCGroup {
         return registerdDate;
     }
 
-    public MappingServiceRLOCGroup setRegisterdDate(Date registerdDate) {
+    public RLOCGroup setRegisterdDate(Date registerdDate) {
         this.registerdDate = registerdDate;
         return this;
     }
@@ -103,7 +103,7 @@ public class MappingServiceRLOCGroup {
             return false;
         if (getClass() != obj.getClass())
             return false;
-        MappingServiceRLOCGroup other = (MappingServiceRLOCGroup) obj;
+        RLOCGroup other = (RLOCGroup) obj;
         if (action != other.action)
             return false;
         if (authoritative != other.authoritative)