|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.nava.informa.utils.UpdateChannelInfo
public class UpdateChannelInfo
Metadata class containing properties about channel updates.
| Constructor Summary | |
|---|---|
UpdateChannelInfo(int deactivateAfterErrors)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getDeactivateAfterErrors()
|
boolean |
getFormatDetected()
Has the feed been grabbed for the first time, and successfully parsed? |
Exception |
getLastException()
|
long |
getLastUpdatedTimestamp()
|
int |
getNrProblemsOccurred()
|
void |
increaseProblemsOccurred(Exception e)
Increases the number of times a channel could not be read. |
void |
reset()
Resets the state, as if no problems ever occurred. |
void |
setFormatDetected(boolean formatDetected)
|
void |
setLastUpdatedTimestamp(long lastUpdatedTimestamp)
|
boolean |
shouldDeactivate()
Should the channel be deactivated? |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UpdateChannelInfo(int deactivateAfterErrors)
deactivateAfterErrors - Number of errors after which a channel should
not any longer be parsed periodically. Specify 0, if you do not
want auto-deactivation.| Method Detail |
|---|
public int getNrProblemsOccurred()
public int getDeactivateAfterErrors()
public Exception getLastException()
public void reset()
public void increaseProblemsOccurred(Exception e)
e - The Exception causing the channel parse problem.public boolean shouldDeactivate()
public boolean getFormatDetected()
public void setFormatDetected(boolean formatDetected)
public String toString()
toString in class Objectpublic long getLastUpdatedTimestamp()
public void setLastUpdatedTimestamp(long lastUpdatedTimestamp)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||