Class StatefulBuildLogRemoteFacade
- java.lang.Object
-
- jetbrains.buildServer.serverSide.buildLog.BuildLogRemoteClient
-
- jetbrains.buildServer.serverSide.buildLog.BuildLogRemoteFacade
-
- jetbrains.buildServer.serverSide.buildLog.StatefulBuildLogRemoteFacade
-
- All Implemented Interfaces:
BuildLogFacade,StatefulBuildLogFacade
public class StatefulBuildLogRemoteFacade extends BuildLogRemoteFacade implements StatefulBuildLogFacade
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.serverSide.buildLog.BuildLogRemoteFacade
myBuildLogId
-
-
Constructor Summary
Constructors Constructor Description StatefulBuildLogRemoteFacade(String buildLogId, HttpApi httpApi)
-
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.BuildLogRemoteFacade
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 jetbrains.buildServer.serverSide.buildLog.BuildLogRemoteClient
getGson, send, writeToStream
-
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
-
-
-
-
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)
- Specified by:
reserveAnchorsRangein interfaceStatefulBuildLogFacade
-
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
public PersisterFacade getPersisterFacade()
- Specified by:
getPersisterFacadein interfaceStatefulBuildLogFacade
-
-