Examples of TBufferedSocket


Examples of com.cloudera.flume.handlers.thrift.TBufferedSocket

      throw new TTransportException(TTransportException.NOT_OPEN,
          "No underlying server socket.");
    }
    try {
      Socket result = serverSocket_.accept();
      TSocket result2 = new TBufferedSocket(result);
      result2.setTimeout(clientTimeout_);
      return result2;
    } catch (IOException iox) {
      throw new TTransportException(iox);
    }
  }
View Full Code Here

Examples of org.apache.accumulo.core.util.TBufferedSocket

    }
   
    @Override
    public TProcessor getProcessor(TTransport trans) {
      if (trans instanceof TBufferedSocket) {
        TBufferedSocket tsock = (TBufferedSocket) trans;
        clientAddress.set(tsock.getClientString());
      }
      return super.getProcessor(trans);
    }
View Full Code Here

Examples of org.apache.accumulo.core.util.TBufferedSocket

      super(processor);
    }
   
    public TProcessor getProcessor(TTransport trans) {
      if (trans instanceof TBufferedSocket) {
        TBufferedSocket tsock = (TBufferedSocket) trans;
        clientAddress.set(tsock.getClientString());
      }
      return super.getProcessor(trans);
    }
View Full Code Here

Examples of org.apache.accumulo.core.util.TBufferedSocket

    }

    @Override
    public TProcessor getProcessor(TTransport trans) {
      if (trans instanceof TBufferedSocket) {
        TBufferedSocket tsock = (TBufferedSocket) trans;
        clientAddress.set(tsock.getClientString());
      } else if (trans instanceof TSocket) {
        TSocket tsock = (TSocket) trans;
        clientAddress.set(tsock.getSocket().getInetAddress().getHostAddress() + ":" + tsock.getSocket().getPort());
      } else {
        log.warn("Unable to extract clientAddress from transport of type " + trans.getClass());
      }
      return super.getProcessor(trans);
    }
View Full Code Here

Examples of org.apache.accumulo.core.util.TBufferedSocket

      super(processor);
    }
   
    public TProcessor getProcessor(TTransport trans) {
      if (trans instanceof TBufferedSocket) {
        TBufferedSocket tsock = (TBufferedSocket) trans;
        clientAddress.set(tsock.getClientString());
      }
      return super.getProcessor(trans);
    }
View Full Code Here

Examples of org.apache.accumulo.core.util.TBufferedSocket

  // Wrap accepted sockets using buffered IO
  @Override
  protected TTransport acceptImpl() throws TTransportException {
    TSocket sock = impl.acceptImplPublic();
    try {
      return new TBufferedSocket(sock, this.bufferSize);
    } catch (IOException e) {
      throw new TTransportException(e);
    }
  }
View Full Code Here

Examples of org.apache.accumulo.core.util.TBufferedSocket

      super(processor);
    }
   
    public TProcessor getProcessor(TTransport trans) {
      if (trans instanceof TBufferedSocket) {
        TBufferedSocket tsock = (TBufferedSocket) trans;
        clientAddress.set(tsock.getClientString());
      }
      return super.getProcessor(trans);
    }
View Full Code Here

Examples of org.apache.accumulo.core.util.TBufferedSocket

    }

    @Override
    public TProcessor getProcessor(TTransport trans) {
      if (trans instanceof TBufferedSocket) {
        TBufferedSocket tsock = (TBufferedSocket) trans;
        clientAddress.set(tsock.getClientString());
      } else if (trans instanceof TSocket) {
        TSocket tsock = (TSocket) trans;
        clientAddress.set(tsock.getSocket().getInetAddress().getHostAddress() + ":" + tsock.getSocket().getPort());
      } else {
        log.warn("Unable to extract clientAddress from transport of type " + trans.getClass());
      }
      return super.getProcessor(trans);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.