Class BuildLogTailImpl
- java.lang.Object
-
- jetbrains.buildServer.agent.messages.impl.BuildLogTailImpl
-
- All Implemented Interfaces:
BuildLogTail
public class BuildLogTailImpl extends Object implements BuildLogTail
-
-
Constructor Summary
Constructors Constructor Description BuildLogTailImpl(String buildId)BuildLogTailImpl(AgentBuild build, AgentEventDispatcher dispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(BuildMessage1 message)voidaddAll(List<BuildMessage1> messages)StringgetBuildId()List<BuildMessage1>getLastMessages()Returns latest messages in reverse order.List<BuildMessage1>getLastMessages(String flowId)May be empty.intgetMaxSize()
-
-
-
Constructor Detail
-
BuildLogTailImpl
public BuildLogTailImpl(@NotNull AgentBuild build, @NotNull AgentEventDispatcher dispatcher)
-
BuildLogTailImpl
public BuildLogTailImpl(@NotNull String buildId)
-
-
Method Detail
-
getBuildId
public String getBuildId()
- Specified by:
getBuildIdin interfaceBuildLogTail- Returns:
- id of build which is presented by this log tail
-
add
public void add(@NotNull BuildMessage1 message)
-
getLastMessages
@NotNull public List<BuildMessage1> getLastMessages()
Description copied from interface:BuildLogTailReturns latest messages in reverse order. So last message available as getLastMessages().iterator().next();- Specified by:
getLastMessagesin interfaceBuildLogTail
-
getLastMessages
@NotNull public List<BuildMessage1> getLastMessages(@NotNull String flowId)
Description copied from interface:BuildLogTailMay be empty.- Specified by:
getLastMessagesin interfaceBuildLogTail- Parameters:
flowId- id of the flow for which messages must be returned- Returns:
- list of messages corresponding to specified flowId
-
getMaxSize
public int getMaxSize()
- Specified by:
getMaxSizein interfaceBuildLogTail- Returns:
- maximum tail size, which can be obtained via #getLastMessages
-
addAll
public void addAll(@NotNull List<BuildMessage1> messages)
-
-