/** * Create an instance of {@link Collector } * */ public Collector createCollector() { return new Collector(); }
@Override public Collector substituteProperties(Collector collector, Properties submittedProps, Properties parentProps) { /* <xs:complexType name="Collector"> <xs:sequence> <xs:element name="properties" type="jsl:Properties" minOccurs="0" maxOccurs="1" /> </xs:sequence> <xs:attribute name="ref" use="required" type="jsl:artifactRef" /> </xs:complexType> */ //resolve all the properties used in attributes and update the JAXB model collector.setRef(this.replaceAllProperties(collector.getRef(), submittedProps, parentProps)); // Resolve all the properties defined for this artifact if (collector.getProperties() != null) { this.resolveElementProperties(collector.getProperties().getPropertyList(), submittedProps, parentProps); } return collector; }
protected void setupStepArtifacts() { // set up listeners InjectionReferences injectionRef = new InjectionReferences(jobExecutionImpl.getJobContext(), stepContext, null); this.stepListeners = jobExecutionImpl.getListenerFactory().getStepListeners(step, injectionRef, stepContext); // set up collectors if we are running a partitioned step if (step.getPartition() != null) { Collector collector = step.getPartition().getCollector(); if (collector != null) { List<Property> propList = (collector.getProperties() == null) ? null : collector.getProperties().getPropertyList(); /** * Inject job flow, split, and step contexts into partition * artifacts like collectors and listeners some of these * contexts may be null */ injectionRef = new InjectionReferences(jobExecutionImpl.getJobContext(), stepContext, propList); try { this.collectorProxy = ProxyFactory.createPartitionCollectorProxy(collector.getRef(), injectionRef, this.stepContext); } catch (ArtifactValidationException e) { throw new BatchContainerServiceException("Cannot create the collector [" + collector.getRef() + "]", e); } } } }
@Override public Collector substituteProperties(Collector collector, Properties submittedProps, Properties parentProps) { /* <xs:complexType name="Collector"> <xs:sequence> <xs:element name="properties" type="jsl:Properties" minOccurs="0" maxOccurs="1" /> </xs:sequence> <xs:attribute name="ref" use="required" type="jsl:artifactRef" /> </xs:complexType> */ //resolve all the properties used in attributes and update the JAXB model collector.setRef(this.replaceAllProperties(collector.getRef(), submittedProps, parentProps)); // Resolve all the properties defined for this artifact if (collector.getProperties() != null) { this.resolveElementProperties(collector.getProperties().getPropertyList(), submittedProps, parentProps); } return collector; }
protected void setupStepArtifacts() { // set up listeners InjectionReferences injectionRef = new InjectionReferences(jobExecutionImpl.getJobContext(), stepContext, null); this.stepListeners = jobExecutionImpl.getListenerFactory().getStepListeners(step, injectionRef, stepContext); // set up collectors if we are running a partitioned step if (step.getPartition() != null) { Collector collector = step.getPartition().getCollector(); if (collector != null) { List<Property> propList = (collector.getProperties() == null) ? null : collector.getProperties().getPropertyList(); /** * Inject job flow, split, and step contexts into partition * artifacts like collectors and listeners some of these * contexts may be null */ injectionRef = new InjectionReferences(jobExecutionImpl.getJobContext(), stepContext, propList); try { this.collectorProxy = ProxyFactory.createPartitionCollectorProxy(collector.getRef(), injectionRef, this.stepContext); } catch (ArtifactValidationException e) { throw new BatchContainerServiceException("Cannot create the collector [" + collector.getRef() + "]", e); } } } }
@Override public Collector substituteProperties(Collector collector, Properties submittedProps, Properties parentProps) { /* <xs:complexType name="Collector"> <xs:sequence> <xs:element name="properties" type="jsl:Properties" minOccurs="0" maxOccurs="1" /> </xs:sequence> <xs:attribute name="ref" use="required" type="jsl:artifactRef" /> </xs:complexType> */ //resolve all the properties used in attributes and update the JAXB model collector.setRef(this.replaceAllProperties(collector.getRef(), submittedProps, parentProps)); // Resolve all the properties defined for this artifact if (collector.getProperties() != null) { this.resolveElementProperties(collector.getProperties().getPropertyList(), submittedProps, parentProps); } return collector; }
protected void setupStepArtifacts() { // set up listeners InjectionReferences injectionRef = new InjectionReferences(runtimeWorkUnitExecution.getWorkUnitJobContext(), runtimeStepExecution, null); this.stepListeners = runtimeWorkUnitExecution.getListenerFactory().getStepListeners(getStep(), injectionRef, runtimeStepExecution); // set up collectors if we are running a partitioned step if ( isPartitionedStep() ) { Collector collector = getStep().getPartition().getCollector(); if (collector != null) { List<Property> propList = (collector.getProperties() == null) ? null : collector.getProperties().getPropertyList(); /** * Inject job flow, split, and step contexts into partition * artifacts like collectors and listeners some of these * contexts may be null */ injectionRef = new InjectionReferences(runtimeWorkUnitExecution.getWorkUnitJobContext(), runtimeStepExecution, propList); try { this.collectorProxy = ProxyFactory.createPartitionCollectorProxy(collector.getRef(), injectionRef, this.runtimeStepExecution); } catch (ArtifactValidationException e) { throw new BatchContainerServiceException("Cannot create the collector [" + collector.getRef() + "]", e); } } } }
/** * Create an instance of {@link Collector } * */ public Collector createCollector() { return new Collector(); }
/** * Create an instance of {@link Collector } * */ public Collector createCollector() { return new Collector(); }