public void execute()

in src/main/java/com/netflix/bdp/s3mper/cli/MetastoreTimeseriesDeleteCommand.java [63:88]


    public void execute(Configuration conf, String[] args) throws Exception {
        CmdLineParser parser = new CmdLineParser(this);
        
        try {
            parser.parseArgument(args);
        } catch (CmdLineException e) {
            System.err.println(e.getMessage());
            System.err.println("s3mper meta delete_ts [options]");
            // print the list of available options
            parser.printUsage(System.err);
            System.err.println();

            System.err.println(" Example: s3mper meta delete_ts "+parser.printExample(OptionHandlerFilter.ALL));

            return;
        }
        
        MetastoreJanitor janitor = new MetastoreJanitor();
        janitor.initalize(PathUtil.S3N, conf);
        janitor.setScanLimit(readUnits);
        janitor.setDeleteLimit(writeUnits);
        janitor.setScanThreads(scanThreads);
        janitor.setDeleteThreads(deleteThreads);
        
        janitor.deleteTimeseries(TimeUnit.valueOf(unitType.toUpperCase()), unitCount);
    }