SensorConfig
This commit is contained in:
parent
7104f9415e
commit
1ed4f9cf5d
|
@ -1,63 +1,11 @@
|
|||
package com.loafle.overflow.model.sensorconfig;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* SensorConfig
|
||||
*/
|
||||
public class SensorConfig {
|
||||
private Long id;
|
||||
private String configID;
|
||||
private Target target;
|
||||
private Schedule schedule;
|
||||
private Crawler crawler;
|
||||
private List<Item> items;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
private Long sensorID;
|
||||
|
||||
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;
|
||||
}
|
||||
private SensorConfigSchedule schedule;
|
||||
private SensorConfigCrawler crawler;
|
||||
private SensorConfigConnection connection;
|
||||
private SensorConfigItems items;
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.loafle.overflow.model.sensorconfig;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public class SensorConfigConnection {
|
||||
private String metaIPTypeKey;
|
||||
private String ip;
|
||||
private String metaPortTypeKey;
|
||||
private Integer port;
|
||||
private String metaCryptoTypeKey;
|
||||
private Map<String, String> credentials;
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
package com.loafle.overflow.model.sensorconfig;
|
||||
|
||||
public class SensorConfigCrawler {
|
||||
private String metaCrawlerContainerKey;
|
||||
private String metaCrawlerKey;
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
package com.loafle.overflow.model.sensorconfig;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.loafle.overflow.model.meta.MetaCollectionItem;
|
||||
|
||||
public class SensorConfigItems {
|
||||
private List<MetaCollectionItem> metaCollectionItems;
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package com.loafle.overflow.model.sensorconfig;
|
||||
|
||||
public class SensorConfigSchedule {
|
||||
private Integer interval;
|
||||
}
|
|
@ -1,42 +0,0 @@
|
|||
package com.loafle.overflow.model.sensorconfig;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Target
|
||||
*/
|
||||
public class Target {
|
||||
private Map<String, Object> auth;
|
||||
private Connection connection;
|
||||
private Map<String, Object> meta;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the meta
|
||||
*/
|
||||
public Map<String, Object> getMeta() {
|
||||
return meta;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param meta the meta to set
|
||||
*/
|
||||
public void setMeta(Map<String, Object> meta) {
|
||||
this.meta = meta;
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package com.loafle.overflow.model.sensorconfig;
|
||||
package com.loafle.overflow.model.sensorconfig.old;
|
||||
|
||||
import com.loafle.overflow.model.meta.MetaCryptoType;
|
||||
import com.loafle.overflow.model.meta.MetaIPType;
|
||||
|
@ -58,17 +58,17 @@ public class Connection {
|
|||
this.metaIPType = metaIPType;
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @return the metaCryptoType
|
||||
*/
|
||||
public MetaCryptoType getMetaCryptoType() {
|
||||
public MetaCryptoType getMetaCryptoType() {
|
||||
return metaCryptoType;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @param metaCryptoType the metaCryptoType to set
|
||||
*/
|
||||
public void setMetaCryptoType(MetaCryptoType metaCryptoType) {
|
||||
public void setMetaCryptoType(MetaCryptoType metaCryptoType) {
|
||||
this.metaCryptoType = metaCryptoType;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package com.loafle.overflow.model.sensorconfig;
|
||||
package com.loafle.overflow.model.sensorconfig.old;
|
||||
|
||||
/**
|
||||
* Crawler
|
|
@ -1,4 +1,4 @@
|
|||
package com.loafle.overflow.model.sensorconfig;
|
||||
package com.loafle.overflow.model.sensorconfig.old;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.loafle.overflow.model.sensorconfig;
|
||||
package com.loafle.overflow.model.sensorconfig.old;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
|
@ -1,4 +1,4 @@
|
|||
package com.loafle.overflow.model.sensorconfig;
|
||||
package com.loafle.overflow.model.sensorconfig.old;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.loafle.overflow.model.sensorconfig;
|
||||
package com.loafle.overflow.model.sensorconfig.old;
|
||||
|
||||
import java.util.Map;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.loafle.overflow.model.sensorconfig;
|
||||
package com.loafle.overflow.model.sensorconfig.old;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
|
@ -1,4 +1,4 @@
|
|||
package com.loafle.overflow.model.sensorconfig;
|
||||
package com.loafle.overflow.model.sensorconfig.old;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
|
@ -1,4 +1,4 @@
|
|||
package com.loafle.overflow.model.sensorconfig;
|
||||
package com.loafle.overflow.model.sensorconfig.old;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
|
@ -1,4 +1,4 @@
|
|||
package com.loafle.overflow.model.sensorconfig;
|
||||
package com.loafle.overflow.model.sensorconfig.old;
|
||||
|
||||
/**
|
||||
* Schedule
|
|
@ -0,0 +1,8 @@
|
|||
package com.loafle.overflow.model.sensorconfig.old;
|
||||
|
||||
public class Target {
|
||||
// private Map<String, Object> auth;
|
||||
// private Connection connection;
|
||||
// private Map<String, Object> meta;
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user