Example usage for io.vertx.mysqlclient MySQLConnection getInternalStatistics

List of usage examples for io.vertx.mysqlclient MySQLConnection getInternalStatistics

Introduction

In this page you can find the example usage for io.vertx.mysqlclient MySQLConnection getInternalStatistics.

Prototype

@Fluent
MySQLConnection getInternalStatistics(Handler<AsyncResult<String>> handler);

Source Link

Document

Send a STATISTICS command to get a human readable string of the server internal status.

Usage

From source file:examples.MySQLClientExamples.java

public void statisticsExample(MySQLConnection connection) {
    connection.getInternalStatistics(ar -> {
        if (ar.succeeded()) {
            System.out.println("Statistics: " + ar.result());
        } else {/*  ww  w.ja  va 2s  .  c  o  m*/
            System.out.println("Failure: " + ar.cause().getMessage());
        }
    });
}