Class ElasticsearchBuildLogsLineIterator
java.lang.Object
io.jenkins.plugins.opentelemetry.backend.elastic.ElasticsearchBuildLogsLineIterator
- All Implemented Interfaces:
LogLineIterator<Long>,Closeable,AutoCloseable,Iterator<LogLine<Long>>
public class ElasticsearchBuildLogsLineIterator
extends Object
implements LogLineIterator<Long>, Closeable
https://www.elastic.co/guide/en/elasticsearch/reference/7.17/point-in-time-api.html
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jenkins.plugins.opentelemetry.job.log.util.LogLineIterator
LogLineIterator.JenkinsHttpSessionLineBytesToLogLineIdMapper<Id>, LogLineIterator.LogLineBytesToLogLineIdMapper<Id> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final co.elastic.clients.elasticsearch._types.Time -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchBuildLogsLineIterator(String jobFullName, int runNumber, String traceId, co.elastic.clients.elasticsearch.ElasticsearchClient esClient, io.opentelemetry.api.trace.Tracer tracer) ElasticsearchBuildLogsLineIterator(String jobFullName, int runNumber, String traceId, String flowNodeId, co.elastic.clients.elasticsearch.ElasticsearchClient esClient, io.opentelemetry.api.trace.Tracer tracer) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
POINT_IN_TIME_KEEP_ALIVE
public static final co.elastic.clients.elasticsearch._types.Time POINT_IN_TIME_KEEP_ALIVE -
PAGE_SIZE
public static final int PAGE_SIZE- See Also:
-
MAX_LINES_PAGINATED
public static final int MAX_LINES_PAGINATED- See Also:
-
-
Constructor Details
-
ElasticsearchBuildLogsLineIterator
-
ElasticsearchBuildLogsLineIterator
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
hasNext
public boolean hasNext() -
next
-
loadNextFormattedLogLines
- Throws:
IOException
-
skipLines
- Specified by:
skipLinesin interfaceLogLineIterator<Long>
-