Modifier and Type | Field and Description |
---|---|
protected boolean |
completed |
protected int |
controlMaxlines |
protected List<org.rundeck.client.api.model.ExecLog> |
next |
protected long |
offset |
protected int |
retries |
Modifier | Constructor and Description |
---|---|
protected |
RunDeckLogTailIterator() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
This will clear and update the result set for the @link
next() call using the RunDeck Client to perform an API call, it will also update the
offset and last modification date for the next API call. |
List<org.rundeck.client.api.model.ExecLog> |
next()
Returns the resultset which has been fetched using the hasNext method.
|
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected long offset
protected boolean completed
protected int retries
protected int controlMaxlines
protected List<org.rundeck.client.api.model.ExecLog> next
public boolean hasNext()
next()
call using the RunDeck Client to perform an API call, it will also update the
offset and last modification date for the next API call. If there are no changes since the last call, this method will sleep for 5 seconds. If there
are changes, it will sleep for 2 seconds so it won't overload the API. Once the API call returns with 'completed' the next call to this method will
return false. If for some reason the sleep is interrupted, the next call to this method will return false.public List<org.rundeck.client.api.model.ExecLog> next()
Copyright © 2016–2022. All rights reserved.