public class ZkState
extends java.lang.Object
Constructor and Description |
---|
ZkState(java.util.Map<java.lang.String,java.lang.Object> stateConf) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.curator.framework.CuratorFramework |
getCurator() |
byte[] |
readBytes(java.lang.String path) |
java.util.Map<java.lang.Object,java.lang.Object> |
readJSON(java.lang.String path) |
void |
writeBytes(java.lang.String path,
byte[] bytes) |
void |
writeJSON(java.lang.String path,
java.util.Map<java.lang.Object,java.lang.Object> data) |
public ZkState(java.util.Map<java.lang.String,java.lang.Object> stateConf)
public org.apache.curator.framework.CuratorFramework getCurator()
public void writeJSON(java.lang.String path, java.util.Map<java.lang.Object,java.lang.Object> data)
public void writeBytes(java.lang.String path, byte[] bytes)
public java.util.Map<java.lang.Object,java.lang.Object> readJSON(java.lang.String path)
public byte[] readBytes(java.lang.String path)
public void close()