Interface BuildLogTail
-
- All Known Implementing Classes:
BuildLogTailImpl
public interface BuildLogTailProvides access to the lastN messages of build.- Since:
- 9.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetBuildId()List<BuildMessage1>getLastMessages()Returns latest messages in reverse order.List<BuildMessage1>getLastMessages(String flowId)May be empty.intgetMaxSize()
-
-
-
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
-
-