Remove unused import
This commit is contained in:
parent
4b3a0bedd4
commit
c5a1e49e60
@ -1,9 +1,5 @@
|
|||||||
package ch.hevs.isi.core;
|
package ch.hevs.isi.core;
|
||||||
|
|
||||||
import ch.hevs.isi.db.DatabaseConnector;
|
|
||||||
import ch.hevs.isi.field.FieldConnector;
|
|
||||||
import ch.hevs.isi.web.WebConnector;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public class DatabaseConnector implements DataPointListener {
|
|||||||
private URL urlForWrite = null; // URL of the InfluxDB server
|
private URL urlForWrite = null; // URL of the InfluxDB server
|
||||||
private HttpURLConnection con = null; // Connection to the InfluxDB server
|
private HttpURLConnection con = null; // Connection to the InfluxDB server
|
||||||
private boolean initialized = false; // Boolean to know if the database connector is initialized
|
private boolean initialized = false; // Boolean to know if the database connector is initialized
|
||||||
private TimeManager _timeManager = new TimeManager(3); // Time manager to manage the time of the data points
|
private final TimeManager _timeManager = new TimeManager(3); // Time manager to manage the time of the data points
|
||||||
private long _timestamp = 0; // Timestamp of the data points
|
private long _timestamp = 0; // Timestamp of the data points
|
||||||
String default_token = System.getenv("SECRET_TOKEN"); // Token to access the InfluxDB server
|
String default_token = System.getenv("SECRET_TOKEN"); // Token to access the InfluxDB server
|
||||||
public static String url = null; // URL of the InfluxDB server
|
public static String url = null; // URL of the InfluxDB server
|
||||||
@ -132,7 +132,7 @@ public class DatabaseConnector implements DataPointListener {
|
|||||||
*/
|
*/
|
||||||
private void pushToDatabase(DataPoint dp) {
|
private void pushToDatabase(DataPoint dp) {
|
||||||
// Initialize the database connector if not already done
|
// Initialize the database connector if not already done
|
||||||
if(initialized == false){
|
if(!initialized){
|
||||||
initialize(null);
|
initialize(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@ package ch.hevs.isi.field;
|
|||||||
|
|
||||||
import ch.hevs.isi.core.DataPoint;
|
import ch.hevs.isi.core.DataPoint;
|
||||||
import ch.hevs.isi.core.DataPointListener;
|
import ch.hevs.isi.core.DataPointListener;
|
||||||
import ch.hevs.isi.core.FloatDataPoint;
|
|
||||||
|
|
||||||
public class FieldConnector implements DataPointListener {
|
public class FieldConnector implements DataPointListener {
|
||||||
|
|
||||||
|
@ -1,15 +1,10 @@
|
|||||||
import ch.hevs.isi.MinecraftController;
|
import ch.hevs.isi.MinecraftController;
|
||||||
import ch.hevs.isi.core.BooleanDataPoint;
|
import ch.hevs.isi.core.BooleanDataPoint;
|
||||||
import ch.hevs.isi.core.DataPoint;
|
|
||||||
import ch.hevs.isi.core.FloatDataPoint;
|
import ch.hevs.isi.core.FloatDataPoint;
|
||||||
import ch.hevs.isi.db.DatabaseConnector;
|
import ch.hevs.isi.db.DatabaseConnector;
|
||||||
import ch.hevs.isi.field.FieldConnector;
|
import ch.hevs.isi.field.FieldConnector;
|
||||||
import ch.hevs.isi.web.WebConnector;
|
import ch.hevs.isi.web.WebConnector;
|
||||||
|
|
||||||
import java.io.FileInputStream;
|
|
||||||
import java.io.InputStream;
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
public class Database {
|
public class Database {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
MinecraftController.ERASE_PREVIOUS_DATA_INB_DB = true;
|
MinecraftController.ERASE_PREVIOUS_DATA_INB_DB = true;
|
||||||
|
Reference in New Issue
Block a user