From 0f6e0a1e1bad5ac11e8d8f2428c316a5b8e1d23c Mon Sep 17 00:00:00 2001 From: snoop Date: Tue, 7 Nov 2017 11:19:49 +0900 Subject: [PATCH] discovery --- .../overflow/module/discovery/model/Zone.java | 70 +++++++++++++++++++ .../discovery/service/DiscoveryService.java | 1 + 2 files changed, 71 insertions(+) create mode 100644 src/main/java/com/loafle/overflow/module/discovery/model/Zone.java 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);