Class BuildLogRemoteFacade
- java.lang.Object
-
- jetbrains.buildServer.serverSide.buildLog.BuildLogRemoteClient
-
- jetbrains.buildServer.serverSide.buildLog.BuildLogRemoteFacade
-
- All Implemented Interfaces:
BuildLogFacade
- Direct Known Subclasses:
StatefulBuildLogRemoteFacade
@ThreadSafe public class BuildLogRemoteFacade extends BuildLogRemoteClient implements BuildLogFacade
-
-
Field Summary
Fields Modifier and Type Field Description protected String
myBuildLogId
-
Constructor Summary
Constructors Constructor Description BuildLogRemoteFacade(String buildLogId, HttpApi httpApi)
-
Method Summary
-
Methods inherited from class jetbrains.buildServer.serverSide.buildLog.BuildLogRemoteClient
getGson, send, writeToStream
-
-
-
-
Field Detail
-
myBuildLogId
@NotNull protected final String myBuildLogId
-
-
Method Detail
-
createLog
public boolean createLog()
- Specified by:
createLog
in interfaceBuildLogFacade
-
openLog
public void openLog(boolean logFrozen)
- Specified by:
openLog
in interfaceBuildLogFacade
-
writeLogFilesZip
public void writeLogFilesZip(@NotNull OutputStream destinationStream)
- Specified by:
writeLogFilesZip
in interfaceBuildLogFacade
-
logExists
public boolean logExists()
- Specified by:
logExists
in interfaceBuildLogFacade
-
getMessageInfo
@Nullable public LogMessageInfo getMessageInfo(int messageIndex)
- Specified by:
getMessageInfo
in interfaceBuildLogFacade
-
getFormatVersion
public int getFormatVersion()
- Specified by:
getFormatVersion
in interfaceBuildLogFacade
-
getNumberOfMessages
public int getNumberOfMessages()
- Specified by:
getNumberOfMessages
in interfaceBuildLogFacade
-
getLastMessageTimestamp
@Nullable public Date getLastMessageTimestamp()
- Specified by:
getLastMessageTimestamp
in interfaceBuildLogFacade
-
getFirstLevelOpenCloseBlocksToIndex
@NotNull public LinkedHashMap<LogMessageInfo,Integer> getFirstLevelOpenCloseBlocksToIndex(boolean useFlowAwareIndex)
- Specified by:
getFirstLevelOpenCloseBlocksToIndex
in interfaceBuildLogFacade
-
getHierarchyAndThresholdMessages
@Nullable public Map<LogMessageInfo,Integer> getHierarchyAndThresholdMessages(int thresholdMessageId, boolean useFlowAwareIndex)
- Specified by:
getHierarchyAndThresholdMessages
in interfaceBuildLogFacade
-
getFlowIndex
@NotNull public Map<Integer,FlowsMessageProcessor.FlowInfo> getFlowIndex()
- Specified by:
getFlowIndex
in interfaceBuildLogFacade
-
collectTestOutput
@NotNull public TestOutput collectTestOutput(int testId)
- Specified by:
collectTestOutput
in interfaceBuildLogFacade
-
collectStacktraceTestOutput
@NotNull public TestOutput collectStacktraceTestOutput(int testId)
- Specified by:
collectStacktraceTestOutput
in interfaceBuildLogFacade
-
containsMessageWithHint
public boolean containsMessageWithHint(@NotNull String renderingHint)
- Specified by:
containsMessageWithHint
in interfaceBuildLogFacade
-
getFirstInternalError
@Nullable public InternalErrorMessageProcessor.LogErrorData getFirstInternalError()
- Specified by:
getFirstInternalError
in interfaceBuildLogFacade
-
getFlowStartIndex
@Nullable public Integer getFlowStartIndex(int flowId)
- Specified by:
getFlowStartIndex
in interfaceBuildLogFacade
-
getLastSatisfyingIndex
@Nullable public Integer getLastSatisfyingIndex(int startIndex, @NotNull Set<LogMessageKind> kinds, boolean flowAware)
- Specified by:
getLastSatisfyingIndex
in interfaceBuildLogFacade
-
getAgentTimeZoneId
@Nullable public String getAgentTimeZoneId()
- Specified by:
getAgentTimeZoneId
in interfaceBuildLogFacade
-
getLogModifiedTime
public long getLogModifiedTime()
- Specified by:
getLogModifiedTime
in interfaceBuildLogFacade
-
getStartedStepsNumber
public int getStartedStepsNumber()
- Specified by:
getStartedStepsNumber
in interfaceBuildLogFacade
-
getFlowAwareIndex
public int getFlowAwareIndex(int linearIndex)
- Specified by:
getFlowAwareIndex
in interfaceBuildLogFacade
-
readAnchors
@NotNull public Map<Integer,Integer> readAnchors(@NotNull Set<Integer> anchors)
- Specified by:
readAnchors
in interfaceBuildLogFacade
-
readBlocksData
@NotNull public jetbrains.buildServer.serverSide.buildLog.OldBuildLogIterator.BlocksData readBlocksData()
- Specified by:
readBlocksData
in interfaceBuildLogFacade
-
ensureFlowAwareIndexIsConstructed
public void ensureFlowAwareIndexIsConstructed()
- Specified by:
ensureFlowAwareIndexIsConstructed
in interfaceBuildLogFacade
-
scheduleFlowAwareIndexConstruction
public void scheduleFlowAwareIndexConstruction(@NotNull ExecutorService executorService)
- Specified by:
scheduleFlowAwareIndexConstruction
in interfaceBuildLogFacade
-
getMessagesChunk
@Nullable public jetbrains.buildServer.serverSide.buildLog.MessagesChunk getMessagesChunk(int messageIndex, boolean flowAware, boolean reversed)
- Specified by:
getMessagesChunk
in interfaceBuildLogFacade
-
getMessagesChunkWithLogRepair
@NotNull public jetbrains.buildServer.serverSide.buildLog.MessagesReadResult getMessagesChunkWithLogRepair(long messagePosition, int messageIndex, boolean readOnlyIndexedMessages, boolean logFrozen)
- Specified by:
getMessagesChunkWithLogRepair
in interfaceBuildLogFacade
-
getLogPositionByIndex
public long getLogPositionByIndex(int messageIndex)
- Specified by:
getLogPositionByIndex
in interfaceBuildLogFacade
-
-