Class BuildLogReaderUtils
- java.lang.Object
-
- jetbrains.buildServer.serverSide.buildLog.BuildLogReaderUtils
-
public final class BuildLogReaderUtils extends Object
Provides stateless methods to read from messages and index files.
-
-
Field Summary
Fields Modifier and Type Field Description static StringBROKEN_MESSAGE_TAGstatic StringLOG_CORRUPTED_MESSAGE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static jetbrains.buildServer.serverSide.buildLog.MessagesChunkfillMessagesChunk(String buildLogId, int initialIndex, boolean useFlowAwareIndex, boolean reversed)static jetbrains.buildServer.serverSide.buildLog.MessagesReadResultfillMessagesChunkExtended(String buildLogId, long messagePosition, int messageIndex, boolean readOnlyIndexedMessages, boolean logFrozen)static longgetLogPositionByIndex(String buildLogId, int messageIndex)static intgetNumberOfMessages(String buildLogId)static jetbrains.buildServer.serverSide.buildLog.OldBuildLogIterator.BlocksDatareadBlocksData(String buildLogId)
-
-
-
Field Detail
-
BROKEN_MESSAGE_TAG
public static final String BROKEN_MESSAGE_TAG
- See Also:
- Constant Field Values
-
LOG_CORRUPTED_MESSAGE
public static final String LOG_CORRUPTED_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNumberOfMessages
public static int getNumberOfMessages(@NotNull String buildLogId)
-
getLogPositionByIndex
public static long getLogPositionByIndex(@NotNull String buildLogId, int messageIndex)
-
fillMessagesChunkExtended
@NotNull public static jetbrains.buildServer.serverSide.buildLog.MessagesReadResult fillMessagesChunkExtended(@NotNull String buildLogId, long messagePosition, int messageIndex, boolean readOnlyIndexedMessages, boolean logFrozen)
-
fillMessagesChunk
@Nullable public static jetbrains.buildServer.serverSide.buildLog.MessagesChunk fillMessagesChunk(@NotNull String buildLogId, int initialIndex, boolean useFlowAwareIndex, boolean reversed)
-
readBlocksData
@NotNull public static jetbrains.buildServer.serverSide.buildLog.OldBuildLogIterator.BlocksData readBlocksData(@NotNull String buildLogId) throws IOException, jetbrains.buildServer.serverSide.buildLog.BrokenBuildLogException- Throws:
IOExceptionjetbrains.buildServer.serverSide.buildLog.BrokenBuildLogException
-
-