Interface BuildLogReaderEx
-
- All Superinterfaces:
BuildLogReader
- All Known Subinterfaces:
BuildLogEx
- All Known Implementing Classes:
NoOpBuildLog
,ServerBuildLog
public interface BuildLogReaderEx extends BuildLogReader
-
-
Method Summary
-
Methods inherited from interface jetbrains.buildServer.serverSide.buildLog.BuildLogReader
getCurrentPath, getDefaultFilteredMessages, getErrorMessages, getFilteredMessages, getLastMessageTimestamp, getMessages, getMessagesIterator, getVerboseIterator, isClosed
-
-
-
-
Method Detail
-
getLowLevelMessagesIterator
@NotNull Iterator<LogMessageInfo> getLowLevelMessagesIterator(int startIndex)
Returns iterator over low level build log records.
-
getVerboseIterator
@NotNull Iterator<LogMessage> getVerboseIterator(@NotNull LogView logView) throws FlowAwareIndexAccessException
- Parameters:
logView
- linear or flowAware log view- Returns:
- message iterator based on provided view mode without any filtering, i.e. includes all messages in the build log
- Throws:
FlowAwareIndexAccessException
- Since:
- 2024.07
-
getPendingOpenBlocks
@NotNull List<BlockDescriptor> getPendingOpenBlocks(@Nullable Integer flowId, @Nullable String blockType)
- Parameters:
flowId
- ifnull
blocks from any flow are returned, if notnull
, only blocks in the specified flow are returnedblockType
- ifnull
all blocks are returned, if notnull
, only blocks of the specified type are returned- Returns:
- all not yet closed blocks in all flows (returned blocks are order by their opening time - oldest at the beginning, newest at the end).
- Since:
- 2023.11
-
getNumberOfMessages
int getNumberOfMessages()
- Returns:
- total number of logged messages in this build log
- Since:
- 10.0
-
hasMessagesAvailable
boolean hasMessagesAvailable()
Returnstrue
if the log has at least one message.- Since:
- 2021.1
-
containsMessageWithHint
boolean containsMessageWithHint(@NotNull String renderingHint)
-
getFirstInternalError
@Nullable InternalErrorMessageProcessor.LogErrorData getFirstInternalError()
-
getFlowStartIndex
@Nullable Integer getFlowStartIndex(int flowId)
-
getLastIndexSatisfyingKinds
@Nullable Integer getLastIndexSatisfyingKinds(int startIndex, @NotNull Set<LogMessageKind> kinds, @NotNull LogView logView)
-
getAgentTimeZone
@Nullable TimeZone getAgentTimeZone()
-
getFirstLevelOpenCloseBlocksToIndex
@NotNull LinkedHashMap<LogMessageInfo,Integer> getFirstLevelOpenCloseBlocksToIndex(@NotNull LogView logView) throws FlowAwareIndexAccessException
- Throws:
FlowAwareIndexAccessException
-
getHierarchyAndThresholdMessages
@Nullable Map<LogMessageInfo,Integer> getHierarchyAndThresholdMessages(int thresholdMessageId, @NotNull LogView logView) throws FlowAwareIndexAccessException
- Throws:
FlowAwareIndexAccessException
-
getFlowIndex
@NotNull Map<Integer,FlowsMessageProcessor.FlowInfo> getFlowIndex()
-
collectTestOutput
@NotNull TestOutput collectTestOutput(int testId)
-
collectStacktraceTestOutput
@NotNull TestOutput collectStacktraceTestOutput(int testId)
-
getMessageInfo
@Nullable LogMessageInfo getMessageInfo(int messageIndex)
-
getStartedStepsNumber
int getStartedStepsNumber()
-
getFlowAwareIndex
int getFlowAwareIndex(int linearIndex) throws FlowAwareIndexAccessException
- Throws:
FlowAwareIndexAccessException
-
resolveAnchors
Map<Integer,Integer> resolveAnchors(@NotNull Set<Integer> indexes) throws AnchorReadException
- Throws:
AnchorReadException
-
resolveAnchor
int resolveAnchor(int index, @NotNull LogView logView) throws AnchorReadException, FlowAwareIndexAccessException
-
getFormatVersion
int getFormatVersion()
-
buildLogExists
boolean buildLogExists()
-
createIterator
@NotNull LogMessageIterator createIterator()
-
createIterator
@NotNull LogMessageIterator createIterator(int startIndex, boolean strictFlowOpening)
-
createIterator
@NotNull LogMessageIterator createIterator(int startIndex, @NotNull LogView logView) throws FlowAwareIndexAccessException
- Throws:
FlowAwareIndexAccessException
-
createReversedIterator
@NotNull LogMessageIterator createReversedIterator(int endIndex, @NotNull LogView logView) throws FlowAwareIndexAccessException
- Throws:
FlowAwareIndexAccessException
-
-