Package com.endgame.binarypig.util

Examples of com.endgame.binarypig.util.ProgramExector


  }

  @Override
  public Tuple processFile(Text key, BytesWritable value, File binaryFile) throws IOException{
   
    ProgramExector exec = new ProgramExector(getCommand(binaryFile), timeoutMS);
    exec.start();
    waitOnProgramExecutor(exec);
    String output = StreamUtils.drainInputStream(exec.getStdout());
    exec.closeStreams();
   
    tupleCreationOverhead.start();
    Tuple tuple = outputToTuple(key, value, output, exec.isTimedOut());
    tupleCreationOverhead.stop();
    return tuple;
  }
View Full Code Here

TOP

Related Classes of com.endgame.binarypig.util.ProgramExector

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.