discovery

This commit is contained in:
snoop 2017-11-07 11:19:49 +09:00
parent 890f37d968
commit 0f6e0a1e1b
2 changed files with 71 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -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);