edu.cmu.aura.service
Interface QueryClient

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
QueryClientStub, SimpleClient

public interface QueryClient
extends java.rmi.Remote

QueryClient is implemented by primitive service clients that desire to receive results from posted queries or from triggers. The remote service executes callbacks using this interface.


Method Summary
 edu.cmu.aura.service.rpc.RemoteReference getReference()
          Returns a reference to this client.
 void queryExecuted(int queryID, QueryResult queryResult)
          Called by a service to inform a client of the result of a posted query.
 void triggerFired(int triggerID, QueryResult queryResult)
          Called by a service to inform clients of results of triggers.
 

Method Detail

queryExecuted

public void queryExecuted(int queryID,
                          QueryResult queryResult)
                   throws java.rmi.RemoteException
Called by a service to inform a client of the result of a posted query.

Parameters:
queryID - the ID of the posted query
queryResult - the result of the posted query execution
java.rmi.RemoteException

triggerFired

public void triggerFired(int triggerID,
                         QueryResult queryResult)
                  throws java.rmi.RemoteException
Called by a service to inform clients of results of triggers.

Parameters:
queryResult - the result of a trigger execution
java.rmi.RemoteException

getReference

public edu.cmu.aura.service.rpc.RemoteReference getReference()
Returns a reference to this client.

Returns:
return a reference to this client