Example usage for org.apache.zookeeper ZooKeeper toString

List of usage examples for org.apache.zookeeper ZooKeeper toString

Introduction

In this page you can find the example usage for org.apache.zookeeper ZooKeeper toString.

Prototype

@Override
public String toString() 

Source Link

Document

String representation of this ZooKeeper client.

Usage

From source file:org.apache.bookkeeper.zookeeper.BkZooKeeperClient.java

License:Apache License

@Override
public String toString() {
    ZooKeeper zkHandle = zk.get();
    if (null == zkHandle) {
        return BkZooKeeperClient.super.toString();
    } else {//ww  w  . ja v a  2 s  .  c o m
        return zkHandle.toString();
    }
}

From source file:org.apache.bookkeeper.zookeeper.ZooKeeperClient.java

License:Apache License

@Override
public String toString() {
    ZooKeeper zkHandle = zk.get();
    if (null == zkHandle) {
        return ZooKeeperClient.super.toString();
    } else {//from   w  ww  .  j av a 2 s . c o  m
        return zkHandle.toString();
    }
}