Module org.elasticsearch.server
Class RecoveryState.FileDetail
java.lang.Object
org.elasticsearch.indices.recovery.RecoveryState.FileDetail
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
- Enclosing class:
RecoveryState
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()longlength()file length *name()file name *longnumber of bytes recovered for this file (so far).longnumber of bytes recovered from this file (so far) from a snapshot.booleanreused()returns true if the file is reused from a local copytoString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
FileDetail
-
FileDetail
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
name
file name * -
length
public long length()file length * -
recovered
public long recovered()number of bytes recovered for this file (so far). 0 if the file is reused * -
recoveredFromSnapshot
public long recoveredFromSnapshot()number of bytes recovered from this file (so far) from a snapshot. -
reused
public boolean reused()returns true if the file is reused from a local copy -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-