java.lang.Object
org.elasticsearch.xpack.core.indexing.IndexerJobStats
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
- Direct Known Subclasses:
RollupIndexerJobStats,TransformIndexerStats
public abstract class IndexerJobStats
extends Object
implements org.elasticsearch.xcontent.ToXContentObject, Writeable
This class holds the runtime statistics of a job. The stats are not used by any internal process
and are only for external monitoring/reference. Statistics are not persisted with the job, so if the
allocated task is shutdown/restarted on a different node all the stats will reset.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected longprotected longstatic final org.elasticsearch.xcontent.ParseFieldprotected longprotected longprotected longprotected longprotected longprotected longprotected longprotected longprotected longFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionIndexerJobStats(long numPages, long numInputDocuments, long numOuputDocuments, long numInvocations, long indexTime, long searchTime, long processingTime, long indexTotal, long searchTotal, long processingTotal, long indexFailures, long searchFailures) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonglonglonglonglonglonglonglonglonglonglonglonginthashCode()voidvoidincrementNumDocuments(long n) voidincrementNumInvocations(long n) voidincrementNumOutputDocuments(long n) voidincrementNumPages(long n) voidvoidvoidvoidvoidvoidvoidvoidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
public static final org.elasticsearch.xcontent.ParseField NAME -
numPages
protected long numPages -
numInputDocuments
protected long numInputDocuments -
numOuputDocuments
protected long numOuputDocuments -
numInvocations
protected long numInvocations -
indexTime
protected long indexTime -
searchTime
protected long searchTime -
indexTotal
protected long indexTotal -
searchTotal
protected long searchTotal -
processingTime
protected long processingTime -
processingTotal
protected long processingTotal -
indexFailures
protected long indexFailures -
searchFailures
protected long searchFailures
-
-
Constructor Details
-
IndexerJobStats
public IndexerJobStats() -
IndexerJobStats
public IndexerJobStats(long numPages, long numInputDocuments, long numOuputDocuments, long numInvocations, long indexTime, long searchTime, long processingTime, long indexTotal, long searchTotal, long processingTotal, long indexFailures, long searchFailures) -
IndexerJobStats
- Throws:
IOException
-
-
Method Details
-
getNumPages
public long getNumPages() -
getNumDocuments
public long getNumDocuments() -
getNumInvocations
public long getNumInvocations() -
getOutputDocuments
public long getOutputDocuments() -
getIndexFailures
public long getIndexFailures() -
getSearchFailures
public long getSearchFailures() -
getIndexTime
public long getIndexTime() -
getSearchTime
public long getSearchTime() -
getProcessingTime
public long getProcessingTime() -
getIndexTotal
public long getIndexTotal() -
getSearchTotal
public long getSearchTotal() -
getProcessingTotal
public long getProcessingTotal() -
incrementNumPages
public void incrementNumPages(long n) -
incrementNumDocuments
public void incrementNumDocuments(long n) -
incrementNumInvocations
public void incrementNumInvocations(long n) -
incrementNumOutputDocuments
public void incrementNumOutputDocuments(long n) -
incrementIndexingFailures
public void incrementIndexingFailures() -
incrementSearchFailures
public void incrementSearchFailures() -
markStartIndexing
public void markStartIndexing() -
markEndIndexing
public void markEndIndexing() -
markStartSearch
public void markStartSearch() -
markEndSearch
public void markEndSearch() -
markStartProcessing
public void markStartProcessing() -
markEndProcessing
public void markEndProcessing() -
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-