public static boolean equals(Step step1, Step step2) { if(step1 == null && step2 == null) return true; if(step1 == null || step2 == null) return false; //TODO: finish with remaining fields return equals(step1.getChunk(), step2.getChunk()) && equals(step1.getListeners(), step2.getListeners()) && equals(step1.getProperties(), step2.getProperties()) && nullSafeEquals(step1.getAllowStartIfComplete(), step2.getAllowStartIfComplete()) && nullSafeEquals(step1.getNextFromAttribute(), step2.getNextFromAttribute()); }
public static boolean equals(Step step1, Step step2) { if(step1 == null && step2 == null) return true; if(step1 == null || step2 == null) return false; //TODO: finish with remaining fields return equals(step1.getChunk(), step2.getChunk()) && equals(step1.getListeners(), step2.getListeners()) && equals(step1.getProperties(), step2.getProperties()) && nullSafeEquals(step1.getAllowStartIfComplete(), step2.getAllowStartIfComplete()) && nullSafeEquals(step1.getNextFromAttribute(), step2.getNextFromAttribute()); }
public static boolean equals(Step step1, Step step2) { if(step1 == null && step2 == null) return true; if(step1 == null || step2 == null) return false; //TODO: finish with remaining fields return equals(step1.getChunk(), step2.getChunk()) && equals(step1.getListeners(), step2.getListeners()) && equals(step1.getProperties(), step2.getProperties()) && nullSafeEquals(step1.getAllowStartIfComplete(), step2.getAllowStartIfComplete()) && nullSafeEquals(step1.getNextFromAttribute(), step2.getNextFromAttribute()); }
private void setContextProperties() { JSLProperties jslProps = step.getProperties(); if (jslProps != null) { for (Property property : jslProps.getPropertyList()) { Properties contextProps = runtimeStepExecution.getJSLProperties(); contextProps.setProperty(property.getName(), property.getValue()); } } // set up metrics runtimeStepExecution.addMetric(MetricImpl.MetricType.READ_COUNT, 0); runtimeStepExecution.addMetric(MetricImpl.MetricType.WRITE_COUNT, 0); runtimeStepExecution.addMetric(MetricImpl.MetricType.READ_SKIP_COUNT, 0); runtimeStepExecution.addMetric(MetricImpl.MetricType.PROCESS_SKIP_COUNT, 0); runtimeStepExecution.addMetric(MetricImpl.MetricType.WRITE_SKIP_COUNT, 0); runtimeStepExecution.addMetric(MetricImpl.MetricType.FILTER_COUNT, 0); runtimeStepExecution.addMetric(MetricImpl.MetricType.COMMIT_COUNT, 0); runtimeStepExecution.addMetric(MetricImpl.MetricType.ROLLBACK_COUNT, 0); transactionManager = getTransactionManagementService().getTransactionManager(runtimeStepExecution); }
private void setContextProperties() { JSLProperties jslProps = step.getProperties(); if (jslProps != null) { for (Property property : jslProps.getPropertyList()) { Properties contextProps = stepContext.getJSLProperties(); contextProps.setProperty(property.getName(), property.getValue()); } } // set up metrics stepContext.addMetric(MetricImpl.MetricType.READ_COUNT, 0); stepContext.addMetric(MetricImpl.MetricType.WRITE_COUNT, 0); stepContext.addMetric(MetricImpl.MetricType.READ_SKIP_COUNT, 0); stepContext.addMetric(MetricImpl.MetricType.PROCESS_SKIP_COUNT, 0); stepContext.addMetric(MetricImpl.MetricType.WRITE_SKIP_COUNT, 0); stepContext.addMetric(MetricImpl.MetricType.FILTER_COUNT, 0); stepContext.addMetric(MetricImpl.MetricType.COMMIT_COUNT, 0); stepContext.addMetric(MetricImpl.MetricType.ROLLBACK_COUNT, 0); ITransactionManagementService transMgr = ServicesManagerImpl.getInstance().getTransactionManagementService(); transactionManager = transMgr.getTransactionManager(stepContext); }
private void setContextProperties() { JSLProperties jslProps = step.getProperties(); if (jslProps != null) { for (Property property : jslProps.getPropertyList()) { Properties contextProps = stepContext.getProperties(); contextProps.setProperty(property.getName(), property.getValue()); } } // set up metrics stepContext.addMetric(MetricImpl.MetricType.READ_COUNT, 0); stepContext.addMetric(MetricImpl.MetricType.WRITE_COUNT, 0); stepContext.addMetric(MetricImpl.MetricType.READ_SKIP_COUNT, 0); stepContext.addMetric(MetricImpl.MetricType.PROCESS_SKIP_COUNT, 0); stepContext.addMetric(MetricImpl.MetricType.WRITE_SKIP_COUNT, 0); stepContext.addMetric(MetricImpl.MetricType.FILTER_COUNT, 0); stepContext.addMetric(MetricImpl.MetricType.COMMIT_COUNT, 0); stepContext.addMetric(MetricImpl.MetricType.ROLLBACK_COUNT, 0); ITransactionManagementService transMgr = ServicesManagerImpl.getInstance().getTransactionManagementService(); transactionManager = transMgr.getTransactionManager(stepContext); }
if (step.getProperties() != null) { currentProps = this.resolveElementProperties(step.getProperties().getPropertyList(), submittedProps, parentProps);
if (step.getProperties() != null) { currentProps = this.resolveElementProperties(step.getProperties().getPropertyList(), submittedProps, parentProps);
if (step.getProperties() != null) { currentProps = this.resolveElementProperties(step.getProperties().getPropertyList(), submittedProps, parentProps);
JSLProperties newProperties = CloneUtility.cloneJSLProperties(step.getProperties());
newStep.setProperties(CloneUtility.cloneJSLProperties(step.getProperties()));
newStep.setProperties(CloneUtility.cloneJSLProperties(step.getProperties()));