Examples of logger()


Examples of org.iq80.leveldb.Options.logger()

  }

  private void startStore(Path recoveryRoot) throws IOException {
    Options options = new Options();
    options.createIfMissing(false);
    options.logger(new LevelDBLogger());
    Path dbPath = new Path(recoveryRoot, STATE_DB_NAME);
    LOG.info("Using state database at " + dbPath + " for recovery");
    File dbfile = new File(dbPath.toString());
    byte[] schemaVersionData;
    try {
View Full Code Here

Examples of org.iq80.leveldb.Options.logger()

    @Override
    public void doOpen() throws DataStoreFatalException {
  path = getDatabaseFile();
  Options options = new Options();
  options.createIfMissing(true);
  options.logger(new org.iq80.leveldb.Logger() {
    public void log (String message) {
        logger.trace("leveldb: {}", message);
    }
      });
  try {
View Full Code Here

Examples of org.vertx.java.platform.Container.logger()

        server.listen(port, host, new Handler<AsyncResult<HttpServer>>() {
            @Override
            public void handle(AsyncResult<HttpServer> result) {
                final String listenPath = (configurator.getSSL() ? "https" : "http") + "://" + host + ":" + port;
                if (result.succeeded()) {
                    container.logger().info("Http server listening for " + listenPath);
                } else {
                    container.logger().error("Failed to start http server listening for " + listenPath, result.cause());
                }
                if (doneHandler != null) {
                    doneHandler.handle(result);
View Full Code Here

Examples of org.vertx.java.platform.Container.logger()

            public void handle(AsyncResult<HttpServer> result) {
                final String listenPath = (configurator.getSSL() ? "https" : "http") + "://" + host + ":" + port;
                if (result.succeeded()) {
                    container.logger().info("Http server listening for " + listenPath);
                } else {
                    container.logger().error("Failed to start http server listening for " + listenPath, result.cause());
                }
                if (doneHandler != null) {
                    doneHandler.handle(result);
                }
            }
View Full Code Here

Examples of org.vertx.java.platform.Container.logger()

        server.listen(port, host, new Handler<AsyncResult<HttpServer>>() {
            @Override
            public void handle(AsyncResult<HttpServer> result) {
                final String listenPath = (configurator.getSSL() ? "https" : "http") + "://" + host + ":" + port;
                if (result.succeeded()) {
                    container.logger().info("Http server listening for " + listenPath);
                } else {
                    container.logger().error("Failed to start http server listening for " + listenPath, result.cause());
                }
                if (doneHandler != null) {
                    doneHandler.handle(result);
View Full Code Here

Examples of org.vertx.java.platform.Container.logger()

            public void handle(AsyncResult<HttpServer> result) {
                final String listenPath = (configurator.getSSL() ? "https" : "http") + "://" + host + ":" + port;
                if (result.succeeded()) {
                    container.logger().info("Http server listening for " + listenPath);
                } else {
                    container.logger().error("Failed to start http server listening for " + listenPath, result.cause());
                }
                if (doneHandler != null) {
                    doneHandler.handle(result);
                }
            }
View Full Code Here

Examples of org.vertx.java.platform.Container.logger()

        server.listen(port, host, new Handler<AsyncResult<HttpServer>>() {
            @Override
            public void handle(AsyncResult<HttpServer> result) {
                final String listenPath = (configurator.getSSL() ? "https" : "http") + "://" + host + ":" + port;
                if (result.succeeded()) {
                    container.logger().info("Http server listening for " + listenPath);
                } else {
                    container.logger().error("Failed to start http server listening for " + listenPath, result.cause());
                }
                if (doneHandler != null) {
                    doneHandler.handle(result);
View Full Code Here

Examples of org.vertx.java.platform.Container.logger()

            public void handle(AsyncResult<HttpServer> result) {
                final String listenPath = (configurator.getSSL() ? "https" : "http") + "://" + host + ":" + port;
                if (result.succeeded()) {
                    container.logger().info("Http server listening for " + listenPath);
                } else {
                    container.logger().error("Failed to start http server listening for " + listenPath, result.cause());
                }
                if (doneHandler != null) {
                    doneHandler.handle(result);
                }
            }
View Full Code Here

Examples of org.vertx.java.platform.Container.logger()

        server.listen(port, host, new Handler<AsyncResult<HttpServer>>() {
            @Override
            public void handle(AsyncResult<HttpServer> result) {
                final String listenPath = "http://" + host + ":" + port;
                if (result.succeeded()) {
                    container.logger().info("Http server listening for " + listenPath);
                } else {
                    container.logger().error("Failed to start http server listening for " + listenPath, result.cause());
                }
                if (doneHandler != null) {
                    doneHandler.handle(result);
View Full Code Here

Examples of org.vertx.java.platform.Container.logger()

            public void handle(AsyncResult<HttpServer> result) {
                final String listenPath = "http://" + host + ":" + port;
                if (result.succeeded()) {
                    container.logger().info("Http server listening for " + listenPath);
                } else {
                    container.logger().error("Failed to start http server listening for " + listenPath, result.cause());
                }
                if (doneHandler != null) {
                    doneHandler.handle(result);
                }
            }
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.