Package org.apache.hadoop.hbase.master
Class SplitOrMergeStateStore.SwitchStateStore
java.lang.Object
org.apache.hadoop.hbase.master.MasterStateStore
org.apache.hadoop.hbase.master.BooleanStateStore
org.apache.hadoop.hbase.master.SplitOrMergeStateStore.SwitchStateStore
- Enclosing class:
- SplitOrMergeStateStore
-
Constructor Summary
ConstructorDescriptionSwitchStateStore
(MasterRegion masterRegion, String stateName, ZKWatcher watcher, String zkPath) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
parseFrom
(byte[] bytes) protected byte[]
toByteArray
(boolean enabled) Methods inherited from class org.apache.hadoop.hbase.master.BooleanStateStore
get, set
Methods inherited from class org.apache.hadoop.hbase.master.MasterStateStore
getState, setState
-
Constructor Details
-
SwitchStateStore
public SwitchStateStore(MasterRegion masterRegion, String stateName, ZKWatcher watcher, String zkPath) throws IOException, org.apache.zookeeper.KeeperException, DeserializationException - Throws:
IOException
org.apache.zookeeper.KeeperException
DeserializationException
-
-
Method Details
-
toByteArray
- Specified by:
toByteArray
in classBooleanStateStore
-
parseFrom
- Specified by:
parseFrom
in classBooleanStateStore
- Throws:
DeserializationException
-