|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avro.ipc.Requestor
public abstract class Requestor
Base class for the client side of a protocol interaction.
Field Summary | |
---|---|
protected List<RPCPlugin> |
rpcMetaPlugins
|
Constructor Summary | |
---|---|
protected |
Requestor(Protocol local,
Transceiver transceiver)
|
Method Summary | |
---|---|
void |
addRPCPlugin(RPCPlugin plugin)
Adds a new plugin to manipulate RPC metadata. |
Protocol |
getLocal()
|
Protocol |
getRemote()
Return the remote protocol. |
Transceiver |
getTransceiver()
|
abstract Exception |
readError(Schema schema,
Decoder in)
Reads an error message. |
abstract Object |
readResponse(Schema schema,
Decoder in)
Reads a response message. |
Object |
request(String messageName,
Object request)
Writes a request message and reads a response or error message. |
abstract void |
writeRequest(Schema schema,
Object request,
Encoder out)
Writes a request message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List<RPCPlugin> rpcMetaPlugins
Constructor Detail |
---|
protected Requestor(Protocol local, Transceiver transceiver) throws IOException
IOException
Method Detail |
---|
public Protocol getLocal()
public Transceiver getTransceiver()
public void addRPCPlugin(RPCPlugin plugin)
plugin
- a plugin that will manipulate RPC metadatapublic Object request(String messageName, Object request) throws Exception
Exception
public Protocol getRemote() throws IOException
IOException
public abstract void writeRequest(Schema schema, Object request, Encoder out) throws IOException
IOException
public abstract Object readResponse(Schema schema, Decoder in) throws IOException
IOException
public abstract Exception readError(Schema schema, Decoder in) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |