Class TestReplicationSource
java.lang.Object
org.opensearch.index.replication.TestReplicationSource
- All Implemented Interfaces:
org.opensearch.indices.replication.SegmentReplicationSource
public abstract class TestReplicationSource
extends Object
implements org.opensearch.indices.replication.SegmentReplicationSource
This class is used by unit tests implementing SegmentReplicationSource
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.indices.replication.SegmentReplicationSource
org.opensearch.indices.replication.SegmentReplicationSource.ReplicationStatsDirectoryWrapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidgetCheckpointMetadata(long replicationId, org.opensearch.indices.replication.checkpoint.ReplicationCheckpoint checkpoint, org.opensearch.core.action.ActionListener<org.opensearch.indices.replication.CheckpointInfoResponse> listener) abstract voidgetSegmentFiles(long replicationId, org.opensearch.indices.replication.checkpoint.ReplicationCheckpoint checkpoint, List<org.opensearch.index.store.StoreFileMetadata> filesToFetch, org.opensearch.index.shard.IndexShard indexShard, BiConsumer<String, Long> fileProgressTracker, org.opensearch.core.action.ActionListener<org.opensearch.indices.replication.GetSegmentFilesResponse> listener) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.indices.replication.SegmentReplicationSource
cancel, getMergedSegmentFiles
-
Constructor Details
-
TestReplicationSource
public TestReplicationSource()
-
-
Method Details
-
getCheckpointMetadata
public abstract void getCheckpointMetadata(long replicationId, org.opensearch.indices.replication.checkpoint.ReplicationCheckpoint checkpoint, org.opensearch.core.action.ActionListener<org.opensearch.indices.replication.CheckpointInfoResponse> listener) - Specified by:
getCheckpointMetadatain interfaceorg.opensearch.indices.replication.SegmentReplicationSource
-
getSegmentFiles
public abstract void getSegmentFiles(long replicationId, org.opensearch.indices.replication.checkpoint.ReplicationCheckpoint checkpoint, List<org.opensearch.index.store.StoreFileMetadata> filesToFetch, org.opensearch.index.shard.IndexShard indexShard, BiConsumer<String, Long> fileProgressTracker, org.opensearch.core.action.ActionListener<org.opensearch.indices.replication.GetSegmentFilesResponse> listener) - Specified by:
getSegmentFilesin interfaceorg.opensearch.indices.replication.SegmentReplicationSource
-
getDescription
- Specified by:
getDescriptionin interfaceorg.opensearch.indices.replication.SegmentReplicationSource
-