Interface StatefulBuildLogFacade
-
- All Superinterfaces:
BuildLogFacade
- All Known Implementing Classes:
StatefulBuildLogLocalFacade
,StatefulBuildLogRemoteFacade
public interface StatefulBuildLogFacade extends BuildLogFacade
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
void
dispose()
PersisterFacade
getPersisterFacade()
boolean
hasNotFlushedMessages()
boolean
isLocal()
IdRange
reserveAnchorsRange(int rangeSize)
StateSynchronizationResult
synchronizeState(List<LogMessageData> messages, Map<Integer,Long> clientFlowSnapshotVersions, FlushDirective flushDirective, boolean lastMessageLoggingResultRequested)
Accepts unprocessed messages, logs them and returns an update for build-log state snapshot.-
Methods inherited from interface jetbrains.buildServer.serverSide.buildLog.BuildLogFacade
collectStacktraceTestOutput, collectTestOutput, containsMessageWithHint, createLog, ensureFlowAwareIndexIsConstructed, getAgentTimeZoneId, getFirstInternalError, getFirstLevelOpenCloseBlocksToIndex, getFlowAwareIndex, getFlowIndex, getFlowStartIndex, getFormatVersion, getHierarchyAndThresholdMessages, getLastMessageTimestamp, getLastSatisfyingIndex, getLogModifiedTime, getLogPositionByIndex, getMessageInfo, getMessagesChunk, getMessagesChunkWithLogRepair, getNumberOfMessages, getStartedStepsNumber, logExists, openLog, readAnchors, readBlocksData, scheduleFlowAwareIndexConstruction, writeLogFilesZip
-
-
-
-
Method Detail
-
isLocal
boolean isLocal()
-
synchronizeState
@NotNull StateSynchronizationResult synchronizeState(@NotNull List<LogMessageData> messages, @NotNull Map<Integer,Long> clientFlowSnapshotVersions, @NotNull FlushDirective flushDirective, boolean lastMessageLoggingResultRequested)
Accepts unprocessed messages, logs them and returns an update for build-log state snapshot.- Parameters:
messages
- list of messages to be logged.clientFlowSnapshotVersions
- flow snapshot versions known by client (the method should only provide snapshot for flows that are outdated or missing). If client does not have any snapshots, then empty map should be provided.flushDirective
- should messages in buffer be flushed to the disk.lastMessageLoggingResultRequested
- should result of last message logging be included into the response.- Returns:
- an update for the build-log snapshot.
-
reserveAnchorsRange
@NotNull IdRange reserveAnchorsRange(int rangeSize) throws AnchorsReservationException
- Throws:
AnchorsReservationException
-
close
void close()
-
dispose
void dispose()
-
hasNotFlushedMessages
boolean hasNotFlushedMessages()
-
getPersisterFacade
PersisterFacade getPersisterFacade()
-
-