Class LogMessageIterator
- java.lang.Object
-
- jetbrains.buildServer.serverSide.buildLog.LogMessageIterator
-
- All Implemented Interfaces:
Iterator<LogMessage>
,LogIterator
@ThreadSafe public final class LogMessageIterator extends Object implements LogIterator
Converts the low-levelLogMessageInfo
messages iterator to the higher-levelLogMessage
iterator.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCurrentIndex()
Returns the index of the message returned by the last call to theIterator.next()
, or -1 if no calls were made yet.List<BlockLogMessage>
getOpenedBlocks()
Returns all opened blocks form all parallel flowsboolean
hasNext()
LogMessage
next()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<LogMessage>
-
next
public LogMessage next()
- Specified by:
next
in interfaceIterator<LogMessage>
-
getCurrentIndex
public int getCurrentIndex()
Description copied from interface:LogIterator
Returns the index of the message returned by the last call to theIterator.next()
, or -1 if no calls were made yet.- Specified by:
getCurrentIndex
in interfaceLogIterator
-
getOpenedBlocks
@NotNull public List<BlockLogMessage> getOpenedBlocks()
Returns all opened blocks form all parallel flows
-
-