public static class CheckpointStreamWithResultProvider.PrimaryStreamOnly extends Object implements CheckpointStreamWithResultProvider
CheckpointStreamWithResultProvider
that only creates the
primary/remote/jm-owned state.CheckpointStreamWithResultProvider.PrimaryAndSecondaryStream, CheckpointStreamWithResultProvider.PrimaryStreamOnly
LOG
Constructor and Description |
---|
PrimaryStreamOnly(CheckpointStreamFactory.CheckpointStateOutputStream outputStream) |
Modifier and Type | Method and Description |
---|---|
SnapshotResult<StreamStateHandle> |
closeAndFinalizeCheckpointStreamResult()
Closes the stream ans returns a snapshot result with the stream handle(s).
|
CheckpointStreamFactory.CheckpointStateOutputStream |
getCheckpointOutputStream()
Returns the encapsulated output stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, createDuplicatingStream, createSimpleStream, toKeyedStateHandleSnapshotResult
public PrimaryStreamOnly(@Nonnull CheckpointStreamFactory.CheckpointStateOutputStream outputStream)
@Nonnull public SnapshotResult<StreamStateHandle> closeAndFinalizeCheckpointStreamResult() throws IOException
CheckpointStreamWithResultProvider
closeAndFinalizeCheckpointStreamResult
in interface CheckpointStreamWithResultProvider
IOException
@Nonnull public CheckpointStreamFactory.CheckpointStateOutputStream getCheckpointOutputStream()
CheckpointStreamWithResultProvider
getCheckpointOutputStream
in interface CheckpointStreamWithResultProvider
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.