org.glite.rgma
Class QueryProperties

java.lang.Object
  extended by org.glite.rgma.QueryProperties

public class QueryProperties
extends java.lang.Object

The properties of a consumer query. The following static methods and constants are available:


Field Summary
static QueryProperties CONTINUOUS
          Stream data continuously, starting with the next inserted tuple.
static QueryProperties HISTORY
          Retrieve data from HISTORY producers.
static QueryProperties LATEST
          Retrieve data from LATEST producers.
static QueryProperties STATIC
          Retrieve data from STATIC producers.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this object with the specified object.
static QueryProperties getContinuous(TimeInterval timeInterval)
          Returns a CONTINUOUS QueryProperties object with a time interval.
static QueryProperties getHistory(TimeInterval timeInterval)
          Returns a HISTORY QueryProperties object with a time interval.
static QueryProperties getLatest(TimeInterval timeInterval)
          Returns a LATEST QueryProperties object with a time interval.
 TimeInterval getTimeInterval()
          Returns the time interval associated with this QueryProperties.
 int hashCode()
          Returns a hash code value for the object.
 boolean hasTimeInterval()
          Determines if this QueryProperties has an associated TimeInterval.
 boolean isContinuous()
          Determines if this is a CONTINUOUS query.
 boolean isHistory()
          Determines if this is a HISTORY query.
 boolean isLatest()
          Determines if this is a LATEST query.
 boolean isStatic()
          Determines if this is a STATIC query.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CONTINUOUS

public static final QueryProperties CONTINUOUS
Stream data continuously, starting with the next inserted tuple.


LATEST

public static final QueryProperties LATEST
Retrieve data from LATEST producers.


HISTORY

public static final QueryProperties HISTORY
Retrieve data from HISTORY producers.


STATIC

public static final QueryProperties STATIC
Retrieve data from STATIC producers.

Method Detail

getContinuous

public static final QueryProperties getContinuous(TimeInterval timeInterval)
Returns a CONTINUOUS QueryProperties object with a time interval.

Parameters:
timeInterval - Time interval for query.
Returns:
A QueryProperties object.

getHistory

public static final QueryProperties getHistory(TimeInterval timeInterval)
Returns a HISTORY QueryProperties object with a time interval.

Parameters:
timeInterval - Time interval for query.
Returns:
A QueryProperties object.

getLatest

public static final QueryProperties getLatest(TimeInterval timeInterval)
Returns a LATEST QueryProperties object with a time interval.

Parameters:
timeInterval - Time interval for query.
Returns:
A QueryProperties object.

isContinuous

public boolean isContinuous()
Determines if this is a CONTINUOUS query.

Returns:
true if a CONTINUOUS query, otherwise false.

isHistory

public boolean isHistory()
Determines if this is a HISTORY query.

Returns:
true if a HISTORY query, otherwise false.

isLatest

public boolean isLatest()
Determines if this is a LATEST query.

Returns:
true if a LATEST query, otherwise false.

isStatic

public boolean isStatic()
Determines if this is a STATIC query.

Returns:
true if a STATIC query, otherwise false.

getTimeInterval

public TimeInterval getTimeInterval()
Returns the time interval associated with this QueryProperties.

Returns:
The time interval associated with this QueryProperties, or null if no time interval has been set.

equals

public boolean equals(java.lang.Object obj)
Compares this object with the specified object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - Object to compare.
Returns:
true if this object and the specified object are equal.
See Also:
Object.equals(java.lang.Object)

hasTimeInterval

public boolean hasTimeInterval()
Determines if this QueryProperties has an associated TimeInterval.

Returns:
true if it has a TimeInterval, otherwise false.

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
A hash code value for this object.
See Also:
Object.hashCode()

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of the object.
See Also:
Object.toString()