Package org.influxdb.dto

Examples of org.influxdb.dto.Pong


    if (! connected) {
      logger.error("checkConnection: database is not connected");
      dbStatus = false;
    } else {
      try {
        Pong pong = influxDB.ping();
        if (pong.getStatus().equalsIgnoreCase(OK_STATUS)) {
          dbStatus = true;
          logger.debug("database status is OK");
        } else {
          logger.error("database connection failed with status: \"{}\" response time was \"{}\"",
              pong.getStatus(), pong.getResponseTime());
          dbStatus = false;
        }
      } catch (RuntimeException e) {
        dbStatus = false;
        logger.error("database connection failed throwing an exception");
View Full Code Here

TOP

Related Classes of org.influxdb.dto.Pong

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.