From 75b57f9d2b3a31bb8a3d1fbd378803259ed824a2 Mon Sep 17 00:00:00 2001 From: snoop Date: Tue, 24 Apr 2018 20:31:04 +0900 Subject: [PATCH] fixed discovery model --- .../com/loafle/overflow/model/discovery/Host.java | 10 ++++++++++ .../com/loafle/overflow/model/discovery/Port.java | 11 +++++++++++ 2 files changed, 21 insertions(+) diff --git a/src/main/java/com/loafle/overflow/model/discovery/Host.java b/src/main/java/com/loafle/overflow/model/discovery/Host.java index 636968d..d8b14cb 100644 --- a/src/main/java/com/loafle/overflow/model/discovery/Host.java +++ b/src/main/java/com/loafle/overflow/model/discovery/Host.java @@ -2,6 +2,7 @@ package com.loafle.overflow.model.discovery; import java.util.Date; +import java.util.List; /** * Created by root on 17. 6. 4. @@ -19,6 +20,7 @@ public class Host { private boolean target; + private List portList; public long getId() { return id; @@ -75,4 +77,12 @@ public class Host { public void setTarget(boolean target) { this.target = target; } + + public List getPortList() { + return portList; + } + + public void setPortList(List portList) { + this.portList = portList; + } } diff --git a/src/main/java/com/loafle/overflow/model/discovery/Port.java b/src/main/java/com/loafle/overflow/model/discovery/Port.java index 92c7813..0315128 100644 --- a/src/main/java/com/loafle/overflow/model/discovery/Port.java +++ b/src/main/java/com/loafle/overflow/model/discovery/Port.java @@ -3,6 +3,7 @@ package com.loafle.overflow.model.discovery; import com.loafle.overflow.core.type.PortType; import java.util.Date; +import java.util.List; /** * Created by root on 17. 6. 4. @@ -19,6 +20,8 @@ public class Port { private boolean target; + private List serviceList; + public long getId() { return id; } @@ -66,4 +69,12 @@ public class Port { public void setTarget(boolean target) { this.target = target; } + + public List getServiceList() { + return serviceList; + } + + public void setServiceList(List serviceList) { + this.serviceList = serviceList; + } }