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 void
add(BuildMessage1 message)
void
addAll(List<BuildMessage1> messages)
String
getBuildId()
List<BuildMessage1>
getLastMessages()
Returns latest messages in reverse order.List<BuildMessage1>
getLastMessages(String flowId)
May be empty.int
getMaxSize()
-
-
-
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:
getBuildId
in 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:BuildLogTail
Returns latest messages in reverse order. So last message available as getLastMessages().iterator().next();- Specified by:
getLastMessages
in interfaceBuildLogTail
-
getLastMessages
@NotNull public List<BuildMessage1> getLastMessages(@NotNull String flowId)
Description copied from interface:BuildLogTail
May be empty.- Specified by:
getLastMessages
in 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:
getMaxSize
in interfaceBuildLogTail
- Returns:
- maximum tail size, which can be obtained via #getLastMessages
-
addAll
public void addAll(@NotNull List<BuildMessage1> messages)
-
-