eu.dicodeproject.analysis.restapi
Class HTablePoolHandler
java.lang.Object
eu.dicodeproject.analysis.restapi.HTablePoolHandler
@Component
public class HTablePoolHandler
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTablePoolHandler
public HTablePoolHandler()
init
@PostConstruct
public void init()
destroy
@PreDestroy
public void destroy()
setZookeeperQuorum
public void setZookeeperQuorum(String zookeeperQuorum)
- Parameters:
zookeeperQuorum -
setZookeeperPort
public void setZookeeperPort(Integer zookeeperPort)
- Parameters:
zookeeperPort -
getHTable
public org.apache.hadoop.hbase.client.HTableInterface getHTable(String name)
- Returns:
- the hTable
putHTable
public void putHTable(org.apache.hadoop.hbase.client.HTableInterface table)
- Parameters:
table -
Copyright © 2011. All Rights Reserved.