org.elasticsearch.index.shard.recovery
Class StartRecoveryRequest
java.lang.Object
org.elasticsearch.index.shard.recovery.StartRecoveryRequest
- All Implemented Interfaces:
- Streamable
public class StartRecoveryRequest
- extends java.lang.Object
- implements Streamable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StartRecoveryRequest
public StartRecoveryRequest(ShardId shardId,
DiscoveryNode sourceNode,
DiscoveryNode targetNode,
boolean markAsRelocated,
java.util.Map<java.lang.String,StoreFileMetaData> existingFiles)
- Start recovery request.
- Parameters:
shardId
- sourceNode
- The node to recover fromtargetNode
- Teh node to recover tomarkAsRelocated
- existingFiles
-
shardId
public ShardId shardId()
sourceNode
public DiscoveryNode sourceNode()
targetNode
public DiscoveryNode targetNode()
markAsRelocated
public boolean markAsRelocated()
existingFiles
public java.util.Map<java.lang.String,StoreFileMetaData> existingFiles()
readFrom
public void readFrom(StreamInput in)
throws java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
java.io.IOException