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 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 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:
isLocal
in interfaceStatefulBuildLogFacade
-
synchronizeState
@NotNull public StateSynchronizationResult synchronizeState(@NotNull List<LogMessageData> messages, @NotNull Map<Integer,Long> clientFlowSnapshotVersions, @NotNull FlushDirective flushDirective, boolean lastMessageLoggingResultRequested)
Description copied from interface:StatefulBuildLogFacade
Accepts unprocessed messages, logs them and returns an update for build-log state snapshot.- Specified by:
synchronizeState
in 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:
reserveAnchorsRange
in interfaceStatefulBuildLogFacade
- Throws:
AnchorsReservationException
-
close
public void close()
- Specified by:
close
in interfaceStatefulBuildLogFacade
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceStatefulBuildLogFacade
-
hasNotFlushedMessages
public boolean hasNotFlushedMessages()
- Specified by:
hasNotFlushedMessages
in interfaceStatefulBuildLogFacade
-
getPersisterFacade
@NotNull public PersisterFacade getPersisterFacade()
- Specified by:
getPersisterFacade
in interfaceStatefulBuildLogFacade
-
-