Main.java

27 lines | 754 B Blame History Raw Download
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufrgs.inf.prosoft.cache.tools;

/**
 *
 * @author romulo
 */
public class Main {

    public static void main(String[] args) {
        System.setProperty("java.util.logging.SimpleFormatter.format", "[%1$tF %1$tT+%1$tL] [%4$-7s] [Cache] %5$s %n");

        if (args.length < 3) {
            System.err.println("<EventsPath> <ReducePath> <prefix>");
            System.exit(1);
        }
        String eventsPath = args[0];
        String reducePath = args[1];
        String prefix = args[2];
        Reducer.reduce(eventsPath, reducePath, prefix);
    }
}