diff --git a/src/main/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeService.java b/src/main/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeService.java index d393c1e..f7769f2 100644 --- a/src/main/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeService.java +++ b/src/main/java/com/loafle/overflow/module/noauthprobe/service/NoAuthProbeService.java @@ -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 readAllByDomain(Domain domain); + @WebappAPI + List acceptNoAuthProbe(NoAuthProbe noAuthProbe); + @WebappAPI + List denyNoauthProbe(NoAuthProbe noAuthProbe); } diff --git a/src/main/java/com/loafle/overflow/module/sensorconfig/model/Connection.java b/src/main/java/com/loafle/overflow/module/sensorconfig/model/Connection.java index ccc8ecd..01ce000 100644 --- a/src/main/java/com/loafle/overflow/module/sensorconfig/model/Connection.java +++ b/src/main/java/com/loafle/overflow/module/sensorconfig/model/Connection.java @@ -10,4 +10,37 @@ public class Connection { private int port; private PortType portType; private boolean ssl; -} \ No newline at end of file + + 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; + } +} + diff --git a/src/main/java/com/loafle/overflow/module/sensorconfig/model/Crawler.java b/src/main/java/com/loafle/overflow/module/sensorconfig/model/Crawler.java index 6dfabe4..92fad2d 100644 --- a/src/main/java/com/loafle/overflow/module/sensorconfig/model/Crawler.java +++ b/src/main/java/com/loafle/overflow/module/sensorconfig/model/Crawler.java @@ -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; + } } diff --git a/src/main/java/com/loafle/overflow/module/sensorconfig/model/Keys.java b/src/main/java/com/loafle/overflow/module/sensorconfig/model/Keys.java index 38a9164..a67fece 100644 --- a/src/main/java/com/loafle/overflow/module/sensorconfig/model/Keys.java +++ b/src/main/java/com/loafle/overflow/module/sensorconfig/model/Keys.java @@ -9,7 +9,23 @@ import java.util.Map; 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 keysToMap(Keys[] keys) { Map map = new HashMap<>(); for (Keys k : keys) { diff --git a/src/main/java/com/loafle/overflow/module/sensorconfig/model/MappingInfo.java b/src/main/java/com/loafle/overflow/module/sensorconfig/model/MappingInfo.java index 918f89b..724bfa7 100644 --- a/src/main/java/com/loafle/overflow/module/sensorconfig/model/MappingInfo.java +++ b/src/main/java/com/loafle/overflow/module/sensorconfig/model/MappingInfo.java @@ -10,4 +10,36 @@ public class MappingInfo { private List arrayColumns; private List keyColumns; private String valueColumn; + + public String getParseDirection() { + return parseDirection; + } + + public void setParseDirection(String parseDirection) { + this.parseDirection = parseDirection; + } + + public List getArrayColumns() { + return arrayColumns; + } + + public void setArrayColumns(List arrayColumns) { + this.arrayColumns = arrayColumns; + } + + public List getKeyColumns() { + return keyColumns; + } + + public void setKeyColumns(List keyColumns) { + this.keyColumns = keyColumns; + } + + public String getValueColumn() { + return valueColumn; + } + + public void setValueColumn(String valueColumn) { + this.valueColumn = valueColumn; + } } \ No newline at end of file diff --git a/src/main/java/com/loafle/overflow/module/sensorconfig/model/QueryInfo.java b/src/main/java/com/loafle/overflow/module/sensorconfig/model/QueryInfo.java index 89691eb..0ce6c53 100644 --- a/src/main/java/com/loafle/overflow/module/sensorconfig/model/QueryInfo.java +++ b/src/main/java/com/loafle/overflow/module/sensorconfig/model/QueryInfo.java @@ -8,4 +8,20 @@ import java.util.Map; public class QueryInfo { private String query; private Map extend; + + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + public Map getExtend() { + return extend; + } + + public void setExtend(Map extend) { + this.extend = extend; + } } \ No newline at end of file diff --git a/src/main/java/com/loafle/overflow/module/sensorconfig/model/Schedule.java b/src/main/java/com/loafle/overflow/module/sensorconfig/model/Schedule.java index bde872a..c355c9f 100644 --- a/src/main/java/com/loafle/overflow/module/sensorconfig/model/Schedule.java +++ b/src/main/java/com/loafle/overflow/module/sensorconfig/model/Schedule.java @@ -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; + } } \ No newline at end of file diff --git a/src/main/java/com/loafle/overflow/module/sensorconfig/model/SensorConfig.java b/src/main/java/com/loafle/overflow/module/sensorconfig/model/SensorConfig.java index 3901983..6097393 100644 --- a/src/main/java/com/loafle/overflow/module/sensorconfig/model/SensorConfig.java +++ b/src/main/java/com/loafle/overflow/module/sensorconfig/model/SensorConfig.java @@ -12,4 +12,52 @@ public class SensorConfig { private Schedule schedule; private Crawler crawler; private List 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 getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } } \ No newline at end of file diff --git a/src/main/java/com/loafle/overflow/module/sensorconfig/model/Target.java b/src/main/java/com/loafle/overflow/module/sensorconfig/model/Target.java index 1f7548f..96790e2 100644 --- a/src/main/java/com/loafle/overflow/module/sensorconfig/model/Target.java +++ b/src/main/java/com/loafle/overflow/module/sensorconfig/model/Target.java @@ -8,4 +8,20 @@ import java.util.Map; public class Target { private Map auth; private Connection connection; + + public Map getAuth() { + return auth; + } + + public void setAuth(Map auth) { + this.auth = auth; + } + + public Connection getConnection() { + return connection; + } + + public void setConnection(Connection connection) { + this.connection = connection; + } } \ No newline at end of file