org.fosstrak.llrp.commander.check
Class HealthCheck

java.lang.Object
  extended by org.fosstrak.llrp.commander.check.CheckItem
      extended by org.fosstrak.llrp.commander.check.HealthCheck

public class HealthCheck
extends CheckItem

This HealthCheck maintain a chain of CheckItem. when the PlugIn start up, it is triggered by validate each CheckItem in the chain. If any of them failed validation, the specific fix function will be called.

Version:
1.0
Author:
Haoning Zhang

Field Summary
 
Fields inherited from class org.fosstrak.llrp.commander.check.CheckItem
CATEGORY_ERROR, CATEGORY_FIX, CATEGORY_INFO, CATEGORY_WARN
 
Constructor Summary
HealthCheck()
          Default Constructor.
 
Method Summary
 void fix()
          Execute fix function of each check item in the chain
 void registerCheckItem(CheckItem aItem)
          Register new check items
 boolean validate()
          Validate each check item in the chain.
 
Methods inherited from class org.fosstrak.llrp.commander.check.CheckItem
addReportItem, addReportItem, clearAllReport, getReport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HealthCheck

public HealthCheck()
Default Constructor.

Method Detail

registerCheckItem

public void registerCheckItem(CheckItem aItem)
Register new check items

Parameters:
aItem - New Check Item

validate

public boolean validate()
Validate each check item in the chain.

Specified by:
validate in class CheckItem
Returns:
true if the check went ok, false otherwise.

fix

public void fix()
Execute fix function of each check item in the chain

Specified by:
fix in class CheckItem


Copyright © 2009. All Rights Reserved.