public String toString() { StringBuffer buf = new StringBuffer(40); buf.append("Property name = " + getName() + ", value = " + getValue()); return buf.toString(); } }
public static String getString(JSLProperties props) { if (props == null) return null; StringBuffer buf = new StringBuffer(150); for (Property prop : props.getPropertyList()) { buf.append("name=" + prop.getName() + ",value=" + prop.getValue() + "\n"); } return buf.toString(); } }
public static String getString(JSLProperties props) { if (props == null) return null; StringBuffer buf = new StringBuffer(150); for (Property prop : props.getPropertyList()) { buf.append("name=" + prop.getName() + ",value=" + prop.getValue() + "\n"); } return buf.toString(); } }
public static String getString(JSLProperties props) { if (props == null) return null; StringBuffer buf = new StringBuffer(150); for (Property prop : props.getPropertyList()) { buf.append("name=" + prop.getName() + ",value=" + prop.getValue() + "\n"); } return buf.toString(); } }
/** * Copyright 2013 International Business Machines Corp. * * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. Licensed under the Apache License, * Version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * Appended by build tooling. */ public String toString() { StringBuilder buf = new StringBuilder(40); buf.append("Property name = " + getName() + ", value = " + getValue()); return buf.toString(); }
private Properties convertJSProperties(JSLProperties jslProperties) { Properties jobProperties = new Properties(); if(jslProperties != null) { // null if not job properties defined. for (Property property : jslProperties.getPropertyList()) { jobProperties.setProperty(property.getName(), property.getValue()); } } return jobProperties; }
private Properties convertJSProperties(JSLProperties jslProperties) { Properties jobProperties = new Properties(); if(jslProperties != null) { // null if not job properties defined. for (Property property : jslProperties.getPropertyList()) { jobProperties.setProperty(property.getName(), property.getValue()); } } return jobProperties; }
/** * Creates a java.util.Properties map from a com.ibm.jbatch.jsl.model.Properties * object. * * @param xmlProperties * @return */ public static Properties jslPropertiesToJavaProperties( final JSLProperties xmlProperties) { final Properties props = new Properties(); for (final Property prop : xmlProperties.getPropertyList()) { props.setProperty(prop.getName(), prop.getValue()); } return props; }
/** * Creates a java.util.Properties map from a com.ibm.jbatch.jsl.model.Properties * object. * * @param xmlProperties * @return */ public static Properties jslPropertiesToJavaProperties( final JSLProperties xmlProperties) { final Properties props = new Properties(); for (final Property prop : xmlProperties.getPropertyList()) { props.setProperty(prop.getName(), prop.getValue()); } return props; }
/** * Creates a java.util.Properties map from a com.ibm.jbatch.jsl.model.Properties * object. * * @param xmlProperties * @return */ public static Properties jslPropertiesToJavaProperties( final JSLProperties xmlProperties) { final Properties props = new Properties(); for (final Property prop : xmlProperties.getPropertyList()) { props.setProperty(prop.getName(), prop.getValue()); } return props; }
private Properties initTopLevelJobProperties() { // Should this be in the spec (that Properties is never null)? Or is it already? Properties jobProperties = new Properties(); JSLProperties jslProperties = new JSLProperties(); if (jobNavigator.getRootModelElement() != null) { jslProperties = jobNavigator.getRootModelElement().getProperties(); } if (jslProperties != null) { // null if not job properties defined. for (Property property : jslProperties.getPropertyList()) { jobProperties.setProperty(property.getName(), property.getValue()); } } return jobProperties; }
protected void setContextProperties() { JSLJob jobModel = jobExecution.getJobNavigator().getRootModelElement(); JSLProperties jslProps = jobModel.getProperties(); if (jslProps != null) { Properties contextProps = jobContext.getProperties(); for (Property property : jslProps.getPropertyList()) { contextProps.setProperty(property.getName(), property.getValue()); } } }
protected void setContextProperties() { JSLJob jobModel = jobExecution.getJobNavigator().getRootModelElement(); JSLProperties jslProps = jobModel.getProperties(); if (jslProps != null) { Properties contextProps = jobContext.getJSLProperties(); for (Property property : jslProps.getPropertyList()) { contextProps.setProperty(property.getName(), property.getValue()); } } }
public static JSLProperties cloneJSLProperties(JSLProperties jslProps) { if (jslProps == null) { return null; } JSLProperties newJSLProps = jslFactory.createJSLProperties(); newJSLProps.setPartition(jslProps.getPartition());; for(Property jslProp : jslProps.getPropertyList()) { Property newProperty = jslFactory.createProperty(); newProperty.setName(jslProp.getName()); newProperty.setValue(jslProp.getValue()); newJSLProps.getPropertyList().add(newProperty); } return newJSLProps; }
public static JSLProperties cloneJSLProperties(JSLProperties jslProps) { if (jslProps == null) { return null; } JSLProperties newJSLProps = jslFactory.createJSLProperties(); newJSLProps.setPartition(jslProps.getPartition());; for(Property jslProp : jslProps.getPropertyList()) { Property newProperty = jslFactory.createProperty(); newProperty.setName(jslProp.getName()); newProperty.setValue(jslProp.getValue()); newJSLProps.getPropertyList().add(newProperty); } return newJSLProps; }
public static JSLProperties cloneJSLProperties(JSLProperties jslProps) { if (jslProps == null) { return null; } JSLProperties newJSLProps = jslFactory.createJSLProperties(); newJSLProps.setPartition(jslProps.getPartition());; for(Property jslProp : jslProps.getPropertyList()) { Property newProperty = jslFactory.createProperty(); newProperty.setName(jslProp.getName()); newProperty.setValue(jslProp.getValue()); newJSLProps.getPropertyList().add(newProperty); } return newJSLProps; }
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); }