Package ch.mobi.mobitor.domain.screen
Class DefaultRuleEvaluation
- java.lang.Object
-
- ch.mobi.mobitor.domain.screen.DefaultRuleEvaluation
-
- All Implemented Interfaces:
ch.mobi.mobitor.domain.screen.RuleEvaluation
public class DefaultRuleEvaluation extends Object implements ch.mobi.mobitor.domain.screen.RuleEvaluation
-
-
Constructor Summary
Constructors Constructor Description DefaultRuleEvaluation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddViolation(String env, ch.mobi.mobitor.plugins.api.domain.screen.information.ApplicationInformation applicationInformation, ch.mobi.mobitor.domain.screen.RuleViolationSeverity severity, String message)Set<String>getAffectedEnvironments()List<RuleMessage>getMessages(String environment)booleanhasErrors()booleanhasViolationsOrWarnings()booleanhasWarnings()
-
-
-
Method Detail
-
addViolation
public void addViolation(String env, ch.mobi.mobitor.plugins.api.domain.screen.information.ApplicationInformation applicationInformation, ch.mobi.mobitor.domain.screen.RuleViolationSeverity severity, String message)
- Specified by:
addViolationin interfacech.mobi.mobitor.domain.screen.RuleEvaluation
-
hasErrors
public boolean hasErrors()
- Specified by:
hasErrorsin interfacech.mobi.mobitor.domain.screen.RuleEvaluation
-
hasWarnings
public boolean hasWarnings()
- Specified by:
hasWarningsin interfacech.mobi.mobitor.domain.screen.RuleEvaluation
-
hasViolationsOrWarnings
public boolean hasViolationsOrWarnings()
-
getMessages
public List<RuleMessage> getMessages(String environment)
-
-