org.apache.avro.ipc.reflect
Class ReflectRequestor
java.lang.Object
org.apache.avro.ipc.Requestor
org.apache.avro.ipc.specific.SpecificRequestor
org.apache.avro.ipc.reflect.ReflectRequestor
- All Implemented Interfaces:
- InvocationHandler
public class ReflectRequestor
- extends SpecificRequestor
A Requestor
for existing interfaces.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectRequestor
public ReflectRequestor(Class<?> iface,
Transceiver transceiver)
throws IOException
- Throws:
IOException
ReflectRequestor
protected ReflectRequestor(Protocol protocol,
Transceiver transceiver)
throws IOException
- Throws:
IOException
getDatumWriter
protected DatumWriter<Object> getDatumWriter(Schema schema)
- Overrides:
getDatumWriter
in class SpecificRequestor
getDatumReader
protected DatumReader<Object> getDatumReader(Schema schema)
- Overrides:
getDatumReader
in class SpecificRequestor
getClient
public static <T> T getClient(Class<T> iface,
Transceiver transciever)
throws IOException
- Create a proxy instance whose methods invoke RPCs.
- Throws:
IOException
getClient
public static <T> T getClient(Class<T> iface,
Transceiver transciever,
ReflectData reflectData)
throws IOException
- Create a proxy instance whose methods invoke RPCs.
- Throws:
IOException
getClient
public static <T> T getClient(Class<T> iface,
ReflectRequestor rreq)
throws IOException
- Create a proxy instance whose methods invoke RPCs.
- Throws:
IOException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.