use of org.apache.avro.ipc.reflect.ReflectResponder in project camel by apache.
the class AvroNettyProducerTest method initializeServer.
@Override
protected void initializeServer() {
if (server == null) {
server = new NettyServer(new SpecificResponder(KeyValueProtocol.PROTOCOL, keyValue), new InetSocketAddress("localhost", avroPort));
server.start();
}
if (serverReflection == null) {
serverReflection = new NettyServer(new ReflectResponder(TestReflection.class, testReflection), new InetSocketAddress("localhost", avroPortReflection));
serverReflection.start();
}
}
use of org.apache.avro.ipc.reflect.ReflectResponder in project camel by apache.
the class AvroHttpProducerTest method initializeServer.
@Override
protected void initializeServer() throws IOException {
if (server == null) {
server = new HttpServer(new SpecificResponder(KeyValueProtocol.PROTOCOL, keyValue), avroPort);
server.start();
}
if (serverReflection == null) {
serverReflection = new HttpServer(new ReflectResponder(TestReflection.class, testReflection), avroPortReflection);
serverReflection.start();
}
}
Aggregations