org.apache.hadoop.hbase.client
Class HConnectionManager.HConnectable<T>
java.lang.Object
org.apache.hadoop.hbase.client.HConnectionManager.HConnectable<T>
- Type Parameters:
T
- the return type of the connect(HConnection)
method.
- Enclosing class:
- HConnectionManager
public abstract static class HConnectionManager.HConnectable<T>
- extends Object
This class makes it convenient for one to execute a command in the context
of a HConnection
instance based on the given Configuration
.
If you find yourself wanting to use a HConnection
for a relatively
short duration of time, and do not want to deal with the hassle of creating
and cleaning up that resource, then you should consider using this
convenience class.
Field Summary |
org.apache.hadoop.conf.Configuration |
conf
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
conf
public org.apache.hadoop.conf.Configuration conf
HConnectionManager.HConnectable
protected HConnectionManager.HConnectable(org.apache.hadoop.conf.Configuration conf)
connect
public abstract T connect(HConnection connection)
throws IOException
- Throws:
IOException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.