Examples of BatchBuildInfo


Examples of com.ngdata.hbaseindexer.model.api.BatchBuildInfo

                Map.Entry<String, JsonNode> entry = it.next();
                connectionParams.put(entry.getKey(), entry.getValue().getTextValue());
            }
        }

        BatchBuildInfo activeBatchBuild = null;
        if (node.get("activeBatchBuild") != null) {
            activeBatchBuild = parseBatchBuildInfo(JsonUtil.getObject(node, "activeBatchBuild"));
        }

        BatchBuildInfo lastBatchBuild = null;
        if (node.get("lastBatchBuild") != null) {
            lastBatchBuild = parseBatchBuildInfo(JsonUtil.getObject(node, "lastBatchBuild"));
        }

        String[] batchIndexCliArguments = getStringArrayProperty(node, "batchIndexCliArguments");
View Full Code Here

Examples of com.ngdata.hbaseindexer.model.api.BatchBuildInfo

            String key = it.next();
            String value = JsonUtil.getString(jobsNode, key);
            jobs.put(key, value);
        }

        BatchBuildInfo batchBuildInfo = new BatchBuildInfo(
                JsonUtil.getLong(buildNode, "submitTime"),
                JsonUtil.getBoolean(buildNode, "finishedSuccessful"),
                jobs,
                getStringArrayProperty(buildNode, "batchIndexCliArguments"));
        return batchBuildInfo;
View Full Code Here

Examples of com.ngdata.hbaseindexer.model.api.BatchBuildInfo

                paramsNode.put(entry.getKey(), entry.getValue());
            }
        }

        if (indexer.getActiveBatchBuildInfo() != null) {
            BatchBuildInfo buildInfo = indexer.getActiveBatchBuildInfo();
            ObjectNode batchNode = node.putObject("activeBatchBuild");

            setBatchBuildInfo(buildInfo, batchNode);
        }

        if (indexer.getLastBatchBuildInfo() != null) {
            BatchBuildInfo buildInfo = indexer.getLastBatchBuildInfo();
            ObjectNode batchNode = node.putObject("lastBatchBuild");

            setBatchBuildInfo(buildInfo, batchNode);
        }
View Full Code Here

Examples of com.ngdata.hbaseindexer.model.api.BatchBuildInfo

        indexerDefinitionList.add(def);

        if (jobId != null) {
            Map<String, String> jobTrackingUrls = Maps.newHashMap();
            jobTrackingUrls.put(jobId, "no-matter");
            BatchBuildInfo bbi = mock(BatchBuildInfo.class);
            when(bbi.getMapReduceJobTrackingUrls()).thenReturn(jobTrackingUrls);

            when(def.getActiveBatchBuildInfo()).thenReturn(bbi);
        }
        return def;
    }
View Full Code Here

Examples of com.ngdata.hbaseindexer.model.api.BatchBuildInfo

            ps.println("  + Additional batch index CLI arguments:");
            printArguments(indexer.getBatchIndexCliArguments(), 6, ps, options.has("dump"));
            ps.println("  + Default additional batch index CLI arguments:");
            printArguments(indexer.getDefaultBatchIndexCliArguments(), 6, ps, options.has("dump"));

            BatchBuildInfo activeBatchBuild = indexer.getActiveBatchBuildInfo();
            if (activeBatchBuild != null) {
                ps.println("  + Active batch build:");
                printBatchBuildInfo(options, ps, activeBatchBuild);
            }

            BatchBuildInfo lastBatchBuild = indexer.getLastBatchBuildInfo();
            if (lastBatchBuild != null) {
                ps.println("  + Last batch build:");
                printBatchBuildInfo(options, ps, lastBatchBuild);
            }
            printProcessStatus(indexer.getName(), ps);
View Full Code Here

Examples of com.ngdata.hbaseindexer.model.api.BatchBuildInfo

                .subscriptionId("my-subscription")
                .subscriptionTimestamp(5L)
                .defaultBatchIndexCliArguments(new String[]{"arg1", "arg2"})
                .batchIndexCliArguments(new String[]{"arg3"})
                .activeBatchBuildInfo(
                        new BatchBuildInfo(10L, null, ImmutableMap.of("job-id-1", "url-1"), new String[]{"arg1", "arg2"}))
                .lastBatchBuildInfo(
                        new BatchBuildInfo(11L, false, ImmutableMap.of("job-id-2", "url-2"), new String[]{"arg3"}))
                .occVersion(5).build();

        IndexerDefinitionJsonSerDeser serdeser = new IndexerDefinitionJsonSerDeser();
        byte[] json = serdeser.toJsonBytes(indexer);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.