one.world.io
Class QueryResponse

java.lang.Object
  |
  +--one.world.core.Tuple
        |
        +--one.world.core.Event
              |
              +--one.world.io.QueryResponse
All Implemented Interfaces:
Cloneable, Serializable

public class QueryResponse
extends Event

Implementation of a query response.

Version:
$Revision: 1.8 $
See Also:
InputRequest, IteratorRequest, IteratorResponse, Serialized Form

Field Summary
 long duration
          The initial duration for the lease.
 EventHandler iter
          The event handler for the iterator, which iterates a query's results.
 EventHandler lease
          The event handler for the lease that controls the result iterator.
 
Fields inherited from class one.world.core.Event
closure, source
 
Fields inherited from class one.world.core.Tuple
CLOSURE, id, ID, META_DATA, metaData, SOURCE
 
Constructor Summary
QueryResponse()
          Create a new, empty query response.
QueryResponse(EventHandler source, Object closure, EventHandler iter, EventHandler lease, long duration)
          Create a new query response.
 
Method Summary
 void validate()
          Validate this query response.
 
Methods inherited from class one.world.core.Tuple
clone, containsNonSymbolicHandler, equals, fields, get, getMetaData, getType, hasField, hashCode, hasMetaData, remove, set, setMetaData, toString, wrap
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

iter

public EventHandler iter
The event handler for the iterator, which iterates a query's results.

lease

public EventHandler lease
The event handler for the lease that controls the result iterator.

duration

public long duration
The initial duration for the lease.
See Also:
Duration
Constructor Detail

QueryResponse

public QueryResponse()
Create a new, empty query response.

QueryResponse

public QueryResponse(EventHandler source,
                     Object closure,
                     EventHandler iter,
                     EventHandler lease,
                     long duration)
Create a new query response.
Parameters:
source - The source for the new query response.
closure - The closure for the new query response.
iter - The result iterator's event handler for the new query response.
lease - The lease's event handler for the new query response.
duration - The initial lease duration.
Method Detail

validate

public void validate()
              throws TupleException
Validate this query response.
Overrides:
validate in class Event
Following copied from class: one.world.core.Tuple
Throws:
TupleException - Signals that the tuple is either malformed (i.e., does not conform to the tuple specification) or invalid (i.e., does not conform to the semantic constraints of its type).
See Also:
MalformedTupleException, InvalidTupleException, Type.validate(Class)


(C) Copyright 2001 UW CSE