public class SpecificResponder extends GenericResponder
Responder
for generated interfaces.rpcMetaPlugins
Constructor and Description |
---|
SpecificResponder(Class iface,
Object impl) |
SpecificResponder(Class iface,
Object impl,
SpecificData data) |
SpecificResponder(Protocol protocol,
Object impl) |
SpecificResponder(Protocol protocol,
Object impl,
SpecificData data) |
Modifier and Type | Method and Description |
---|---|
protected DatumReader<Object> |
getDatumReader(Schema actual,
Schema expected) |
protected DatumWriter<Object> |
getDatumWriter(Schema schema) |
SpecificData |
getSpecificData() |
Object |
respond(Protocol.Message message,
Object request)
Computes the response for a message.
|
void |
writeError(Schema schema,
Object error,
Encoder out)
Writes an error message.
|
getGenericData, readRequest, writeResponse
public SpecificResponder(Class iface, Object impl, SpecificData data)
public SpecificResponder(Protocol protocol, Object impl, SpecificData data)
public SpecificData getSpecificData()
protected DatumWriter<Object> getDatumWriter(Schema schema)
getDatumWriter
in class GenericResponder
protected DatumReader<Object> getDatumReader(Schema actual, Schema expected)
getDatumReader
in class GenericResponder
public void writeError(Schema schema, Object error, Encoder out) throws IOException
Responder
writeError
in class GenericResponder
IOException
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.