|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.cmu.aura.service.SimpleClient
This class should be extended by clients that desire to receive results from posted queries and triggers. One or both of queryExecuted() and triggerFired() should be implemented by the client in order to actually receive results from posted queries and triggers.
| Field Summary | |
protected edu.cmu.aura.service.rpc.RemoteReference |
refToThis
|
protected QueryClientSkel |
skel
|
protected edu.cmu.aura.service.rpc.SkelServer |
skelServer
|
| Constructor Summary | |
SimpleClient(int port)
Construct a simple client listening on a specified port. |
|
| Method Summary | |
void |
finalize()
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected edu.cmu.aura.service.rpc.SkelServer skelServer
protected QueryClientSkel skel
protected edu.cmu.aura.service.rpc.RemoteReference refToThis
| Constructor Detail |
public SimpleClient(int port)
throws java.io.IOException
port - port to listen on| Method Detail |
public void queryExecuted(int queryID,
QueryResult queryResult)
throws java.rmi.RemoteException
queryExecuted in interface QueryClientqueryID - the ID of the posted queryqueryResult - the result of the posted query execution
java.rmi.RemoteException
public void triggerFired(int triggerID,
QueryResult queryResult)
throws java.rmi.RemoteException
triggerFired in interface QueryClientqueryResult - the result of a trigger execution
java.rmi.RemoteExceptionpublic edu.cmu.aura.service.rpc.RemoteReference getReference()
getReference in interface QueryClientpublic void finalize()
finalize in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||