Class CassandraCommitter
- java.lang.Object
-
- org.apache.flink.streaming.runtime.operators.CheckpointCommitter
-
- org.apache.flink.streaming.connectors.cassandra.CassandraCommitter
-
- All Implemented Interfaces:
Serializable
public class CassandraCommitter extends org.apache.flink.streaming.runtime.operators.CheckpointCommitter
CheckpointCommitter that saves information about completed checkpoints within a separate table in a cassandra database.Entries are in the form |operator_id | subtask_id | last_completed_checkpoint|
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CassandraCommitter(ClusterBuilder builder)
CassandraCommitter(ClusterBuilder builder, String keySpace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
commitCheckpoint(int subtaskIdx, long checkpointId)
void
createResource()
Generates the necessary tables to store information.boolean
isCheckpointCommitted(int subtaskIdx, long checkpointId)
void
open()
void
setJobId(String id)
Internally used to set the job ID after instantiation.
-
-
-
Constructor Detail
-
CassandraCommitter
public CassandraCommitter(ClusterBuilder builder)
-
CassandraCommitter
public CassandraCommitter(ClusterBuilder builder, String keySpace)
-
-
Method Detail
-
setJobId
public void setJobId(String id) throws Exception
Internally used to set the job ID after instantiation.- Overrides:
setJobId
in classorg.apache.flink.streaming.runtime.operators.CheckpointCommitter
- Throws:
Exception
-
createResource
public void createResource() throws Exception
Generates the necessary tables to store information.- Specified by:
createResource
in classorg.apache.flink.streaming.runtime.operators.CheckpointCommitter
- Throws:
Exception
-
open
public void open() throws Exception
- Specified by:
open
in classorg.apache.flink.streaming.runtime.operators.CheckpointCommitter
- Throws:
Exception
-
close
public void close() throws Exception
- Specified by:
close
in classorg.apache.flink.streaming.runtime.operators.CheckpointCommitter
- Throws:
Exception
-
commitCheckpoint
public void commitCheckpoint(int subtaskIdx, long checkpointId)
- Specified by:
commitCheckpoint
in classorg.apache.flink.streaming.runtime.operators.CheckpointCommitter
-
isCheckpointCommitted
public boolean isCheckpointCommitted(int subtaskIdx, long checkpointId)
- Specified by:
isCheckpointCommitted
in classorg.apache.flink.streaming.runtime.operators.CheckpointCommitter
-
-