Class StatefulBuildLogLocalFacade
- java.lang.Object
-
- jetbrains.buildServer.serverSide.buildLog.BuildLogLocalFacade
-
- jetbrains.buildServer.serverSide.buildLog.StatefulBuildLogLocalFacade
-
- All Implemented Interfaces:
BuildLogFacade,StatefulBuildLogFacade
public class StatefulBuildLogLocalFacade extends BuildLogLocalFacade implements StatefulBuildLogFacade
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.serverSide.buildLog.BuildLogLocalFacade
myBuildLogId
-
-
Constructor Summary
Constructors Constructor Description StatefulBuildLogLocalFacade(String buildLogId, Supplier<StatefulBuildLog> statefulLogSupplier, Supplier<Boolean> buildPromotionFinishedStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voiddispose()PersisterFacadegetPersisterFacade()booleanhasNotFlushedMessages()booleanisLocal()IdRangereserveAnchorsRange(int rangeSize)StateSynchronizationResultsynchronizeState(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 class jetbrains.buildServer.serverSide.buildLog.BuildLogLocalFacade
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
-
-
Constructor Detail
-
StatefulBuildLogLocalFacade
public StatefulBuildLogLocalFacade(@NotNull String buildLogId, @NotNull Supplier<StatefulBuildLog> statefulLogSupplier, @NotNull Supplier<Boolean> buildPromotionFinishedStatus)
-
-
Method Detail
-
isLocal
public boolean isLocal()
- Specified by:
isLocalin interfaceStatefulBuildLogFacade
-
synchronizeState
@NotNull public StateSynchronizationResult synchronizeState(@NotNull List<LogMessageData> messages, @NotNull Map<Integer,Long> clientFlowSnapshotVersions, @NotNull FlushDirective flushDirective, boolean lastMessageLoggingResultRequested)
Description copied from interface:StatefulBuildLogFacadeAccepts unprocessed messages, logs them and returns an update for build-log state snapshot.- Specified by:
synchronizeStatein interfaceStatefulBuildLogFacade- 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 public IdRange reserveAnchorsRange(int rangeSize) throws AnchorsReservationException
- Specified by:
reserveAnchorsRangein interfaceStatefulBuildLogFacade- Throws:
AnchorsReservationException
-
close
public void close()
- Specified by:
closein interfaceStatefulBuildLogFacade
-
dispose
public void dispose()
- Specified by:
disposein interfaceStatefulBuildLogFacade
-
hasNotFlushedMessages
public boolean hasNotFlushedMessages()
- Specified by:
hasNotFlushedMessagesin interfaceStatefulBuildLogFacade
-
getPersisterFacade
@NotNull public PersisterFacade getPersisterFacade()
- Specified by:
getPersisterFacadein interfaceStatefulBuildLogFacade
-
-