Skip to content

Commit

Permalink
Preciser method name, adding AlertCondition to NegativeCheckResult.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisoelkers committed May 6, 2015
1 parent 9003bf8 commit b3e9520
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -69,7 +69,7 @@ protected AbstractAlertCondition(Stream stream, String id, Type type, DateTime c

}

protected abstract CheckResult runCheck();
protected abstract AlertCondition.CheckResult runCheck();

@Override
public String getId() {
Expand Down Expand Up @@ -106,7 +106,7 @@ public Map<String, Object> getParameters() {
}

@Override
public Integer getBacklog() {
public Integer getBacklogSize() {
final Object rawParameter = getParameters().get("backlog");
if (rawParameter != null && rawParameter instanceof Number) {
return (Integer) rawParameter;
Expand Down Expand Up @@ -188,8 +188,8 @@ public List<MessageSummary> getMatchingMessages() {
}

public static class NegativeCheckResult extends CheckResult {
public NegativeCheckResult() {
super(false, null, null, null, null);
public NegativeCheckResult(AlertCondition alertCondition) {
super(false, alertCondition, null, null, null);
}
}

Expand Down

0 comments on commit b3e9520

Please sign in to comment.