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 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; }
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; }