storm.kafka
Class ZkState

java.lang.Object
  extended by storm.kafka.ZkState

public class ZkState
extends Object


Field Summary
static org.slf4j.Logger LOG
           
 
Constructor Summary
ZkState(Map stateConf)
           
 
Method Summary
 void close()
           
 org.apache.curator.framework.CuratorFramework getCurator()
           
 byte[] readBytes(String path)
           
 Map<Object,Object> readJSON(String path)
           
 void writeBytes(String path, byte[] bytes)
           
 void writeJSON(String path, Map<Object,Object> data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.slf4j.Logger LOG
Constructor Detail

ZkState

public ZkState(Map stateConf)
Method Detail

getCurator

public org.apache.curator.framework.CuratorFramework getCurator()

writeJSON

public void writeJSON(String path,
                      Map<Object,Object> data)

writeBytes

public void writeBytes(String path,
                       byte[] bytes)

readJSON

public Map<Object,Object> readJSON(String path)

readBytes

public byte[] readBytes(String path)

close

public void close()


Copyright © 2016 The Apache Software Foundation. All Rights Reserved.