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