You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by el...@apache.org on 2014/10/21 20:04:58 UTC
git commit: ACCUMULO-3247 Add a toString on ZooKeeperInstance
Repository: accumulo
Updated Branches:
refs/heads/master 0b010256d -> 2e012e18d
ACCUMULO-3247 Add a toString on ZooKeeperInstance
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/2e012e18
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/2e012e18
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/2e012e18
Branch: refs/heads/master
Commit: 2e012e18d0e2476c3a6a9990d777d600602b8007
Parents: 0b01025
Author: Josh Elser <el...@apache.org>
Authored: Tue Oct 21 13:43:23 2014 -0400
Committer: Josh Elser <el...@apache.org>
Committed: Tue Oct 21 13:43:23 2014 -0400
----------------------------------------------------------------------
.../accumulo/core/client/ZooKeeperInstance.java | 23 +++++++++++++-------
1 file changed, 15 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/accumulo/blob/2e012e18/core/src/main/java/org/apache/accumulo/core/client/ZooKeeperInstance.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/client/ZooKeeperInstance.java b/core/src/main/java/org/apache/accumulo/core/client/ZooKeeperInstance.java
index 6b41c1d..3dba358 100644
--- a/core/src/main/java/org/apache/accumulo/core/client/ZooKeeperInstance.java
+++ b/core/src/main/java/org/apache/accumulo/core/client/ZooKeeperInstance.java
@@ -46,15 +46,15 @@ import org.apache.log4j.Logger;
/**
* <p>
* An implementation of instance that looks in zookeeper to find information needed to connect to an instance of accumulo.
- *
+ *
* <p>
* The advantage of using zookeeper to obtain information about accumulo is that zookeeper is highly available, very responsive, and supports caching.
- *
+ *
* <p>
* Because it is possible for multiple instances of accumulo to share a single set of zookeeper servers, all constructors require an accumulo instance name.
- *
+ *
* If you do not know the instance names then run accumulo org.apache.accumulo.server.util.ListInstances on an accumulo server.
- *
+ *
*/
public class ZooKeeperInstance implements Instance {
@@ -73,7 +73,7 @@ public class ZooKeeperInstance implements Instance {
private ClientConfiguration clientConf;
/**
- *
+ *
* @param instanceName
* The name of specific accumulo instance. This is set at initialization time.
* @param zooKeepers
@@ -84,7 +84,7 @@ public class ZooKeeperInstance implements Instance {
}
/**
- *
+ *
* @param instanceName
* The name of specific accumulo instance. This is set at initialization time.
* @param zooKeepers
@@ -99,7 +99,7 @@ public class ZooKeeperInstance implements Instance {
}
/**
- *
+ *
* @param instanceId
* The UUID that identifies the accumulo instance you want to connect to.
* @param zooKeepers
@@ -112,7 +112,7 @@ public class ZooKeeperInstance implements Instance {
}
/**
- *
+ *
* @param instanceId
* The UUID that identifies the accumulo instance you want to connect to.
* @param zooKeepers
@@ -270,4 +270,11 @@ public class ZooKeeperInstance implements Instance {
}
return null;
}
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder(64);
+ sb.append("ZooKeeperInstance: ").append(getInstanceName()).append(" ").append(getZooKeepers());
+ return sb.toString();
+ }
}