Package org.apache.avro.ipc

Examples of org.apache.avro.ipc.SaslSocketTransceiver


      if (hasexited) {
        LOG.error("Could not start subprocess");
        throw new RuntimeException("Could not start subprocess");
      }
      this.clientTransceiver
        = new SaslSocketTransceiver(new InetSocketAddress(outputService.inputPort()));
      this.inputClient =
        SpecificRequestor.getClient(InputProtocol.class, clientTransceiver);


    } catch (Exception t) {
View Full Code Here


      if (hasexited) {
        LOG.error("Could not start subprocess");
        throw new RuntimeException("Could not start subprocess");
      }
      this.clientTransceiver
        = new SaslSocketTransceiver(new InetSocketAddress(outputService.inputPort()));
      this.inputClient =
        SpecificRequestor.getClient(InputProtocol.class, clientTransceiver);


    } catch (Exception t) {
View Full Code Here

    String clientPortString = System.getenv("AVRO_TETHER_OUTPUT_PORT");
    if (clientPortString == null)
      throw new RuntimeException("AVRO_TETHER_OUTPUT_PORT env var is null");
    int clientPort = Integer.parseInt(clientPortString);
    this.clientTransceiver =
      new SaslSocketTransceiver(new InetSocketAddress(clientPort));
    this.outputClient = SpecificRequestor.getClient(OutputProtocol.class, clientTransceiver);

    // send inputPort to parent
    outputClient.configure(inputPort);
  }
View Full Code Here

    String clientPortString = System.getenv("AVRO_TETHER_OUTPUT_PORT");
    if (clientPortString == null)
      throw new RuntimeException("AVRO_TETHER_OUTPUT_PORT env var is null");
    int clientPort = Integer.parseInt(clientPortString);
    this.clientTransceiver =
      new SaslSocketTransceiver(new InetSocketAddress(clientPort));
    this.outputClient = SpecificRequestor.getClient(OutputProtocol.class, clientTransceiver);

    // send inputPort to parent
    outputClient.configure(inputPort);
  }
View Full Code Here

    }

    switch (proto) {
    case SASL:
      this.clientTransceiver =
      new SaslSocketTransceiver(new InetSocketAddress(clientPort));
      this.outputClient = SpecificRequestor.getClient(OutputProtocol.class, clientTransceiver);
      break;

    case HTTP:
      this.clientTransceiver =new HttpTransceiver(new URL("http://127.0.0.1:"+clientPort));
View Full Code Here

        throw new RuntimeException("Could not start subprocess");
      }
      // open client, connecting to sub-process
      switch (proto) {
      case SASL:
        this.clientTransceiver =new SaslSocketTransceiver(new InetSocketAddress(outputService.inputPort()));
        break;
      case HTTP:
        this.clientTransceiver =new HttpTransceiver(new URL("http://127.0.0.1:"+outputService.inputPort()));
        break;
      default:
View Full Code Here

    } catch(UnknownHostException e) {
      throw new SparqlException("Invalid host: " + host, e);
    }

    try {
      transceiver = new SaslSocketTransceiver(address);
    } catch(IOException e) {
      throw new SparqlException("Socket error connecting client", e);
    }
   
    try {
View Full Code Here

  public void helpTestProtocolIterator(int resultRows) throws Exception {
    DummySherpaServer server = new DummySherpaServer(resultRows);
    InetSocketAddress serverAddress = server.getAddress();
   
    try {
      Transceiver tr = new SaslSocketTransceiver(serverAddress);
      SpecificRequestor requestor = new SpecificRequestor(SherpaServer.class, tr);
      SherpaServer queryApi = SpecificRequestor.getClient(SherpaServer.class, requestor);
      QueryExecution protocol = new QueryExecution(queryApi);

      protocol.query("fake command",null,null);     
View Full Code Here

 
    DummySherpaServer server = new DummySherpaServer(resultRows);
    InetSocketAddress serverAddress = server.getAddress();
   
    try {
      Transceiver tr = new SaslSocketTransceiver(serverAddress);
      SpecificRequestor requestor = new SpecificRequestor(SherpaServer.class, tr);
      SherpaServer queryApi = SpecificRequestor.getClient(SherpaServer.class, requestor);

      for(int i=0; i<3; i++) {
        //logger.debug("running command {}", i);
View Full Code Here

TOP

Related Classes of org.apache.avro.ipc.SaslSocketTransceiver

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.