public class TransactionalState extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
TransactionalState(Map conf,
String id,
Map componentConf,
String subroot) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected static void |
createNode(org.apache.curator.framework.CuratorFramework curator,
String path,
byte[] data,
List<org.apache.zookeeper.data.ACL> acls,
org.apache.zookeeper.CreateMode mode) |
void |
delete(String path) |
protected static String |
forPath(org.apache.curator.framework.api.PathAndBytesable<String> builder,
String path,
byte[] data) |
Object |
getData(String path) |
List<String> |
list(String path) |
void |
mkdir(String path) |
static TransactionalState |
newCoordinatorState(Map conf,
String id,
Map componentConf) |
static TransactionalState |
newUserState(Map conf,
String id,
Map componentConf) |
void |
setData(String path,
Object obj) |
public static TransactionalState newUserState(Map conf, String id, Map componentConf)
public static TransactionalState newCoordinatorState(Map conf, String id, Map componentConf)
protected static String forPath(org.apache.curator.framework.api.PathAndBytesable<String> builder, String path, byte[] data) throws Exception
Exceptionprotected static void createNode(org.apache.curator.framework.CuratorFramework curator,
String path,
byte[] data,
List<org.apache.zookeeper.data.ACL> acls,
org.apache.zookeeper.CreateMode mode)
throws Exception
Exceptionpublic void delete(String path)
public void mkdir(String path)
public void close()
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.