/**
* A RLOC in the mapping service with it's properties.
*/
-public class MappingServiceRLOCGroup {
+public class RLOCGroup {
private List<LocatorRecord> records;
private int ttl;
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;
return records;
}
- public MappingServiceRLOCGroup addRecord(LocatorRecord record) {
+ public RLOCGroup addRecord(LocatorRecord record) {
this.records.add(record);
return this;
}
return ttl;
}
- public MappingServiceRLOCGroup setTtl(int ttl) {
+ public RLOCGroup setTtl(int ttl) {
this.ttl = ttl;
return this;
}
return action;
}
- public MappingServiceRLOCGroup setAction(Action action) {
+ public RLOCGroup setAction(Action action) {
this.action = action;
return this;
}
return authoritative;
}
- public MappingServiceRLOCGroup setAuthoritative(boolean authoritative) {
+ public RLOCGroup setAuthoritative(boolean authoritative) {
this.authoritative = authoritative;
return this;
}
return registerdDate;
}
- public MappingServiceRLOCGroup setRegisterdDate(Date registerdDate) {
+ public RLOCGroup setRegisterdDate(Date registerdDate) {
this.registerdDate = registerdDate;
return this;
}
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)