discovery
This commit is contained in:
parent
890f37d968
commit
0f6e0a1e1b
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user