public class ReflectRequestor extends SpecificRequestor
Requestor for existing interfaces.Requestor.TransceiverCallback<T>rpcMetaPlugins| Modifier | Constructor and Description | 
|---|---|
  | 
ReflectRequestor(Class<?> iface,
                Transceiver transceiver)  | 
  | 
ReflectRequestor(Class<?> iface,
                Transceiver transceiver,
                ReflectData data)  | 
protected  | 
ReflectRequestor(Protocol protocol,
                Transceiver transceiver)  | 
  | 
ReflectRequestor(Protocol protocol,
                Transceiver transceiver,
                ReflectData data)  | 
| Modifier and Type | Method and Description | 
|---|---|
static <T> T | 
getClient(Class<T> iface,
         ReflectRequestor rreq)
Create a proxy instance whose methods invoke RPCs. 
 | 
static <T> T | 
getClient(Class<T> iface,
         Transceiver transceiver)
Create a proxy instance whose methods invoke RPCs. 
 | 
static <T> T | 
getClient(Class<T> iface,
         Transceiver transceiver,
         ReflectData reflectData)
Create a proxy instance whose methods invoke RPCs. 
 | 
protected DatumReader<Object> | 
getDatumReader(Schema writer,
              Schema reader)  | 
protected DatumWriter<Object> | 
getDatumWriter(Schema schema)  | 
ReflectData | 
getReflectData()  | 
getClient, getClient, getDatumReader, getRemote, getSpecificData, invoke, readError, readResponse, writeRequestaddRPCPlugin, getLocal, getRemote, getTransceiver, readError, readResponse, request, requestpublic ReflectRequestor(Class<?> iface, Transceiver transceiver) throws IOException
IOExceptionprotected ReflectRequestor(Protocol protocol, Transceiver transceiver) throws IOException
IOExceptionpublic ReflectRequestor(Class<?> iface, Transceiver transceiver, ReflectData data) throws IOException
IOExceptionpublic ReflectRequestor(Protocol protocol, Transceiver transceiver, ReflectData data) throws IOException
IOExceptionpublic ReflectData getReflectData()
protected DatumWriter<Object> getDatumWriter(Schema schema)
getDatumWriter in class SpecificRequestorprotected DatumReader<Object> getDatumReader(Schema writer, Schema reader)
getDatumReader in class SpecificRequestorpublic static <T> T getClient(Class<T> iface, Transceiver transceiver) throws IOException
IOExceptionpublic static <T> T getClient(Class<T> iface, Transceiver transceiver, ReflectData reflectData) throws IOException
IOExceptionpublic static <T> T getClient(Class<T> iface, ReflectRequestor rreq) throws IOException
IOExceptionCopyright © 2009–2021 The Apache Software Foundation. All rights reserved.