public final class ZKEphemStateManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DELETE_TAG |
static java.util.logging.Logger |
LOG |
Modifier and Type | Method and Description |
---|---|
static void |
createEphemDir(CuratorFramework client,
java.lang.String rootPath,
java.lang.String jobID)
create parent directory for ephemeral worker znodes
|
static PersistentNode |
createWorkerZnode(CuratorFramework client,
java.lang.String rootPath,
java.lang.String jobID,
int workerID) |
static java.lang.String |
decodeWorkerZnodeBody(byte[] body) |
static void |
removeEphemZNode(CuratorFramework client,
java.lang.String rootPath,
java.lang.String jobID,
int workerID)
remove ephemeral worker znode from previous run if exist
|
public static final java.util.logging.Logger LOG
public static final java.lang.String DELETE_TAG
public static void createEphemDir(CuratorFramework client, java.lang.String rootPath, java.lang.String jobID)
public static PersistentNode createWorkerZnode(CuratorFramework client, java.lang.String rootPath, java.lang.String jobID, int workerID)
public static void removeEphemZNode(CuratorFramework client, java.lang.String rootPath, java.lang.String jobID, int workerID) throws Twister2Exception
Twister2Exception
public static java.lang.String decodeWorkerZnodeBody(byte[] body)