/** * Create an instance of {@link PartitionPlan } * */ public PartitionPlan createPartitionPlan() { return new PartitionPlan(); }
partitionPlan.setPartitions(this.replaceAllProperties(partitionPlan.getPartitions(), submittedProps, parentProps)); partitionPlan.setThreads(this.replaceAllProperties(partitionPlan.getThreads(), submittedProps, parentProps)); if (partitionPlan.getProperties() != null) { List<JSLProperties> jslProps = partitionPlan.getProperties();
String partitionsAttr = partitionPlan.getPartitions(); String threadsAttr = null; threadsAttr = partitionPlan.getThreads(); if (threadsAttr != null) { try { if (partitionPlan.getProperties() != null) { List<JSLProperties> jslProperties = partitionPlan.getProperties(); for (JSLProperties props : jslProperties) { int targetPartition = Integer.parseInt(props.getPartition());
/** * Need to perform this check because of the way we manipulate the model in building our "subjob" for * the partition. */ private static boolean isTruePartitionOfTopLevelStep(Step step) { Partition partition = step.getPartition(); if (partition.getMapper() != null ) { if (logger.isLoggable(Level.FINER)) { logger.logp(Level.FINER, CLASSNAME, "validatePartition", "Found partitioned step with mapper" , step); } return true; } else if (partition.getPlan() != null) { if (partition.getPlan().getPartitions() != null) { if (logger.isLoggable(Level.FINER)) { logger.logp(Level.FINER, CLASSNAME, "validatePartition", "Found partitioned step with plan", step); } return true; } else { if (logger.isLoggable(Level.FINER)) { logger.logp(Level.FINER, CLASSNAME, "validatePartition", "Found plan with partitions stripped out. Must be a partition on the partition work unit thread", step); } return false; } } else { throw new IllegalArgumentException("Partition does not contain either a mapper or a plan. Aborting."); } } }
partitionPlan.setPartitions(null); basePartition.setPlan(partitionPlan);
partitionPlan.setPartitions(this.replaceAllProperties(partitionPlan.getPartitions(), submittedProps, parentProps)); partitionPlan.setThreads(this.replaceAllProperties(partitionPlan.getThreads(), submittedProps, parentProps)); if (partitionPlan.getProperties() != null) { List<JSLProperties> jslProps = partitionPlan.getProperties();
String partitionsAttr = step.getPartition().getPlan().getPartitions(); String threadsAttr = null; threadsAttr = step.getPartition().getPlan().getThreads(); if (threadsAttr != null) { try { if (step.getPartition().getPlan().getProperties() != null) { List<JSLProperties> jslProperties = step.getPartition().getPlan().getProperties(); for (JSLProperties props : jslProperties) { int targetPartition = Integer.parseInt(props.getPartition());
if (partition.getPlan().getPartitions() != null) { if (logger.isLoggable(Level.FINER)) { logger.logp(Level.FINER, CLASSNAME, methodName, "Found partitioned step with plan", step);
partitionPlan.setPartitions(null); basePartition.setPlan(partitionPlan);
partitionPlan.setPartitions(this.replaceAllProperties(partitionPlan.getPartitions(), submittedProps, parentProps)); partitionPlan.setThreads(this.replaceAllProperties(partitionPlan.getThreads(), submittedProps, parentProps)); if (partitionPlan.getProperties() != null) { List<JSLProperties> jslProps = partitionPlan.getProperties();
String partitionsAttr = step.getPartition().getPlan().getPartitions(); String threadsAttr = null; threadsAttr = step.getPartition().getPlan().getThreads(); if (threadsAttr != null) { try { if (step.getPartition().getPlan().getProperties() != null) { List<JSLProperties> jslProperties = step.getPartition().getPlan().getProperties(); for (JSLProperties props : jslProperties) { int targetPartition = Integer.parseInt(props.getPartition());
if (partition.getPlan().getPartitions() != null) { if (logger.isLoggable(Level.FINER)) { logger.logp(Level.FINER, CLASSNAME, methodName, "Found partitioned step with plan", step);
partitionPlan.setPartitions(null); basePartition.setPlan(partitionPlan);
/** * Create an instance of {@link PartitionPlan } * */ public PartitionPlan createPartitionPlan() { return new PartitionPlan(); }
/** * Create an instance of {@link PartitionPlan } * */ public PartitionPlan createPartitionPlan() { return new PartitionPlan(); }