ing
This commit is contained in:
parent
a9113a6507
commit
bc9c8f9848
@ -1,7 +1,23 @@
|
|||||||
package com.loafle.overflow.module.noauthprobe.service;
|
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.
|
* Created by snoop on 17. 6. 28.
|
||||||
*/
|
*/
|
||||||
public interface NoAuthProbeService {
|
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);
|
||||||
}
|
}
|
||||||
|
@ -10,4 +10,37 @@ public class Connection {
|
|||||||
private int port;
|
private int port;
|
||||||
private PortType portType;
|
private PortType portType;
|
||||||
private boolean ssl;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -6,4 +6,20 @@ package com.loafle.overflow.module.sensorconfig.model;
|
|||||||
public class Crawler {
|
public class Crawler {
|
||||||
private String name;
|
private String name;
|
||||||
private String container;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,23 @@ import java.util.Map;
|
|||||||
public class Keys {
|
public class Keys {
|
||||||
private String metric;
|
private String metric;
|
||||||
private String key;
|
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) {
|
public static Map<String, String> keysToMap(Keys[] keys) {
|
||||||
Map<String, String> map = new HashMap<>();
|
Map<String, String> map = new HashMap<>();
|
||||||
for (Keys k : keys) {
|
for (Keys k : keys) {
|
||||||
|
@ -10,4 +10,36 @@ public class MappingInfo {
|
|||||||
private List<String> arrayColumns;
|
private List<String> arrayColumns;
|
||||||
private List<String> keyColumns;
|
private List<String> keyColumns;
|
||||||
private String valueColumn;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
@ -8,4 +8,20 @@ import java.util.Map;
|
|||||||
public class QueryInfo {
|
public class QueryInfo {
|
||||||
private String query;
|
private String query;
|
||||||
private Map<String, Object> extend;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
@ -5,4 +5,12 @@ package com.loafle.overflow.module.sensorconfig.model;
|
|||||||
*/
|
*/
|
||||||
public class Schedule {
|
public class Schedule {
|
||||||
private String interval;
|
private String interval;
|
||||||
|
|
||||||
|
public String getInterval() {
|
||||||
|
return interval;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInterval(String interval) {
|
||||||
|
this.interval = interval;
|
||||||
|
}
|
||||||
}
|
}
|
@ -12,4 +12,52 @@ public class SensorConfig {
|
|||||||
private Schedule schedule;
|
private Schedule schedule;
|
||||||
private Crawler crawler;
|
private Crawler crawler;
|
||||||
private List<Item> items;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
@ -8,4 +8,20 @@ import java.util.Map;
|
|||||||
public class Target {
|
public class Target {
|
||||||
private Map<String, Object> auth;
|
private Map<String, Object> auth;
|
||||||
private Connection connection;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user