Examples of Pong


Examples of com.art.anette.common.network.Pong

            try {
                if (NetworkControl.getInstance().isConnected()) {
                    final Response obj = NetworkControl.getInstance().receive();
                    if (obj instanceof Ping) {
                        Ping ping = (Ping) obj;
                        cdbc.getSyncUpThread().addObject(new Pong(ping.getValue()));
                        cdbc.getSyncUpThread().wakeup();
                    } else if (obj instanceof DataResponse) {
                        DataResponse dataResponse = (DataResponse) obj;
                        cdbc.adoptList(dataResponse.getObjects());
                    }
View Full Code Here

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
Copyright © 2018 www.massapi.com. 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.