Class ElasticsearchBuildLogsLineIterator
java.lang.Object
io.jenkins.plugins.opentelemetry.backend.elastic.ElasticsearchBuildLogsLineIterator
- All Implemented Interfaces:
LineIterator
,Closeable
,AutoCloseable
,Iterator<String>
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.LineIterator
LineIterator.JenkinsHttpSessionLineBytesToLineNumberConverter, LineIterator.LineBytesToLineNumberConverter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final co.elastic.clients.elasticsearch._types.Time
-
Constructor Summary
ConstructorDescriptionElasticsearchBuildLogsLineIterator
(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, wait
Methods 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
public static final int MAX_LINES- See Also:
-
-
Constructor Details
-
ElasticsearchBuildLogsLineIterator
-
ElasticsearchBuildLogsLineIterator
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
hasNext
public boolean hasNext() -
next
-
loadNextFormattedLogLines
- Throws:
IOException
-
skipLines
public void skipLines(long skipLines) - Specified by:
skipLines
in interfaceLineIterator
-