Class ClosedStatefulBuildLog
- java.lang.Object
-
- jetbrains.buildServer.serverSide.buildLog.ClosedStatefulBuildLog
-
- All Implemented Interfaces:
PersisterFacade,StatefulBuildLog
public class ClosedStatefulBuildLog extends Object implements StatefulBuildLog, PersisterFacade
-
-
Constructor Summary
Constructors Constructor Description ClosedStatefulBuildLog(String buildLogId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voiddispose()intgetNextMessageIndex()booleanhasNotFlushedMessages()booleanisClosed()voidrefreshNextMessageIndex()voidremotePersistBlocksUpdate(List<Integer> messageIndexes, Status status, Date finishTs)intremotePersistLogMessage(LogMessageInfo info)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.
-
-
-
Constructor Detail
-
ClosedStatefulBuildLog
public ClosedStatefulBuildLog(@NotNull String buildLogId)
-
-
Method Detail
-
synchronizeState
@NotNull public StateSynchronizationResult synchronizeState(@NotNull List<LogMessageData> messages, @NotNull Map<Integer,Long> clientFlowSnapshotVersions, @NotNull FlushDirective flushDirective, boolean lastMessageLoggingResultRequested)
Description copied from interface:StatefulBuildLogAccepts unprocessed messages, logs them and returns an update for build-log state snapshot.- Specified by:
synchronizeStatein interfaceStatefulBuildLog- 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.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 interfaceStatefulBuildLog- Throws:
AnchorsReservationException
-
hasNotFlushedMessages
public boolean hasNotFlushedMessages()
- Specified by:
hasNotFlushedMessagesin interfaceStatefulBuildLog
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceStatefulBuildLog
-
close
public void close()
- Specified by:
closein interfaceStatefulBuildLog
-
dispose
public void dispose()
- Specified by:
disposein interfaceStatefulBuildLog
-
getNextMessageIndex
@TestOnly public int getNextMessageIndex()
- Specified by:
getNextMessageIndexin interfacePersisterFacade
-
refreshNextMessageIndex
public void refreshNextMessageIndex()
- Specified by:
refreshNextMessageIndexin interfacePersisterFacade
-
remotePersistLogMessage
public int remotePersistLogMessage(@NotNull LogMessageInfo info)- Specified by:
remotePersistLogMessagein interfacePersisterFacade
-
remotePersistBlocksUpdate
public void remotePersistBlocksUpdate(@NotNull List<Integer> messageIndexes, @Nullable Status status, @Nullable Date finishTs)- Specified by:
remotePersistBlocksUpdatein interfacePersisterFacade
-
-