public class DBReplicationStateStore extends Object
| Modifier and Type | Field and Description |
|---|---|
static io.cdap.cdap.spi.data.table.StructuredTableSpecification |
TABLE_SPEC |
| Modifier and Type | Method and Description |
|---|---|
Long |
getLatestGeneration(String namespace,
String appName) |
byte[] |
getStateData(DeltaWorkerId id,
String state) |
Collection<Integer> |
getWorkerInstances(String namespace,
String appName,
Long generation) |
void |
writeStateData(DeltaWorkerId id,
String state,
byte[] data) |
public static final io.cdap.cdap.spi.data.table.StructuredTableSpecification TABLE_SPEC
public byte[] getStateData(DeltaWorkerId id, String state) throws IOException
IOExceptionpublic void writeStateData(DeltaWorkerId id, String state, byte[] data) throws IOException
IOExceptionpublic Long getLatestGeneration(String namespace, String appName) throws IOException
IOExceptionpublic Collection<Integer> getWorkerInstances(String namespace, String appName, Long generation) throws IOException
IOExceptionCopyright © 2024 CDAP Licensed under the Apache License, Version 2.0.