SensorConfig

This commit is contained in:
insanity 2018-06-29 17:29:42 +09:00
parent 7104f9415e
commit 1ed4f9cf5d
17 changed files with 67 additions and 121 deletions

View File

@ -1,63 +1,11 @@
package com.loafle.overflow.model.sensorconfig; package com.loafle.overflow.model.sensorconfig;
import java.util.List;
/**
* SensorConfig
*/
public class 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() { private Long sensorID;
return id;
}
public void setId(Long id) { private SensorConfigSchedule schedule;
this.id = id; private SensorConfigCrawler crawler;
} private SensorConfigConnection connection;
private SensorConfigItems items;
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

@ -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;
}

View File

@ -0,0 +1,6 @@
package com.loafle.overflow.model.sensorconfig;
public class SensorConfigCrawler {
private String metaCrawlerContainerKey;
private String metaCrawlerKey;
}

View File

@ -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;
}

View File

@ -0,0 +1,5 @@
package com.loafle.overflow.model.sensorconfig;
public class SensorConfigSchedule {
private Integer interval;
}

View File

@ -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;
}
}

View File

@ -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.MetaCryptoType;
import com.loafle.overflow.model.meta.MetaIPType; import com.loafle.overflow.model.meta.MetaIPType;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.model.sensorconfig; package com.loafle.overflow.model.sensorconfig.old;
/** /**
* Crawler * Crawler

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.model.sensorconfig; package com.loafle.overflow.model.sensorconfig.old;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.model.sensorconfig; package com.loafle.overflow.model.sensorconfig.old;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.model.sensorconfig; package com.loafle.overflow.model.sensorconfig.old;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.model.sensorconfig; package com.loafle.overflow.model.sensorconfig.old;
import java.util.Map; import java.util.Map;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.model.sensorconfig; package com.loafle.overflow.model.sensorconfig.old;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.model.sensorconfig; package com.loafle.overflow.model.sensorconfig.old;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.model.sensorconfig; package com.loafle.overflow.model.sensorconfig.old;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.model.sensorconfig; package com.loafle.overflow.model.sensorconfig.old;
/** /**
* Schedule * Schedule

View File

@ -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;
}