Class URLEvaluator

    • Constructor Detail

      • URLEvaluator

        public URLEvaluator()
    • Method Detail

      • addURL

        public void addURL​(java.lang.String url)
      • start

        public void start()
        Specified by:
        start in interface LifeCycle
      • evaluate

        public boolean evaluate​(java.lang.Object eventObject)
                         throws java.lang.NullPointerException,
                                EvaluationException
        Description copied from interface: EventEvaluator
        Evaluates whether the event passed as parameter matches some user-specified criteria.

        The Evaluator is free to evaluate the event as it pleases. In particular, the evaluation results may depend on previous events.

        Specified by:
        evaluate in interface EventEvaluator
        Parameters:
        eventObject - The event to evaluate
        Returns:
        true if there is a match, false otherwise.
        Throws:
        java.lang.NullPointerException - can be thrown in presence of null values
        EvaluationException - may be thrown during faulty evaluation
      • getName

        public java.lang.String getName()
        Description copied from interface: EventEvaluator
        Evaluators are named entities.
        Specified by:
        getName in interface EventEvaluator
        Returns:
        The name of this evaluator.
      • setName

        public void setName​(java.lang.String name)
        Description copied from interface: EventEvaluator
        Evaluators are named entities.
        Specified by:
        setName in interface EventEvaluator
      • stop

        public void stop()
        Specified by:
        stop in interface LifeCycle