org.glite.ce.monitorapij.queryprocessor
Class QueryResult

java.lang.Object
  extended byorg.glite.ce.monitorapij.queryprocessor.QueryResult

public class QueryResult
extends java.lang.Object

This class is used to store the result of a query processing operation. It contains a boolean specifying if an analized event matches a query requirement, the event message and a description String added by the QueryProcessor.

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

Constructor Summary
QueryResult(boolean successfully, java.lang.String message, java.lang.String description)
          Creates a new QueryResult object.
 
Method Summary
 java.lang.String getDescription()
          Get the description of the evaluation.
 java.lang.String getMessage()
          Get the message of the evaluated event.
 boolean isSuccessfully()
          Check if the result of the query is positive or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResult

public QueryResult(boolean successfully,
                   java.lang.String message,
                   java.lang.String description)
Creates a new QueryResult object.

Parameters:
successfully - A boolean specifying if an analyzed event matches a query requirement
message - The event message.
description - A description added by the QueryProcessor.
Method Detail

isSuccessfully

public boolean isSuccessfully()
Check if the result of the query is positive or not.

Returns:
A boolean result.

getMessage

public java.lang.String getMessage()
Get the message of the evaluated event.

Returns:
The message of the evaluated event.

getDescription

public java.lang.String getDescription()
Get the description of the evaluation.

Returns:
The description of the evaluation.