Class GetSegmentFilesRequest
java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.transport.TransportRequest
org.opensearch.indices.replication.common.SegmentReplicationTransportRequest
org.opensearch.indices.replication.GetSegmentFilesRequest
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
,TaskAwareRequest
Request object for fetching a list of segment files metadata from a
SegmentReplicationSource
.
This object is created by the target node and sent to the source node.- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.transport.TransportRequest
TransportRequest.Empty
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Constructor Summary
ConstructorDescriptionGetSegmentFilesRequest
(long replicationId, String targetAllocationId, DiscoveryNode targetNode, List<StoreFileMetadata> filesToFetch, ReplicationCheckpoint checkpoint) GetSegmentFilesRequest
(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionvoid
writeTo
(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class org.opensearch.indices.replication.common.SegmentReplicationTransportRequest
getReplicationId, getTargetAllocationId, getTargetNode, toString
Methods inherited from class org.opensearch.transport.TransportRequest
getParentTask, setParentTask
Methods inherited from class org.opensearch.core.transport.TransportMessage
remoteAddress, remoteAddress
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opensearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
GetSegmentFilesRequest
public GetSegmentFilesRequest(org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-
GetSegmentFilesRequest
public GetSegmentFilesRequest(long replicationId, String targetAllocationId, DiscoveryNode targetNode, List<StoreFileMetadata> filesToFetch, ReplicationCheckpoint checkpoint)
-
-
Method Details
-
writeTo
- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Overrides:
writeTo
in classSegmentReplicationTransportRequest
- Throws:
IOException
-
getCheckpoint
-
getFilesToFetch
-