edu.cmu.aura.service
Class QueryClientSkel

java.lang.Object
  |
  +--edu.cmu.aura.service.QueryClientSkel
All Implemented Interfaces:
edu.cmu.aura.service.rpc.Skel

public class QueryClientSkel
extends java.lang.Object
implements edu.cmu.aura.service.rpc.Skel

Provides service clients the ability to receive incoming posted query results and trigger results from the service. Clients should generally extend SimpleClient rather than using this class directly.


Constructor Summary
QueryClientSkel(QueryClient queryClient, edu.cmu.aura.service.rpc.SkelServer skelServer)
          Construct a QueryClientSkel for a given client using a specified SkelServer.
 
Method Summary
 java.lang.Object callMethod(java.lang.String methodName, java.util.ArrayList parameters)
          Called by skelServer to dispatch incoming calls.
 edu.cmu.aura.service.rpc.RemoteReference getReference()
          Returns a reference to this skel that may be used to send query results.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryClientSkel

public QueryClientSkel(QueryClient queryClient,
                       edu.cmu.aura.service.rpc.SkelServer skelServer)
Construct a QueryClientSkel for a given client using a specified SkelServer.

Parameters:
queryClient - the client to send incoming calls to
skelServer - the SkelServer that will accept incoming calls
Method Detail

callMethod

public java.lang.Object callMethod(java.lang.String methodName,
                                   java.util.ArrayList parameters)
                            throws java.lang.Exception
Called by skelServer to dispatch incoming calls.

Specified by:
callMethod in interface edu.cmu.aura.service.rpc.Skel
Parameters:
methodName - method name of incoming call
parameters - parameters to call
java.lang.Exception

getReference

public edu.cmu.aura.service.rpc.RemoteReference getReference()
Returns a reference to this skel that may be used to send query results.

Returns:
a reference to this skel