edu.cmu.aura.service
Class PostQueryWorker

java.lang.Object
  |
  +--edu.cmu.aura.gather.Target
        |
        +--edu.cmu.aura.service.PostQueryWorker

public class PostQueryWorker
extends edu.cmu.aura.gather.Target

Used in conjunction with SimpleService to provide a simple means of executing posted queries.

Simply calls computeQueryResult() periodically to get the result and send it to the client. The gather package is used by SimpleService to perform the periodic execution.

Triggers are not currently supported via this mechanism.


Constructor Summary
PostQueryWorker(SimpleService simpleService, SimpleEqualityPostedQuery postedQuery)
          Construct a PostQueryWorker.
 
Method Summary
 void update()
          Called by the Gatherer when it's time to execute this query.
 
Methods inherited from class edu.cmu.aura.gather.Target
getInterval, getNextDeadline, getTimeUntilDeadline
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostQueryWorker

public PostQueryWorker(SimpleService simpleService,
                       SimpleEqualityPostedQuery postedQuery)
Construct a PostQueryWorker.

Parameters:
simpleService - service on which the query is to execute
postedQuery - the PostedQuery that is to be executed
Method Detail

update

public void update()
Called by the Gatherer when it's time to execute this query. This method calls computeQueryResult() and passes the result to the client.

Specified by:
update in class edu.cmu.aura.gather.Target