Package org.grouplens.lenskit.util.io

Examples of org.grouplens.lenskit.util.io.LoggingStreamSlurper


            proc = pb.start();
        } catch (IOException e) {
            logger.error("could not start {}: {}", executable, e);
            throw new RuntimeException("could not start external process", e);
        }
        Thread slurp = new LoggingStreamSlurper("build-" + executable, proc.getErrorStream(),
                                                logger, "");
        slurp.start();

        Cursor<String[]> rows = new DelimitedTextCursor(new BufferedReader(new InputStreamReader(proc.getInputStream())), ",");
        try {
            for (String[] row: rows) {
                // FIXME Add error checking
View Full Code Here


                                       .directory(algorithm.getWorkDir())
                                       .start();
        } catch (IOException e) {
            throw new RecommenderBuildException("error creating process", e);
        }
        Thread listen = new LoggingStreamSlurper("external-algo", proc.getErrorStream(),
                                                 logger, "external: ");
        listen.run();

        int result = -1;
        boolean done = false;
        while (!done) {
            try {
View Full Code Here

TOP

Related Classes of org.grouplens.lenskit.util.io.LoggingStreamSlurper

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.