edu.cmu.aura.service
Class QueryClientStub

java.lang.Object
  |
  +--edu.cmu.aura.service.rpc.GenericStub
        |
        +--edu.cmu.aura.service.QueryClientStub
All Implemented Interfaces:
QueryClient, java.rmi.Remote

public class QueryClientStub
extends edu.cmu.aura.service.rpc.GenericStub
implements QueryClient

Stub that allows primitive services to perform callbacks on clients that support callbacks.


Constructor Summary
QueryClientStub(edu.cmu.aura.service.rpc.RemoteReference dest)
          Create a new QueryClientStub.
 
Method Summary
 edu.cmu.aura.service.rpc.RemoteReference getReference()
          Returns a reference to the client.
 void queryExecuted(int queryID, QueryResult queryResult)
          Inform a client of the result of a posted query.
 void triggerFired(int triggerID, QueryResult queryResult)
          Inform a client of the result of a trigger execution.
 
Methods inherited from class edu.cmu.aura.service.rpc.GenericStub
setDest
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryClientStub

public QueryClientStub(edu.cmu.aura.service.rpc.RemoteReference dest)
Create a new QueryClientStub.

Parameters:
dest - a reference to the client.
Method Detail

queryExecuted

public void queryExecuted(int queryID,
                          QueryResult queryResult)
                   throws java.rmi.RemoteException
Inform a client of the result of a posted query.

Specified by:
queryExecuted in interface QueryClient
Parameters:
queryID - the ID of the posted query
queryResult - the result of a posted query execution
java.rmi.RemoteException

triggerFired

public void triggerFired(int triggerID,
                         QueryResult queryResult)
                  throws java.rmi.RemoteException
Inform a client of the result of a trigger execution.

Specified by:
triggerFired in interface QueryClient
Parameters:
triggerID - the ID of the trigger
queryResult - the result of trigger execution
java.rmi.RemoteException

getReference

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

Specified by:
getReference in interface QueryClient
Returns:
a reference to the client