This commit is contained in:
geek 2018-04-23 17:39:45 +09:00
parent a9113a6507
commit bc9c8f9848
9 changed files with 203 additions and 2 deletions

View File

@ -1,7 +1,23 @@
package com.loafle.overflow.module.noauthprobe.service;
import com.loafle.overflow.module.core.annotation.ProbeAPI;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.domain.model.Domain;
import com.loafle.overflow.module.noauthprobe.model.NoAuthProbe;
import java.util.List;
/**
* Created by snoop on 17. 6. 28.
*/
public interface NoAuthProbeService {
@ProbeAPI
NoAuthProbe regist(NoAuthProbe noAuthProbe);
@WebappAPI
List<NoAuthProbe> readAllByDomain(Domain domain);
@WebappAPI
List<NoAuthProbe> acceptNoAuthProbe(NoAuthProbe noAuthProbe);
@WebappAPI
List<NoAuthProbe> denyNoauthProbe(NoAuthProbe noAuthProbe);
}

View File

@ -10,4 +10,37 @@ public class Connection {
private int port;
private PortType portType;
private boolean ssl;
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
public PortType getPortType() {
return portType;
}
public void setPortType(PortType portType) {
this.portType = portType;
}
public boolean isSsl() {
return ssl;
}
public void setSsl(boolean ssl) {
this.ssl = ssl;
}
}

View File

@ -6,4 +6,20 @@ package com.loafle.overflow.module.sensorconfig.model;
public class Crawler {
private String name;
private String container;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getContainer() {
return container;
}
public void setContainer(String container) {
this.container = container;
}
}

View File

@ -10,6 +10,22 @@ public class Keys {
private String metric;
private String key;
public String getMetric() {
return metric;
}
public void setMetric(String metric) {
this.metric = metric;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public static Map<String, String> keysToMap(Keys[] keys) {
Map<String, String> map = new HashMap<>();
for (Keys k : keys) {

View File

@ -10,4 +10,36 @@ public class MappingInfo {
private List<String> arrayColumns;
private List<String> keyColumns;
private String valueColumn;
public String getParseDirection() {
return parseDirection;
}
public void setParseDirection(String parseDirection) {
this.parseDirection = parseDirection;
}
public List<String> getArrayColumns() {
return arrayColumns;
}
public void setArrayColumns(List<String> arrayColumns) {
this.arrayColumns = arrayColumns;
}
public List<String> getKeyColumns() {
return keyColumns;
}
public void setKeyColumns(List<String> keyColumns) {
this.keyColumns = keyColumns;
}
public String getValueColumn() {
return valueColumn;
}
public void setValueColumn(String valueColumn) {
this.valueColumn = valueColumn;
}
}

View File

@ -8,4 +8,20 @@ import java.util.Map;
public class QueryInfo {
private String query;
private Map<String, Object> extend;
public String getQuery() {
return query;
}
public void setQuery(String query) {
this.query = query;
}
public Map<String, Object> getExtend() {
return extend;
}
public void setExtend(Map<String, Object> extend) {
this.extend = extend;
}
}

View File

@ -5,4 +5,12 @@ package com.loafle.overflow.module.sensorconfig.model;
*/
public class Schedule {
private String interval;
public String getInterval() {
return interval;
}
public void setInterval(String interval) {
this.interval = interval;
}
}

View File

@ -12,4 +12,52 @@ public class SensorConfig {
private Schedule schedule;
private Crawler crawler;
private List<Item> items;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getConfigID() {
return configID;
}
public void setConfigID(String configID) {
this.configID = configID;
}
public Target getTarget() {
return target;
}
public void setTarget(Target target) {
this.target = target;
}
public Schedule getSchedule() {
return schedule;
}
public void setSchedule(Schedule schedule) {
this.schedule = schedule;
}
public Crawler getCrawler() {
return crawler;
}
public void setCrawler(Crawler crawler) {
this.crawler = crawler;
}
public List<Item> getItems() {
return items;
}
public void setItems(List<Item> items) {
this.items = items;
}
}

View File

@ -8,4 +8,20 @@ import java.util.Map;
public class Target {
private Map<String, Object> auth;
private Connection connection;
public Map<String, Object> getAuth() {
return auth;
}
public void setAuth(Map<String, Object> auth) {
this.auth = auth;
}
public Connection getConnection() {
return connection;
}
public void setConnection(Connection connection) {
this.connection = connection;
}
}