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,
org.apache.avro.reflect.ReflectData data) |
protected |
ReflectRequestor(org.apache.avro.Protocol protocol,
Transceiver transceiver) |
|
ReflectRequestor(org.apache.avro.Protocol protocol,
Transceiver transceiver,
org.apache.avro.reflect.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,
org.apache.avro.reflect.ReflectData reflectData)
Create a proxy instance whose methods invoke RPCs.
|
protected org.apache.avro.io.DatumReader<Object> |
getDatumReader(org.apache.avro.Schema writer,
org.apache.avro.Schema reader) |
protected org.apache.avro.io.DatumWriter<Object> |
getDatumWriter(org.apache.avro.Schema schema) |
org.apache.avro.reflect.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(org.apache.avro.Protocol protocol,
Transceiver transceiver)
throws IOException
IOExceptionpublic ReflectRequestor(Class<?> iface, Transceiver transceiver, org.apache.avro.reflect.ReflectData data) throws IOException
IOExceptionpublic ReflectRequestor(org.apache.avro.Protocol protocol,
Transceiver transceiver,
org.apache.avro.reflect.ReflectData data)
throws IOException
IOExceptionpublic org.apache.avro.reflect.ReflectData getReflectData()
protected org.apache.avro.io.DatumWriter<Object> getDatumWriter(org.apache.avro.Schema schema)
getDatumWriter in class SpecificRequestorprotected org.apache.avro.io.DatumReader<Object> getDatumReader(org.apache.avro.Schema writer, org.apache.avro.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, org.apache.avro.reflect.ReflectData reflectData) throws IOException
IOExceptionpublic static <T> T getClient(Class<T> iface, ReflectRequestor rreq) throws IOException
IOExceptionCopyright © 2009–2025 The Apache Software Foundation. All rights reserved.