|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.hadoop.hbase.HbaseConfigurationFactoryBean
public class HbaseConfigurationFactoryBean
Factory for creating HBase specific configuration. By default cleans up any connection associated with the current configuration.
HConnectionManager
Constructor Summary | |
---|---|
HbaseConfigurationFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
org.apache.hadoop.conf.Configuration |
getObject()
|
java.lang.Class<? extends org.apache.hadoop.conf.Configuration> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setConfiguration(org.apache.hadoop.conf.Configuration configuration)
Sets the Hadoop configuration to use. |
void |
setDeleteConnection(boolean deleteConnection)
Indicates whether the potential connection created by this config is destroyed at shutdown (default). |
void |
setProperties(java.util.Properties properties)
Sets the configuration properties. |
void |
setStopProxy(boolean stopProxy)
Indicates whether, when/if the associated connection is destroyed, whether the proxy is stopped or not. |
void |
setZkPort(java.lang.Integer port)
Sets the HBase Zookeeper port for clients to connect to. |
void |
setZkQuorum(java.lang.String quorum)
Sets the HBase Zookeeper Quorum host(s). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HbaseConfigurationFactoryBean()
Method Detail |
---|
public void setDeleteConnection(boolean deleteConnection)
deleteConnection
- The deleteConnection to set.public void setStopProxy(boolean stopProxy)
stopProxy
- The stopProxy to set.public void setConfiguration(org.apache.hadoop.conf.Configuration configuration)
configuration
- The configuration to set.public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
public void setProperties(java.util.Properties properties)
properties
- The properties to set.public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public org.apache.hadoop.conf.Configuration getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<org.apache.hadoop.conf.Configuration>
public java.lang.Class<? extends org.apache.hadoop.conf.Configuration> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<org.apache.hadoop.conf.Configuration>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<org.apache.hadoop.conf.Configuration>
public void setZkQuorum(java.lang.String quorum)
quorum
- HBase ZK quorum hosts.public void setZkPort(java.lang.Integer port)
port
- HBase ZK client port.
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |