public String toString() { StringBuffer buf = new StringBuffer(250); String chkAlgStr = checkpointAlgorithm == null ? "null" : checkpointAlgorithm.getRef(); buf.append("Chunk: checkpointAlgorithm = " + chkAlgStr); buf.append(", skippableExceptions = " + skippableExceptionClasses); buf.append(", retryableExceptions = " + retryableExceptionClasses); buf.append(", reader = " + reader); buf.append(", processor = " + processor); buf.append(", writer = " + writer); buf.append(", checkpointPolicy = " + checkpointPolicy); buf.append(", itemCount = " + itemCount); buf.append(", timeLimit = " + timeLimit); buf.append(", skipLimit = " + skipLimit); buf.append(", retryLimit = " + retryLimit); buf.append("\n"); return buf.toString(); } }
String chkAlgStr = checkpointAlgorithm == null ? "null" : checkpointAlgorithm.getRef(); buf.append("Chunk: checkpointAlgorithm = " + chkAlgStr); buf.append(", skippableExceptions = " + skippableExceptionClasses);
String chkAlgStr = checkpointAlgorithm == null ? "null" : checkpointAlgorithm.getRef(); buf.append("Chunk: checkpointAlgorithm = " + chkAlgStr); buf.append(", skippableExceptions = " + skippableExceptionClasses);
public static CheckpointAlgorithmProxy getCheckpointAlgorithmProxy (Step step, InjectionReferences injectionReferences, StepContextImpl stepContext) throws ArtifactValidationException{ Chunk chunk = step.getChunk(); CheckpointAlgorithmProxy proxy = null; String checkpointType = chunk.getCheckpointPolicy(); if (checkpointType.equals("item")) { proxy = new CheckpointAlgorithmProxy( new ItemCheckpointAlgorithm()); }else if (checkpointType.equalsIgnoreCase("custom")) { proxy = ProxyFactory.createCheckpointAlgorithmProxy(chunk .getCheckpointAlgorithm().getRef(), injectionReferences, stepContext); } return proxy; }
private static CheckpointAlgorithm cloneCheckpointAlorithm(CheckpointAlgorithm checkpointAlgorithm){ if (checkpointAlgorithm == null) { return null; } CheckpointAlgorithm newCheckpointAlgorithm = jslFactory.createCheckpointAlgorithm(); newCheckpointAlgorithm.setRef(checkpointAlgorithm.getRef()); newCheckpointAlgorithm.setProperties(cloneJSLProperties(checkpointAlgorithm.getProperties())); return newCheckpointAlgorithm; }
private static CheckpointAlgorithm cloneCheckpointAlorithm(CheckpointAlgorithm checkpointAlgorithm){ if (checkpointAlgorithm == null) { return null; } CheckpointAlgorithm newCheckpointAlgorithm = jslFactory.createCheckpointAlgorithm(); newCheckpointAlgorithm.setRef(checkpointAlgorithm.getRef()); newCheckpointAlgorithm.setProperties(cloneJSLProperties(checkpointAlgorithm.getProperties())); return newCheckpointAlgorithm; }
private static CheckpointAlgorithm cloneCheckpointAlorithm(CheckpointAlgorithm checkpointAlgorithm){ if (checkpointAlgorithm == null) { return null; } CheckpointAlgorithm newCheckpointAlgorithm = jslFactory.createCheckpointAlgorithm(); newCheckpointAlgorithm.setRef(checkpointAlgorithm.getRef()); newCheckpointAlgorithm.setProperties(cloneJSLProperties(checkpointAlgorithm.getProperties())); return newCheckpointAlgorithm; }
@Override public CheckpointAlgorithm substituteProperties(final CheckpointAlgorithm checkpointalgorithm, final Properties submittedProps, final Properties parentProps) { //resolve all the properties used in attributes and update the JAXB model checkpointalgorithm.setRef(this.replaceAllProperties(checkpointalgorithm.getRef(), submittedProps, parentProps)); // Resolve all the properties defined for this checkpoint algorithm if (checkpointalgorithm.getProperties() != null) { this.resolveElementProperties(checkpointalgorithm.getProperties().getPropertyList(), submittedProps, parentProps); } return checkpointalgorithm; }
@Override public CheckpointAlgorithm substituteProperties(final CheckpointAlgorithm checkpointalgorithm, final Properties submittedProps, final Properties parentProps) { //resolve all the properties used in attributes and update the JAXB model checkpointalgorithm.setRef(this.replaceAllProperties(checkpointalgorithm.getRef(), submittedProps, parentProps)); // Resolve all the properties defined for this checkpoint algorithm if (checkpointalgorithm.getProperties() != null) { this.resolveElementProperties(checkpointalgorithm.getProperties().getPropertyList(), submittedProps, parentProps); } return checkpointalgorithm; }
@Override public CheckpointAlgorithm substituteProperties(final CheckpointAlgorithm checkpointalgorithm, final Properties submittedProps, final Properties parentProps) { //resolve all the properties used in attributes and update the JAXB model checkpointalgorithm.setRef(this.replaceAllProperties(checkpointalgorithm.getRef(), submittedProps, parentProps)); // Resolve all the properties defined for this checkpoint algorithm if (checkpointalgorithm.getProperties() != null) { this.resolveElementProperties(checkpointalgorithm.getProperties().getPropertyList(), submittedProps, parentProps); } return checkpointalgorithm; }
checkpointAlgorithm = ProxyFactory.createCheckpointAlgorithmProxy(chunk.getCheckpointAlgorithm().getRef(), injectionRef, runtimeStepExecution);
checkpointAlgorithm = ProxyFactory.createCheckpointAlgorithmProxy(chunk.getCheckpointAlgorithm().getRef(), injectionRef, stepContext);