public static class CheckpointStreamWithResultProvider.PrimaryAndSecondaryStream extends Object implements CheckpointStreamWithResultProvider
CheckpointStreamWithResultProvider that creates both, the
primary/remote/jm-owned state and the secondary/local/tm-owned state.CheckpointStreamWithResultProvider.PrimaryAndSecondaryStream, CheckpointStreamWithResultProvider.PrimaryStreamOnly| Constructor and Description |
|---|
PrimaryAndSecondaryStream(CheckpointStreamFactory.CheckpointStateOutputStream primaryOut,
CheckpointStreamFactory.CheckpointStateOutputStream secondaryOut) |
| Modifier and Type | Method and Description |
|---|---|
SnapshotResult<StreamStateHandle> |
closeAndFinalizeCheckpointStreamResult()
Closes the stream ans returns a snapshot result with the stream handle(s).
|
DuplicatingCheckpointOutputStream |
getCheckpointOutputStream()
Returns the encapsulated output stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, createDuplicatingStream, createSimpleStream, toKeyedStateHandleSnapshotResultpublic PrimaryAndSecondaryStream(@Nonnull CheckpointStreamFactory.CheckpointStateOutputStream primaryOut, CheckpointStreamFactory.CheckpointStateOutputStream secondaryOut) throws IOException
IOException@Nonnull public SnapshotResult<StreamStateHandle> closeAndFinalizeCheckpointStreamResult() throws IOException
CheckpointStreamWithResultProvidercloseAndFinalizeCheckpointStreamResult in interface CheckpointStreamWithResultProviderIOException@Nonnull public DuplicatingCheckpointOutputStream getCheckpointOutputStream()
CheckpointStreamWithResultProvidergetCheckpointOutputStream in interface CheckpointStreamWithResultProviderCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.