diff --git a/src/main/java/com/loafle/overflow/module/discovery/model/Zone.java b/src/main/java/com/loafle/overflow/module/discovery/model/Zone.java new file mode 100644 index 0000000..dd8b9b6 --- /dev/null +++ b/src/main/java/com/loafle/overflow/module/discovery/model/Zone.java @@ -0,0 +1,70 @@ +package com.loafle.overflow.module.discovery.model; + +/** + * Created by snoop on 17. 10. 31. + */ +public class Zone { + private long id; + private String network; + private String ip; + private String iface; + private String mac; + private long firstScanRange; + private long lastScanRange; + + public long getId() { + return id; + } + + public void setId(long id) { + this.id = id; + } + + public String getNetwork() { + return network; + } + + public void setNetwork(String network) { + this.network = network; + } + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public String getIface() { + return iface; + } + + public void setIface(String iface) { + this.iface = iface; + } + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public long getFirstScanRange() { + return firstScanRange; + } + + public void setFirstScanRange(long firstScanRange) { + this.firstScanRange = firstScanRange; + } + + public long getLastScanRange() { + return lastScanRange; + } + + public void setLastScanRange(long lastScanRange) { + this.lastScanRange = lastScanRange; + } +} diff --git a/src/main/java/com/loafle/overflow/module/discovery/service/DiscoveryService.java b/src/main/java/com/loafle/overflow/module/discovery/service/DiscoveryService.java index 99576ef..160a0d0 100644 --- a/src/main/java/com/loafle/overflow/module/discovery/service/DiscoveryService.java +++ b/src/main/java/com/loafle/overflow/module/discovery/service/DiscoveryService.java @@ -34,6 +34,7 @@ public class DiscoveryService { Domain domain = new Domain(); domain.setId(1); +// int typeInt = Integer.valueOf(types); switch (types) { case 1 : messagePublisher.publishToDomain("/web", domain, "DiscoveryService.discoveryIngHost", obj);