Interface BuildLogTail
-
- All Known Implementing Classes:
BuildLogTailImpl
public interface BuildLogTail
Provides access to the lastN messages of build.
- Since:
- 9.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getBuildId()
List<BuildMessage1>
getLastMessages()
Returns latest messages in reverse order.List<BuildMessage1>
getLastMessages(String flowId)
May be empty.int
getMaxSize()
-
-
-
Method Detail
-
getBuildId
String getBuildId()
- Returns:
- id of build which is presented by this log tail
-
getLastMessages
@NotNull List<BuildMessage1> getLastMessages()
Returns latest messages in reverse order. So last message available as getLastMessages().iterator().next();
-
getLastMessages
@NotNull List<BuildMessage1> getLastMessages(@NotNull String flowId)
May be empty.- Parameters:
flowId
- id of the flow for which messages must be returned- Returns:
- list of messages corresponding to specified flowId
-
getMaxSize
int getMaxSize()
- Returns:
- maximum tail size, which can be obtained via #getLastMessages
-
-