|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fosstrak.llrp.commander.check.CheckItem
public abstract class CheckItem
Common interface that helps to run "check-processes" (processes that shall ensure the integrity of the LLRP commander and its folders/files).
Field Summary | |
---|---|
static int |
CATEGORY_ERROR
|
static int |
CATEGORY_FIX
|
static int |
CATEGORY_INFO
|
static int |
CATEGORY_WARN
|
Constructor Summary | |
---|---|
CheckItem()
|
Method Summary | |
---|---|
void |
addReportItem(java.util.ArrayList<java.lang.String> aItemList)
adds a list of error reports to the current error list. |
void |
addReportItem(java.lang.String aItem,
int aCategory)
add a specific error report. |
void |
clearAllReport()
clear out all the reports collected from previous health checks. |
abstract void |
fix()
invoke the repair functionality on the repair item. |
java.util.ArrayList<java.lang.String> |
getReport()
|
abstract boolean |
validate()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CATEGORY_ERROR
public static final int CATEGORY_FIX
public static final int CATEGORY_WARN
public static final int CATEGORY_INFO
Constructor Detail |
---|
public CheckItem()
Method Detail |
---|
public void addReportItem(java.lang.String aItem, int aCategory)
aItem
- the error report string.aCategory
- a category that describes the error.public void addReportItem(java.util.ArrayList<java.lang.String> aItemList)
aItemList
- new errors to add.public void clearAllReport()
public java.util.ArrayList<java.lang.String> getReport()
public abstract boolean validate()
public abstract void fix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |