Constructor and Description |
---|
Iteration(APIConnection apiConnection,
org.jdom.Element element) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Iteration other) |
boolean |
equals(java.lang.Object o) |
java.util.Date |
getEnd() |
IteratorInstance |
getIteratorInstance() |
java.util.Date |
getLastActivity() |
java.util.Date |
getLastPing() |
java.lang.String |
getMessage() |
int |
getOffset() |
int |
getPk() |
java.lang.Integer |
getRecords() |
java.lang.String |
getRunLocation() |
java.util.Date |
getStart() |
java.util.Map<java.lang.String,java.lang.Object> |
getValues() |
int |
hashCode() |
boolean |
isCurrentlyRunning() |
void |
ping(java.lang.Long timeSinceLastActivity) |
void |
reportCompletion(java.lang.String message,
int records) |
void |
reportError(java.lang.String errorMessage,
int recordCount) |
void |
reportError(java.lang.String errorMessage,
int recordCount,
boolean rerunImmediately) |
void |
rerun(long iterationPk) |
(package private) void |
setIteratorInstance(IteratorInstance instance) |
boolean |
wasError() |
Iteration(APIConnection apiConnection, @NotNull org.jdom.Element element)
public int getPk()
@Nullable public IteratorInstance getIteratorInstance()
void setIteratorInstance(IteratorInstance instance)
public boolean isCurrentlyRunning()
public int getOffset()
public java.util.Date getStart()
public java.util.Date getEnd()
@Nullable public java.util.Date getLastPing()
@Nullable public java.util.Date getLastActivity()
@Nullable public java.lang.String getMessage()
@Nullable public java.lang.String getRunLocation()
public java.lang.Integer getRecords()
public boolean wasError()
public java.util.Map<java.lang.String,java.lang.Object> getValues()
public void reportCompletion(java.lang.String message, int records)
public void reportError(java.lang.String errorMessage, int recordCount)
public void reportError(java.lang.String errorMessage, int recordCount, boolean rerunImmediately)
public void ping(java.lang.Long timeSinceLastActivity)
public void rerun(long iterationPk)
public int compareTo(Iteration other)
compareTo
in interface java.lang.Comparable<Iteration>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object