Package org.apache.avro.ipc

Examples of org.apache.avro.ipc.NettyTransceiver$NettyTransceiverThreadFactory


    }

    private AvroSourceProtocol connect(final String hostname, final int port) {
        try {
            if (transceiver == null) {
                transceiver = new NettyTransceiver(new InetSocketAddress(hostname, port));
            }
        } catch (final IOException ioe) {
            LOGGER.error("Unable to create transceiver", ioe);
            return null;
        }
View Full Code Here


    return new NettyServer(responder, new InetSocketAddress(0));
  }
 
  @Override
  public Transceiver createTransceiver() throws Exception{
    return new NettyTransceiver(new InetSocketAddress(server.getPort()), 2000L);
  }
View Full Code Here

    }

    private AvroSourceProtocol connect(String hostname, int port) {
        try {
            if (transceiver == null) {
                transceiver = new NettyTransceiver(new InetSocketAddress(hostname, port));
            }
        } catch (IOException ioe) {
            LOGGER.error("Unable to create transceiver", ioe);
            return null;
        }
View Full Code Here

    }

    private AvroSourceProtocol connect(String hostname, int port) {
        try {
            if (transceiver == null) {
                transceiver = new NettyTransceiver(new InetSocketAddress(hostname, port));
            }
        } catch (IOException ioe) {
            LOGGER.error("Unable to create transceiver", ioe);
            return null;
        }
View Full Code Here

    AvroBSPMessageBundle<M> msg = new AvroBSPMessageBundle<M>();
    msg.setData(serializeMessage(bundle));
    Sender<M> sender = peers.get(addr);

    if (sender == null) {
      NettyTransceiver client = new NettyTransceiver(addr);
      sender = SpecificRequestor.getClient(Sender.class, client);
      peers.put(addr, sender);
    }

    sender.transfer(msg);
View Full Code Here

  public synchronized void start() throws IOException {
    if (log.isInfoEnabled()) {
      log.info("Starting Simple Ordering Netty client on '{}'", endpointAddress);
    }
    transceiver = new NettyTransceiver(endpointAddress);
    service = SpecificRequestor.getClient(OrderProcessingService.class, transceiver);
  }
View Full Code Here

TOP

Related Classes of org.apache.avro.ipc.NettyTransceiver$NettyTransceiverThreadFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.