Search in sources :

Example 1 with CheckpointV2Serde

use of org.apache.samza.serializers.CheckpointV2Serde in project samza by apache.

the class TestKafkaCheckpointManager method newCheckpointV2Envelope.

private IncomingMessageEnvelope newCheckpointV2Envelope(TaskName taskName, CheckpointV2 checkpointV2, String checkpointMessageOffset) {
    KafkaCheckpointLogKey checkpointKey = new KafkaCheckpointLogKey(KafkaCheckpointLogKey.CHECKPOINT_V2_KEY_TYPE, taskName, GROUPER_FACTORY_CLASS);
    KafkaCheckpointLogKeySerde checkpointKeySerde = new KafkaCheckpointLogKeySerde();
    CheckpointV2Serde checkpointMsgSerde = new CheckpointV2Serde();
    return new IncomingMessageEnvelope(CHECKPOINT_SSP, checkpointMessageOffset, checkpointKeySerde.toBytes(checkpointKey), checkpointMsgSerde.toBytes(checkpointV2));
}
Also used : CheckpointV2Serde(org.apache.samza.serializers.CheckpointV2Serde) IncomingMessageEnvelope(org.apache.samza.system.IncomingMessageEnvelope)

Aggregations

CheckpointV2Serde (org.apache.samza.serializers.CheckpointV2Serde)1 IncomingMessageEnvelope (org.apache.samza.system.IncomingMessageEnvelope)1