Package com.asakusafw.runtime.directio.hadoop

Examples of com.asakusafw.runtime.directio.hadoop.DirectIoTransactionEditor


                new Path(new File(temporary, "t2").toURI()));
        repo = new DirectDataSourceRepository(Arrays.asList(
                new MockProvider(profile1),
                new MockProvider(profile2)));

        editor = new DirectIoTransactionEditor(repo);
        editor.setConf(conf);
    }
View Full Code Here


    }

    @Override
    public int run(String[] args) {
        if (args.length == 0) {
            DirectIoTransactionEditor editor = new DirectIoTransactionEditor(repository);
            editor.setConf(getConf());
            try {
                List<TransactionInfo> list = editor.list();
                if (list.isEmpty() == false) {
                    for (TransactionInfo commit : list) {
                        System.out.println("====");
                        System.out.printf("Date:%n");
                        System.out.printf("  %s%n", new java.util.Date(commit.getTimestamp()));
View Full Code Here

    @Override
    public int run(String[] args) {
        if (args.length == 1) {
            String executionId = args[0];
            DirectIoTransactionEditor editor = new DirectIoTransactionEditor(repository);
            editor.setConf(getConf());
            try {
                editor.apply(executionId);
                return 0;
            } catch (Exception e) {
                LOG.error(MessageFormat.format(
                        "Failed to apply transaction (executionId={0})",
                        executionId), e);
View Full Code Here

    @Override
    public int run(String[] args) {
        if (args.length == 1) {
            String executionId = args[0];
            DirectIoTransactionEditor editor = new DirectIoTransactionEditor(repository);
            editor.setConf(getConf());
            try {
                editor.abort(executionId);
                return 0;
            } catch (Exception e) {
                LOG.error(MessageFormat.format(
                        "Failed to abort transaction (executionId={0})",
                        executionId), e);
View Full Code Here

TOP

Related Classes of com.asakusafw.runtime.directio.hadoop.DirectIoTransactionEditor

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.