org.glite.ce.monitorapij.queryprocessor
Interface QueryProcessor


public interface QueryProcessor

Instances of classes that implement this interface are used to process queries, that is evaluating if a sensor event matches a specified query.

Author:
Luigi Zangrando (zangrando@pd.infn.it)

Method Summary
 QueryResult[] evaluate(Query query, Event event)
          Evaluate if the specified event satisfies the query requirements.
 java.lang.String getName()
          Get the name of this QueryProcessor.
 

Method Detail

getName

public java.lang.String getName()
Get the name of this QueryProcessor.

Returns:
The name of this QueryProcessor.

evaluate

public QueryResult[] evaluate(Query query,
                              Event event)
                       throws java.lang.Exception
Evaluate if the specified event satisfies the query requirements.

Parameters:
query - The Query to be processed.
event - The Event to be evaluated.
Returns:
An array of QueryResult containing the response of the evaluation.
Throws:
java.lang.Exception - Throws exception if parameters are not correctly specified.