org.elasticsearch.index.shard.recovery
Class StartRecoveryRequest

java.lang.Object
  extended by org.elasticsearch.index.shard.recovery.StartRecoveryRequest
All Implemented Interfaces:
Streamable

public class StartRecoveryRequest
extends java.lang.Object
implements Streamable


Constructor Summary
StartRecoveryRequest(ShardId shardId, DiscoveryNode sourceNode, DiscoveryNode targetNode, boolean markAsRelocated, java.util.Map<java.lang.String,StoreFileMetaData> existingFiles)
          Start recovery request.
 
Method Summary
 java.util.Map<java.lang.String,StoreFileMetaData> existingFiles()
           
 boolean markAsRelocated()
           
 void readFrom(StreamInput in)
           
 ShardId shardId()
           
 DiscoveryNode sourceNode()
           
 DiscoveryNode targetNode()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 from
targetNode - Teh node to recover to
markAsRelocated -
existingFiles -
Method Detail

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