/** * Checks whether the input matches the regular expression. * * @param input * @return * @throws EvaluationException */ public boolean matches(String input) throws EvaluationException { if(start) { java.util.regex.Matcher matcher = pattern.matcher(input); return matcher.find(); } else { throw new EvaluationException("Matcher ["+regex+"] not started"); } }
public boolean evaluate(E event) throws EvaluationException { if (!isStarted()) { throw new IllegalStateException("Evaluator [" + name + "] was called in stopped state"); } try { Boolean result = (Boolean) scriptEvaluator.evaluate(getParameterValues(event)); return result.booleanValue(); } catch (Exception ex) { errorCount++; if (errorCount >= ERROR_THRESHOLD) { stop(); } throw new EvaluationException("Evaluator [" + name + "] caused an exception", ex); } }
/** * Checks whether the input matches the regular expression. * * @param input * @return * @throws EvaluationException */ public boolean matches(String input) throws EvaluationException { if(start) { java.util.regex.Matcher matcher = pattern.matcher(input); return matcher.find(); } else { throw new EvaluationException("Matcher ["+regex+"] not started"); } }
/** * Checks whether the input matches the regular expression. * * @param input * @return * @throws EvaluationException */ public boolean matches(String input) throws EvaluationException { if (start) { java.util.regex.Matcher matcher = pattern.matcher(input); return matcher.find(); } else { throw new EvaluationException("Matcher [" + regex + "] not started"); } }
/** * Checks whether the input matches the regular expression. * * @param input * @return * @throws EvaluationException */ public boolean matches(String input) throws EvaluationException { if (start) { java.util.regex.Matcher matcher = pattern.matcher(input); return matcher.find(); } else { throw new EvaluationException("Matcher [" + regex + "] not started"); } }
/** * Checks whether the input matches the regular expression. * * @param input * @return * @throws EvaluationException */ public boolean matches(String input) throws EvaluationException { if(start) { java.util.regex.Matcher matcher = pattern.matcher(input); return matcher.find(); } else { throw new EvaluationException("Matcher ["+regex+"] not started"); } }
/** * Checks whether the input matches the regular expression. * * @param input * @return * @throws EvaluationException */ public boolean matches(String input) throws EvaluationException { if (start) { java.util.regex.Matcher matcher = pattern.matcher(input); return matcher.find(); } else { throw new EvaluationException("Matcher [" + regex + "] not started"); } }
/** * Checks whether the input matches the regular expression. * * @param input * @return * @throws EvaluationException */ public boolean matches(String input) throws EvaluationException { if(start) { java.util.regex.Matcher matcher = pattern.matcher(input); return matcher.find(); } else { throw new EvaluationException("Matcher ["+regex+"] not started"); } }
/** * Checks whether the input matches the regular expression. * * @param input * @return * @throws EvaluationException */ public boolean matches(String input) throws EvaluationException { if(start) { java.util.regex.Matcher matcher = pattern.matcher(input); return matcher.find(); } else { throw new EvaluationException("Matcher ["+regex+"] not started"); } }
public boolean evaluate(E event) throws EvaluationException { if (!isStarted()) { throw new IllegalStateException("Evaluator [" + name + "] was called in stopped state"); } try { Boolean result = (Boolean) scriptEvaluator.evaluate(getParameterValues(event)); return result.booleanValue(); } catch (Exception ex) { errorCount++; if (errorCount >= ERROR_THRESHOLD) { stop(); } throw new EvaluationException("Evaluator [" + name + "] caused an exception", ex); } }
public boolean evaluate(E event) throws EvaluationException { if (!isStarted()) { throw new IllegalStateException("Evaluator [" + name + "] was called in stopped state"); } try { Boolean result = (Boolean) scriptEvaluator.evaluate(getParameterValues(event)); return result.booleanValue(); } catch (Exception ex) { errorCount++; if (errorCount >= ERROR_THRESHOLD) { stop(); } throw new EvaluationException("Evaluator [" + name + "] caused an exception", ex); } }
public boolean evaluate(E event) throws EvaluationException { if (!isStarted()) { throw new IllegalStateException("Evaluator [" + name + "] was called in stopped state"); } try { Boolean result = (Boolean) scriptEvaluator.evaluate(getParameterValues(event)); return result.booleanValue(); } catch (Exception ex) { errorCount++; if (errorCount >= ERROR_THRESHOLD) { stop(); } throw new EvaluationException("Evaluator [" + name + "] caused an exception", ex); } }
public boolean evaluate(E event) throws EvaluationException { if (!isStarted()) { throw new IllegalStateException("Evaluator [" + name + "] was called in stopped state"); } try { Boolean result = (Boolean) scriptEvaluator.evaluate(getParameterValues(event)); return result.booleanValue(); } catch (Exception ex) { errorCount++; if (errorCount >= ERROR_THRESHOLD) { stop(); } throw new EvaluationException("Evaluator [" + name + "] caused an exception", ex); } }
public boolean evaluate(E event) throws EvaluationException { if (!isStarted()) { throw new IllegalStateException("Evaluator [" + name + "] was called in stopped state"); } try { Boolean result = (Boolean) scriptEvaluator.evaluate(getParameterValues(event)); return result.booleanValue(); } catch (Exception ex) { errorCount++; if (errorCount >= ERROR_THRESHOLD) { stop(); } throw new EvaluationException("Evaluator [" + name + "] caused an exception", ex); } }
public boolean evaluate(E event) throws EvaluationException { if (!isStarted()) { throw new IllegalStateException("Evaluator [" + name + "] was called in stopped state"); } try { Boolean result = (Boolean) scriptEvaluator.evaluate(getParameterValues(event)); return result.booleanValue(); } catch (Exception ex) { errorCount++; if (errorCount >= ERROR_THRESHOLD) { stop(); } throw new EvaluationException("Evaluator [" + name + "] caused an exception", ex); } }
public boolean evaluate(E event) throws EvaluationException { if (!isStarted()) { throw new IllegalStateException("Evaluator [" + name + "] was called in stopped state"); } try { Boolean result = (Boolean) ee.evaluate(getParameterValues(event)); return result.booleanValue(); } catch (Exception ex) { errorCount++; if (errorCount >= ERROR_THRESHOLD) { stop(); } throw new EvaluationException("Evaluator [" + name + "] caused an exception", ex); } }