Search in sources :

Example 1 with NettyTransceiver

use of org.apache.avro.ipc.NettyTransceiver in project camel by apache.

the class AvroNettyConsumerTest method initializeTranceiver.

@Override
protected void initializeTranceiver() throws IOException {
    transceiver = new NettyTransceiver(new InetSocketAddress("localhost", avroPort));
    requestor = new SpecificRequestor(KeyValueProtocol.class, transceiver);
    transceiverMessageInRoute = new NettyTransceiver(new InetSocketAddress("localhost", avroPortMessageInRoute));
    requestorMessageInRoute = new SpecificRequestor(KeyValueProtocol.class, transceiverMessageInRoute);
    transceiverForWrongMessages = new NettyTransceiver(new InetSocketAddress("localhost", avroPortForWrongMessages));
    requestorForWrongMessages = new SpecificRequestor(KeyValueProtocol.class, transceiverForWrongMessages);
    reflectTransceiver = new NettyTransceiver(new InetSocketAddress("localhost", avroPortReflection));
    reflectRequestor = new ReflectRequestor(TestReflection.class, reflectTransceiver);
}
Also used : NettyTransceiver(org.apache.avro.ipc.NettyTransceiver) SpecificRequestor(org.apache.avro.ipc.specific.SpecificRequestor) InetSocketAddress(java.net.InetSocketAddress) ReflectRequestor(org.apache.avro.ipc.reflect.ReflectRequestor) TestReflection(org.apache.camel.avro.test.TestReflection) KeyValueProtocol(org.apache.camel.avro.generated.KeyValueProtocol)

Aggregations

InetSocketAddress (java.net.InetSocketAddress)1 NettyTransceiver (org.apache.avro.ipc.NettyTransceiver)1 ReflectRequestor (org.apache.avro.ipc.reflect.ReflectRequestor)1 SpecificRequestor (org.apache.avro.ipc.specific.SpecificRequestor)1 KeyValueProtocol (org.apache.camel.avro.generated.KeyValueProtocol)1 TestReflection (org.apache.camel.avro.test.TestReflection)1