public class RemoteStateStore extends Object implements StateStore
| Modifier and Type | Field and Description |
|---|---|
protected static String |
OFFSET_KEY |
| Constructor and Description |
|---|
RemoteStateStore(AssessmentServiceClient assessmentServiceClient) |
RemoteStateStore(io.cdap.cdap.api.ServiceDiscoverer context) |
| Modifier and Type | Method and Description |
|---|---|
Long |
getLatestGeneration(String namespace,
String pipelineName) |
Collection<Integer> |
getWorkerInstances(DeltaPipelineId pipelineId) |
OffsetAndSequence |
readOffset(DeltaWorkerId id) |
byte[] |
readState(DeltaWorkerId id,
String key) |
void |
writeOffset(DeltaWorkerId id,
OffsetAndSequence offset) |
void |
writeState(DeltaWorkerId id,
String key,
byte[] val) |
protected static final String OFFSET_KEY
public RemoteStateStore(io.cdap.cdap.api.ServiceDiscoverer context)
public RemoteStateStore(AssessmentServiceClient assessmentServiceClient)
public OffsetAndSequence readOffset(DeltaWorkerId id)
readOffset in interface StateStorepublic void writeOffset(DeltaWorkerId id, OffsetAndSequence offset)
writeOffset in interface StateStorepublic byte[] readState(DeltaWorkerId id, String key)
readState in interface StateStorepublic void writeState(DeltaWorkerId id, String key, byte[] val)
writeState in interface StateStorepublic Long getLatestGeneration(String namespace, String pipelineName)
getLatestGeneration in interface StateStorepublic Collection<Integer> getWorkerInstances(DeltaPipelineId pipelineId)
getWorkerInstances in interface StateStoreCopyright © 2023 CDAP Licensed under the Apache License, Version 2.0.