Interface StatefulBuildLog
-
- All Known Implementing Classes:
ClosedStatefulBuildLog
,StatefulBuildLogImpl
public interface StatefulBuildLog
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
void
dispose()
boolean
hasNotFlushedMessages()
boolean
isClosed()
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.
-
-
-
Method Detail
-
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.flushRequired
- 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
-
hasNotFlushedMessages
boolean hasNotFlushedMessages()
-
isClosed
boolean isClosed()
-
close
void close()
-
dispose
void dispose()
-
-