Class ZooStore
- java.lang.Object
-
- org.apache.accumulo.server.master.state.ZooStore
-
- All Implemented Interfaces:
DistributedStore
public class ZooStore extends Object implements DistributedStore
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
get(String path)
List<String>
getChildren(String path)
void
put(String path, byte[] bs)
void
remove(String path)
-
-
-
Constructor Detail
-
ZooStore
public ZooStore(String basePath) throws IOException
- Throws:
IOException
-
ZooStore
public ZooStore() throws IOException
- Throws:
IOException
-
-
Method Detail
-
get
public byte[] get(String path) throws DistributedStoreException
- Specified by:
get
in interfaceDistributedStore
- Throws:
DistributedStoreException
-
getChildren
public List<String> getChildren(String path) throws DistributedStoreException
- Specified by:
getChildren
in interfaceDistributedStore
- Throws:
DistributedStoreException
-
put
public void put(String path, byte[] bs) throws DistributedStoreException
- Specified by:
put
in interfaceDistributedStore
- Throws:
DistributedStoreException
-
remove
public void remove(String path) throws DistributedStoreException
- Specified by:
remove
in interfaceDistributedStore
- Throws:
DistributedStoreException
-
-