protected class IntegrationTestReplication.ClusterID extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
configuration |
private org.apache.hadoop.hbase.client.Connection |
connection |
Constructor and Description |
---|
ClusterID(org.apache.hadoop.conf.Configuration base,
String key)
This creates a new ClusterID wrapper that will automatically build connections and
configurations to be able to talk to the specified cluster
|
Modifier and Type | Method and Description |
---|---|
void |
closeConnection() |
boolean |
equals(IntegrationTestReplication.ClusterID other) |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
org.apache.hadoop.hbase.client.Connection |
getConnection() |
String |
toString() |
private final org.apache.hadoop.conf.Configuration configuration
private org.apache.hadoop.hbase.client.Connection connection
public ClusterID(org.apache.hadoop.conf.Configuration base, String key)
base
- the base configuration that this class will add tokey
- the cluster key in the form of zk_quorum:zk_port:zk_parent_nodepublic org.apache.hadoop.conf.Configuration getConfiguration()
public org.apache.hadoop.hbase.client.Connection getConnection() throws Exception
Exception
public void closeConnection() throws Exception
Exception
public boolean equals(IntegrationTestReplication.ClusterID other)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.