public static CheckpointAlgorithmProxy createCheckpointAlgorithmProxy(String id, InjectionReferences injectionRefs, StepContextImpl stepContext) throws ArtifactValidationException { CheckpointAlgorithm loadedArtifact = (CheckpointAlgorithm)loadArtifact(id, injectionRefs); CheckpointAlgorithmProxy proxy = new CheckpointAlgorithmProxy(loadedArtifact); proxy.setStepContext(stepContext); return proxy; }
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 CheckpointAlgorithm getCheckpointAlgorithm(int itemCount, int timeInterval) { CheckpointAlgorithm alg = null; if (checkpointProxy.getCheckpointType() == "item") { alg = new ItemCheckpointAlgorithm(); ((ItemCheckpointAlgorithm) alg).setThresholds(itemCount, timeInterval); } else { // custom chkpt alg alg = (CheckpointAlgorithm) checkpointProxy; } return alg; }
if (this.checkpointProxy.getCheckpointType() == "custom" ){ int newtimeOut = this.checkpointManager.checkpointTimeout(); transactionManager.setTransactionTimeout(newtimeOut);
public static CheckpointAlgorithmProxy createCheckpointAlgorithmProxy(String id, InjectionReferences injectionRefs, RuntimeStepExecution stepContext) throws ArtifactValidationException { CheckpointAlgorithm loadedArtifact = (CheckpointAlgorithm)loadArtifact(id, injectionRefs); CheckpointAlgorithmProxy proxy = new CheckpointAlgorithmProxy(loadedArtifact); proxy.setStepContext(stepContext); return proxy; }
this.itemWriteListeners = jobExecutionImpl.getListenerFactory().getItemWriteListeners(step, injectionRef, stepContext); if (checkpointProxy.getCheckpointType() == "item") { chkptAlg = new ItemCheckpointAlgorithm(); ((ItemCheckpointAlgorithm) chkptAlg).setThresholds(itemCount, timeInterval);
public static CheckpointAlgorithmProxy createCheckpointAlgorithmProxy(String id, InjectionReferences injectionRefs, StepContextImpl stepContext) throws ArtifactValidationException { CheckpointAlgorithm loadedArtifact = (CheckpointAlgorithm)loadArtifact(id, injectionRefs); CheckpointAlgorithmProxy proxy = new CheckpointAlgorithmProxy(loadedArtifact); proxy.setStepContext(stepContext); return proxy; }
if ((readProcessedCount == chunkSize) && (checkpointProxy.getCheckpointType() != "custom")) { break;