private void createDatabaseIfNotExistent(){
  if (isOnline()) {
    List<String> dbNames=influxDB.describeDatabases();
    if (!dbNames.contains(database)) {
      influxDB.createDatabase(database);
    }
  }
}

private void createDatabaseIfNotExistent ( ) { if ( isOnline ( ) ) { List < String > dbNames = influxDB . describeDatabases ( ) ; if ( ! dbNames . contains ( database ) ) { influxDB . createDatabase ( database ) ; } } }
creates the configured database in influx if it does not exist yet .
