|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.regionserver.RSZookeeperUpdater
public class RSZookeeperUpdater
This is a helper class for region servers to update various states in Zookeeper. The various updates are abstracted out here. The "startRegionXXX" methods are to be called first, followed by the "finishRegionXXX" methods. Supports updating zookeeper periodically as a part of the "startRegionXXX". Currently handles the following state updates: - Close region - Open region
Constructor Summary | |
---|---|
RSZookeeperUpdater(org.apache.hadoop.conf.Configuration conf,
String regionServerName,
String regionName)
|
|
RSZookeeperUpdater(org.apache.hadoop.conf.Configuration conf,
String regionServerName,
String regionName,
int zkVersion)
|
Method Summary | |
---|---|
void |
abortOpenRegion(HMsg hmsg)
|
void |
finishRegionCloseEvent(HMsg hmsg)
This method updates the states in ZK to signal that the region has been closed. |
void |
finishRegionOpenEvent(HMsg hmsg)
This method updates the states in ZK to signal that the region has been opened. |
boolean |
isClosingRegion()
|
boolean |
isOpeningRegion()
|
void |
startRegionCloseEvent(HMsg hmsg,
boolean updatePeriodically)
This method updates the various states in ZK to inform the master that the region server has started closing the region. |
void |
startRegionOpenEvent(HMsg hmsg,
boolean updatePeriodically)
This method updates the various states in ZK to inform the master that the region server has started opening the region. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RSZookeeperUpdater(org.apache.hadoop.conf.Configuration conf, String regionServerName, String regionName)
public RSZookeeperUpdater(org.apache.hadoop.conf.Configuration conf, String regionServerName, String regionName, int zkVersion)
Method Detail |
---|
public void startRegionCloseEvent(HMsg hmsg, boolean updatePeriodically) throws IOException
updatePeriodically
- - if true, periodically updates the state in ZK
IOException
public void finishRegionCloseEvent(HMsg hmsg) throws IOException
IOException
public void startRegionOpenEvent(HMsg hmsg, boolean updatePeriodically) throws IOException
updatePeriodically
- - if true, periodically updates the state in ZK
IOException
public void finishRegionOpenEvent(HMsg hmsg) throws IOException
IOException
public boolean isClosingRegion()
public boolean isOpeningRegion()
public void abortOpenRegion(HMsg hmsg) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |