├── .gitignore ├── DISCLAIMER ├── KEYS ├── LICENSE ├── NOTICE ├── README.adoc ├── extensions ├── beanio │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── batchee │ │ │ │ └── beanio │ │ │ │ ├── BeanIOReader.java │ │ │ │ ├── BeanIOWriter.java │ │ │ │ └── BeanIOs.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── batchee.xml │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ └── beanio │ │ │ ├── BeanIOReaderTest.java │ │ │ ├── BeanIOWriterTest.java │ │ │ ├── bean │ │ │ └── Record.java │ │ │ └── util │ │ │ └── IOs.java │ │ └── resources │ │ ├── META-INF │ │ └── batch-jobs │ │ │ ├── beanio-reader.xml │ │ │ └── beanio-writer.xml │ │ └── beanio.xml ├── camel │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── batchee │ │ │ │ └── camel │ │ │ │ ├── CamelBridge.java │ │ │ │ ├── CamelChainItemProcessor.java │ │ │ │ ├── CamelItemProcessor.java │ │ │ │ ├── CamelItemReader.java │ │ │ │ ├── CamelItemWriter.java │ │ │ │ ├── CamelLocator.java │ │ │ │ ├── CamelTemplateLocator.java │ │ │ │ └── component │ │ │ │ ├── JBatchComponent.java │ │ │ │ ├── JBatchEndpoint.java │ │ │ │ └── JBatchProducer.java │ │ └── resources │ │ │ └── META-INF │ │ │ ├── batchee.xml │ │ │ └── services │ │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── component │ │ │ └── jbatch │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ └── camel │ │ │ ├── CamelChainProcessorTest.java │ │ │ ├── CamelProcessorTest.java │ │ │ ├── CamelReaderTest.java │ │ │ ├── CamelWriterTest.java │ │ │ ├── component │ │ │ └── JBatchComponentTest.java │ │ │ └── util │ │ │ └── TestComponent.java │ │ └── resources │ │ └── META-INF │ │ ├── batch-jobs │ │ ├── camel-chain-processor.xml │ │ ├── camel-processor.xml │ │ ├── camel-reader.xml │ │ ├── camel-writer.xml │ │ └── component.xml │ │ └── services │ │ └── org │ │ └── apache │ │ └── camel │ │ └── component │ │ └── test ├── cdi │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── batchee │ │ │ │ └── cdi │ │ │ │ ├── impl │ │ │ │ ├── BaseContext.java │ │ │ │ ├── BatchEEScopeExtension.java │ │ │ │ ├── ContextResolver.java │ │ │ │ ├── DynamicContextResolver.java │ │ │ │ ├── JobContextImpl.java │ │ │ │ ├── StepContextImpl.java │ │ │ │ └── ThreadLocalContextResolver.java │ │ │ │ ├── listener │ │ │ │ ├── AfterJobScopeListener.java │ │ │ │ ├── AfterStepScopeListener.java │ │ │ │ └── BeforeJobScopeListener.java │ │ │ │ └── scope │ │ │ │ ├── JobScoped.java │ │ │ │ └── StepScoped.java │ │ └── resources │ │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ └── cdi │ │ │ ├── BatchScopesTest.java │ │ │ ├── component │ │ │ ├── CdiBatchlet.java │ │ │ ├── Holder.java │ │ │ ├── JobScopedBean.java │ │ │ └── StepScopedBean.java │ │ │ ├── partitioned │ │ │ ├── PartitionedJobScopedReader.java │ │ │ ├── PartitionedJobScopedWriter.java │ │ │ └── PartitionedStepScopedReader.java │ │ │ └── testng │ │ │ └── CdiContainerLifecycle.java │ │ └── resources │ │ ├── META-INF │ │ ├── batch-jobs │ │ │ ├── cdi.xml │ │ │ ├── partitioned-job-scoped.xml │ │ │ └── partitioned-step-scoped.xml │ │ └── beans.xml │ │ └── batchee.properties ├── commons-csv │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── batchee │ │ │ │ └── csv │ │ │ │ ├── CSVFormatFactory.java │ │ │ │ ├── CommonsCsvReader.java │ │ │ │ ├── CommonsCsvWriter.java │ │ │ │ ├── CsvReaderMapper.java │ │ │ │ ├── CsvWriterMapper.java │ │ │ │ └── mapper │ │ │ │ ├── CoercingConverter.java │ │ │ │ ├── Csv.java │ │ │ │ ├── DefaultMapper.java │ │ │ │ ├── Primitives.java │ │ │ │ └── XBeanConverter.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── batchee.xml │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ └── csv │ │ │ ├── CommonsCsvReaderTest.java │ │ │ ├── CommonsCsvReaderWithDefaultMapperTest.java │ │ │ ├── CommonsCsvReaderWithMapperTest.java │ │ │ ├── CommonsCsvWriterMappingHeadersTest.java │ │ │ ├── CommonsCsvWriterMappingTest.java │ │ │ ├── CommonsCsvWriterTest.java │ │ │ ├── mapper │ │ │ └── PrimitivesTest.java │ │ │ └── util │ │ │ └── IOs.java │ │ └── resources │ │ └── META-INF │ │ └── batch-jobs │ │ ├── csv-reader-defaultmapper.xml │ │ ├── csv-reader-defaultmappername.xml │ │ ├── csv-reader-mapper.xml │ │ ├── csv-reader.xml │ │ ├── csv-writer-defaultmapper.xml │ │ ├── csv-writer-defaultmapperheaders.xml │ │ └── csv-writer.xml ├── extension-doc-helper │ └── pom.xml ├── extras │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── batchee │ │ │ │ └── extras │ │ │ │ ├── async │ │ │ │ └── AsynchronousItemProcessor.java │ │ │ │ ├── buffered │ │ │ │ ├── BufferedItemReader.java │ │ │ │ └── IteratorReader.java │ │ │ │ ├── chain │ │ │ │ ├── Chain.java │ │ │ │ ├── ChainBatchlet.java │ │ │ │ └── ChainProcessor.java │ │ │ │ ├── flat │ │ │ │ ├── FlatFileItemReader.java │ │ │ │ ├── FlatFileItemWriter.java │ │ │ │ └── LineMapper.java │ │ │ │ ├── jdbc │ │ │ │ ├── JdbcBatchlet.java │ │ │ │ ├── JdbcConnectionConfiguration.java │ │ │ │ ├── JdbcReader.java │ │ │ │ ├── JdbcWriter.java │ │ │ │ ├── ObjectMapper.java │ │ │ │ └── RecordMapper.java │ │ │ │ ├── jpa │ │ │ │ ├── EntityManagerLocator.java │ │ │ │ ├── EntityManagerProvider.java │ │ │ │ ├── JpaItemReader.java │ │ │ │ ├── JpaItemWriter.java │ │ │ │ └── ParameterProvider.java │ │ │ │ ├── lang │ │ │ │ └── Langs.java │ │ │ │ ├── locator │ │ │ │ ├── BatcheeLocator.java │ │ │ │ └── BeanLocator.java │ │ │ │ ├── noop │ │ │ │ └── NoopItemWriter.java │ │ │ │ ├── stax │ │ │ │ ├── StaxItemReader.java │ │ │ │ ├── StaxItemWriter.java │ │ │ │ └── util │ │ │ │ │ ├── JAXBContextFactory.java │ │ │ │ │ └── SAXStAXHandler.java │ │ │ │ ├── transaction │ │ │ │ ├── CountedReader.java │ │ │ │ ├── TransactionalWriter.java │ │ │ │ └── integration │ │ │ │ │ ├── JTASynchronizationService.java │ │ │ │ │ ├── NoopSynchronizationService.java │ │ │ │ │ ├── SynchronizationService.java │ │ │ │ │ └── Synchronizations.java │ │ │ │ ├── typed │ │ │ │ ├── NoStateTypedItemReader.java │ │ │ │ ├── NoStateTypedItemWriter.java │ │ │ │ ├── TypedItemProcessor.java │ │ │ │ ├── TypedItemReader.java │ │ │ │ └── TypedItemWriter.java │ │ │ │ ├── validation │ │ │ │ └── BeanValidationItemProcessor.java │ │ │ │ └── writer │ │ │ │ └── MultiWriterBase.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── batchee.xml │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ └── extras │ │ │ ├── AsyncProcessorTest.java │ │ │ ├── BeanValidationProcessorTest.java │ │ │ ├── BufferedItemReaderTest.java │ │ │ ├── ChainProcessorTest.java │ │ │ ├── FlatFileItemReaderTest.java │ │ │ ├── FlatFileItemWriterTest.java │ │ │ ├── JdbcBatchletTest.java │ │ │ ├── JdbcReaderTest.java │ │ │ ├── JdbcWriterTest.java │ │ │ ├── JpaReaderTest.java │ │ │ ├── JpaWriterTest.java │ │ │ ├── StaxItemReaderTest.java │ │ │ ├── StaxItemWriterTest.java │ │ │ ├── typed │ │ │ ├── NoStateTypedItemReaderTest.java │ │ │ └── NoStateTypedItemWriterTest.java │ │ │ └── util │ │ │ ├── IOs.java │ │ │ ├── MyProvider.java │ │ │ └── Person.java │ │ └── resources │ │ └── META-INF │ │ ├── batch-jobs │ │ ├── async-processor.xml │ │ ├── bean-validation-processor.xml │ │ ├── buffered-read-null.xml │ │ ├── buffered-read.xml │ │ ├── chain-processor.xml │ │ ├── flat-file-reader.xml │ │ ├── flat-file-writer.xml │ │ ├── jdbc-batchlet.xml │ │ ├── jdbc-reader.xml │ │ ├── jdbc-writer.xml │ │ ├── jpa-reader.xml │ │ ├── jpa-writer.xml │ │ ├── no-state-reader.xml │ │ ├── no-state-writer.xml │ │ ├── stax-reader.xml │ │ └── stax-writer.xml │ │ └── persistence.xml ├── groovy │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── batchee │ │ │ │ └── groovy │ │ │ │ ├── GroovyBatchlet.java │ │ │ │ ├── GroovyItemProcessor.java │ │ │ │ ├── GroovyItemReader.java │ │ │ │ ├── GroovyItemWriter.java │ │ │ │ └── Groovys.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── batchee.xml │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ └── groovy │ │ │ ├── GroovyBatchletTest.java │ │ │ ├── GroovyProcessorTest.java │ │ │ ├── GroovyReaderTest.java │ │ │ ├── GroovyWriterTest.java │ │ │ └── util │ │ │ └── IOs.java │ │ └── resources │ │ └── META-INF │ │ └── batch-jobs │ │ ├── groovy-batchlet.xml │ │ ├── groovy-processor.xml │ │ ├── groovy-reader.xml │ │ └── groovy-writer.xml ├── hazelcast │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── batchee │ │ │ │ └── hazelcast │ │ │ │ ├── HazelcastClientFactory.java │ │ │ │ ├── HazelcastLockBatchlet.java │ │ │ │ ├── HazelcastMemberFactory.java │ │ │ │ ├── HazelcastSynchroInstanceAware.java │ │ │ │ ├── HazelcastUnlockBatchlet.java │ │ │ │ └── IOs.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── batchee.xml │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ └── hazelcast │ │ │ └── LockTest.java │ │ └── resources │ │ └── META-INF │ │ └── batch-jobs │ │ └── lock.xml ├── jackson │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── batchee │ │ │ │ └── jackson │ │ │ │ ├── DefaultFieldNameGenerator.java │ │ │ │ ├── FieldNameGenerator.java │ │ │ │ ├── JacksonJSonWriter.java │ │ │ │ ├── JacksonJsonReader.java │ │ │ │ └── Jacksons.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── batchee.xml │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ └── jackson │ │ │ ├── JacksonJSonWriterTest.java │ │ │ ├── JacksonJsonReaderTest.java │ │ │ ├── bean │ │ │ └── Record.java │ │ │ └── util │ │ │ └── IOs.java │ │ └── resources │ │ └── META-INF │ │ └── batch-jobs │ │ ├── jackson-field-writer.xml │ │ ├── jackson-reader.xml │ │ └── jackson-writer.xml ├── jsefa │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── batchee │ │ │ │ └── jsefa │ │ │ │ ├── Header.java │ │ │ │ ├── JSefaCsvMapping.java │ │ │ │ ├── JSefaCsvReader.java │ │ │ │ ├── JSefaCsvWriter.java │ │ │ │ ├── JSefaFlrReader.java │ │ │ │ ├── JSefaFlrWriter.java │ │ │ │ ├── JSefaReader.java │ │ │ │ ├── JSefaWriter.java │ │ │ │ ├── JSefaXmlReader.java │ │ │ │ ├── JSefaXmlWriter.java │ │ │ │ └── JsefaConfigurations.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── batchee.xml │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ └── jsefa │ │ │ ├── JSefaCsvReaderConverterTest.java │ │ │ ├── JSefaCsvReaderTest.java │ │ │ ├── JSefaCsvWriterConverterTest.java │ │ │ ├── JSefaCsvWriterHeaderTest.java │ │ │ ├── JSefaCsvWriterTest.java │ │ │ ├── JSefaFlrReaderConverterTest.java │ │ │ ├── JSefaFlrReaderTest.java │ │ │ ├── JSefaFlrWriterConverterTest.java │ │ │ ├── JSefaFlrWriterTest.java │ │ │ ├── JSefaXmlReaderTest.java │ │ │ ├── JSefaXmlWriterTest.java │ │ │ ├── bean │ │ │ ├── Address.java │ │ │ ├── Person.java │ │ │ ├── PersonWithAddress.java │ │ │ ├── Record.java │ │ │ ├── RecordWithConverter.java │ │ │ └── RecordWithHeader.java │ │ │ ├── converter │ │ │ ├── CustomDateConverter.java │ │ │ └── RecordEnumConverter.java │ │ │ └── util │ │ │ ├── CsvUtil.java │ │ │ └── IOs.java │ │ └── resources │ │ └── META-INF │ │ └── batch-jobs │ │ ├── jsefa-csv-reader-converter.xml │ │ ├── jsefa-csv-reader-header.xml │ │ ├── jsefa-csv-reader.xml │ │ ├── jsefa-csv-writer-converter.xml │ │ ├── jsefa-csv-writer-header-fromFieldsMoreObjects.xml │ │ ├── jsefa-csv-writer-header-fromFieldsOneType.xml │ │ ├── jsefa-csv-writer-header-fromFieldsWithInheritance.xml │ │ ├── jsefa-csv-writer-header-fromHeaderAnnotation.xml │ │ ├── jsefa-csv-writer-header.xml │ │ ├── jsefa-csv-writer-multiOjectTypes.xml │ │ ├── jsefa-csv-writer-nestedObjects.xml │ │ ├── jsefa-csv-writer.xml │ │ ├── jsefa-flr-reader-converter.xml │ │ ├── jsefa-flr-reader.xml │ │ ├── jsefa-flr-writer-converter.xml │ │ ├── jsefa-flr-writer.xml │ │ ├── jsefa-xml-reader.xml │ │ └── jsefa-xml-writer.xml ├── jsonp │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── batchee │ │ │ │ └── jsonp │ │ │ │ ├── JsonPartialReader.java │ │ │ │ ├── JsonpReader.java │ │ │ │ └── JsonpWriter.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── batchee.xml │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ └── jsonp │ │ │ ├── JsonpReaderTest.java │ │ │ ├── JsonpWriterTest.java │ │ │ └── util │ │ │ └── IOs.java │ │ └── resources │ │ └── META-INF │ │ └── batch-jobs │ │ ├── jsonp-reader.xml │ │ └── jsonp-writer.xml ├── modelmapper │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── batchee │ │ │ │ └── modelmapper │ │ │ │ └── ModelMapperItemProcessor.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── batchee.xml │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ └── modelmapper │ │ │ ├── LooseModelMapperProcessorTest.java │ │ │ └── ModelMapperProcessorTest.java │ │ └── resources │ │ └── META-INF │ │ └── batch-jobs │ │ ├── modelmapper-processor-loose.xml │ │ └── modelmapper-processor.xml └── pom.xml ├── gui ├── jaxrs │ ├── jaxrs-client │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── batchee │ │ │ │ └── jaxrs │ │ │ │ └── client │ │ │ │ ├── BatchEEJAXRS1CxfClient.java │ │ │ │ ├── BatchEEJAXRS2Client.java │ │ │ │ ├── BatchEEJAXRSClientBase.java │ │ │ │ ├── BatchEEJAXRSClientFactory.java │ │ │ │ ├── ClientConfiguration.java │ │ │ │ ├── ClientSecurity.java │ │ │ │ ├── ClientSslConfiguration.java │ │ │ │ ├── CxfClientConfiguration.java │ │ │ │ ├── http │ │ │ │ └── Base64s.java │ │ │ │ ├── impl │ │ │ │ ├── JobExecutionImpl.java │ │ │ │ ├── JobInstanceImpl.java │ │ │ │ ├── MetricImpl.java │ │ │ │ └── StepExecutionImpl.java │ │ │ │ └── provider │ │ │ │ └── Base64Filter.java │ │ │ └── test │ │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── batchee │ │ │ │ └── jaxrs │ │ │ │ └── client │ │ │ │ ├── ClientTestBase.java │ │ │ │ ├── CxfClientTest.java │ │ │ │ ├── JAXRS2ClientTest.java │ │ │ │ └── SimpleBatchlet.java │ │ │ └── resources │ │ │ └── batchee │ │ │ ├── execution │ │ │ ├── parameter │ │ │ │ └── 54.json │ │ │ └── start │ │ │ │ └── simple.json │ │ │ ├── executions │ │ │ └── running │ │ │ │ └── running.json │ │ │ ├── job-execution │ │ │ └── 159.json │ │ │ ├── job-executions │ │ │ └── 45896 │ │ │ │ └── job.json │ │ │ ├── job-instance │ │ │ ├── 2.json │ │ │ └── count │ │ │ │ └── ajob.json │ │ │ ├── job-instances │ │ │ └── anotherjob.json │ │ │ ├── job-names.json │ │ │ └── step-executions │ │ │ └── 8946.json │ ├── jaxrs-common │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ └── jaxrs │ │ │ └── common │ │ │ ├── JBatchResource.java │ │ │ ├── RestEntry.java │ │ │ ├── RestJobExecution.java │ │ │ ├── RestJobInstance.java │ │ │ ├── RestMetric.java │ │ │ ├── RestProperties.java │ │ │ ├── RestStepExecution.java │ │ │ └── johnzon │ │ │ └── JohnzonBatcheeProvider.java │ ├── jaxrs-server │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── apache │ │ │ │ │ └── batchee │ │ │ │ │ └── jaxrs │ │ │ │ │ └── server │ │ │ │ │ ├── JBatchApplication.java │ │ │ │ │ ├── JBatchExceptionMapper.java │ │ │ │ │ └── JBatchResourceImpl.java │ │ │ └── webapp │ │ │ │ └── WEB-INF │ │ │ │ └── openejb-jar.xml │ │ │ └── test │ │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── batchee │ │ │ │ └── jaxrs │ │ │ │ └── server │ │ │ │ ├── RestTest.java │ │ │ │ └── util │ │ │ │ ├── CreateSomeJobs.java │ │ │ │ └── SimpleBatchlet.java │ │ │ └── resources │ │ │ ├── META-INF │ │ │ └── batch-jobs │ │ │ │ ├── another-job.xml │ │ │ │ └── init.xml │ │ │ └── arquillian.xml │ ├── pom.xml │ └── webapp │ │ └── pom.xml ├── pom.xml └── servlet │ ├── embedded │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── batchee │ │ │ │ └── servlet │ │ │ │ ├── JBatchController.java │ │ │ │ ├── JBatchServletInitializer.java │ │ │ │ ├── MetricsHelper.java │ │ │ │ ├── SimpleRestController.java │ │ │ │ └── StatusHelper.java │ │ └── resources │ │ │ └── META-INF │ │ │ ├── LICENSE │ │ │ ├── NOTICE │ │ │ ├── resources │ │ │ └── internal │ │ │ │ └── batchee │ │ │ │ ├── after-start.jsp │ │ │ │ ├── css │ │ │ │ └── bootstrap.min.3.0.0.css │ │ │ │ ├── job-instances.jsp │ │ │ │ ├── jobs.jsp │ │ │ │ ├── js │ │ │ │ ├── bootstrap.min.3.0.0.js │ │ │ │ ├── jquery-2.0.3.min.js │ │ │ │ ├── jquery-2.0.3.min.map │ │ │ │ └── start.js │ │ │ │ ├── layout.jsp │ │ │ │ ├── read-only.jsp │ │ │ │ ├── start.jsp │ │ │ │ ├── step-executions.jsp │ │ │ │ └── view.jsp │ │ │ └── services │ │ │ └── javax.servlet.ServletContainerInitializer │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ └── servlet │ │ │ ├── ServletTest.java │ │ │ └── util │ │ │ ├── CreateSomeJobs.java │ │ │ └── SimpleBatchlet.java │ │ └── resources │ │ ├── META-INF │ │ └── batch-jobs │ │ │ ├── another-job.xml │ │ │ └── init.xml │ │ └── arquillian.xml │ ├── pom.xml │ └── webapp │ └── pom.xml ├── integration-tests ├── pom.xml └── transaction │ ├── pom.xml │ └── src │ └── test │ ├── java │ └── org │ │ └── apache │ │ └── batchee │ │ └── its │ │ └── transaction │ │ ├── MockTransactionManagerService.java │ │ ├── TxErrorReader.java │ │ ├── TxErrorTest.java │ │ └── TxErrorWriter1.java │ └── resources │ ├── META-INF │ └── batch-jobs │ │ └── txtest1.xml │ └── batchee.properties ├── jbatch ├── pom.xml └── src │ ├── main │ ├── assembly │ │ └── dbscripts-assembly.xml │ ├── java-templates │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ └── container │ │ │ └── Init.java │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ ├── container │ │ │ ├── Controller.java │ │ │ ├── ExecutionElementController.java │ │ │ ├── ThreadRootController.java │ │ │ ├── cdi │ │ │ │ ├── BatchCDIInjectionExtension.java │ │ │ │ └── BatchProducerBean.java │ │ │ ├── exception │ │ │ │ ├── BatchContainerRuntimeException.java │ │ │ │ ├── BatchContainerServiceException.java │ │ │ │ ├── IllegalBatchPropertyException.java │ │ │ │ ├── PersistenceException.java │ │ │ │ └── TransactionManagementException.java │ │ │ ├── impl │ │ │ │ ├── JobContextImpl.java │ │ │ │ ├── JobExecutionImpl.java │ │ │ │ ├── JobInstanceImpl.java │ │ │ │ ├── JobOperatorImpl.java │ │ │ │ ├── MetricImpl.java │ │ │ │ ├── StepContextImpl.java │ │ │ │ ├── StepExecutionImpl.java │ │ │ │ ├── controller │ │ │ │ │ ├── BaseStepController.java │ │ │ │ │ ├── DecisionController.java │ │ │ │ │ ├── ExecutionElementControllerFactory.java │ │ │ │ │ ├── ExecutionTransitioner.java │ │ │ │ │ ├── FlowController.java │ │ │ │ │ ├── FlowInSplitThreadRootController.java │ │ │ │ │ ├── JobController.java │ │ │ │ │ ├── JobThreadRootController.java │ │ │ │ │ ├── PartitionThreadRootController.java │ │ │ │ │ ├── PartitionedStepBuilder.java │ │ │ │ │ ├── PartitionedStepController.java │ │ │ │ │ ├── SingleThreadedStepController.java │ │ │ │ │ ├── SplitController.java │ │ │ │ │ ├── batchlet │ │ │ │ │ │ └── BatchletStepController.java │ │ │ │ │ └── chunk │ │ │ │ │ │ ├── CheckpointData.java │ │ │ │ │ │ ├── CheckpointDataKey.java │ │ │ │ │ │ ├── CheckpointManager.java │ │ │ │ │ │ ├── CheckpointType.java │ │ │ │ │ │ ├── ChunkHelper.java │ │ │ │ │ │ ├── ChunkStepController.java │ │ │ │ │ │ ├── ExceptionConfig.java │ │ │ │ │ │ ├── ItemCheckpointAlgorithm.java │ │ │ │ │ │ ├── PersistentDataWrapper.java │ │ │ │ │ │ ├── RetryHandler.java │ │ │ │ │ │ └── SkipHandler.java │ │ │ │ └── jobinstance │ │ │ │ │ ├── JobExecutionHelper.java │ │ │ │ │ ├── RuntimeFlowInSplitExecution.java │ │ │ │ │ └── RuntimeJobExecution.java │ │ │ ├── jsl │ │ │ │ ├── CloneUtility.java │ │ │ │ ├── ExecutionElement.java │ │ │ │ ├── GlobPatternMatcherImpl.java │ │ │ │ ├── IllegalTransitionException.java │ │ │ │ ├── JSLValidationEventHandler.java │ │ │ │ ├── JobModelResolver.java │ │ │ │ ├── Transition.java │ │ │ │ ├── TransitionElement.java │ │ │ │ └── Xsds.java │ │ │ ├── modelresolver │ │ │ │ ├── PropertyResolver.java │ │ │ │ ├── PropertyResolverFactory.java │ │ │ │ └── impl │ │ │ │ │ ├── AbstractPropertyResolver.java │ │ │ │ │ ├── AnalyzerPropertyResolver.java │ │ │ │ │ ├── BatchletPropertyResolver.java │ │ │ │ │ ├── CheckpointAlgorithmPropertyResolver.java │ │ │ │ │ ├── ChunkPropertyResolver.java │ │ │ │ │ ├── CollectorPropertyResolver.java │ │ │ │ │ ├── ControlElementPropertyResolver.java │ │ │ │ │ ├── DecisionPropertyResolver.java │ │ │ │ │ ├── ExceptionClassesPropertyResolver.java │ │ │ │ │ ├── FlowPropertyResolver.java │ │ │ │ │ ├── ItemProcessorPropertyResolver.java │ │ │ │ │ ├── ItemReaderPropertyResolver.java │ │ │ │ │ ├── ItemWriterPropertyResolver.java │ │ │ │ │ ├── JobPropertyResolver.java │ │ │ │ │ ├── ListenerPropertyResolver.java │ │ │ │ │ ├── PartitionMapperPropertyResolver.java │ │ │ │ │ ├── PartitionPlanPropertyResolver.java │ │ │ │ │ ├── PartitionPropertyResolver.java │ │ │ │ │ ├── PartitionReducerPropertyResolver.java │ │ │ │ │ ├── SplitPropertyResolver.java │ │ │ │ │ └── StepPropertyResolver.java │ │ │ ├── navigator │ │ │ │ ├── AbstractNavigator.java │ │ │ │ ├── FlowNavigator.java │ │ │ │ ├── JobNavigator.java │ │ │ │ ├── ModelNavigator.java │ │ │ │ └── NavigatorFactory.java │ │ │ ├── proxy │ │ │ │ ├── AbstractProxy.java │ │ │ │ ├── BatchProxyInvocationHandler.java │ │ │ │ ├── CheckpointAlgorithmProxy.java │ │ │ │ ├── InjectionReferences.java │ │ │ │ ├── ListenerFactory.java │ │ │ │ └── ProxyFactory.java │ │ │ ├── services │ │ │ │ ├── BatchKernelService.java │ │ │ │ ├── InternalJobExecution.java │ │ │ │ ├── JobStatusManagerService.java │ │ │ │ ├── ServicesManager.java │ │ │ │ ├── ServicesManagerLocator.java │ │ │ │ ├── callback │ │ │ │ │ └── SimpleJobExecutionCallbackService.java │ │ │ │ ├── data │ │ │ │ │ └── DefaultDataRepresentationService.java │ │ │ │ ├── executor │ │ │ │ │ ├── AbstractThreadPoolService.java │ │ │ │ │ ├── BatcheeThreadFactory.java │ │ │ │ │ ├── BoundedThreadPoolService.java │ │ │ │ │ ├── DefaultThreadPoolService.java │ │ │ │ │ └── JNDIThreadPoolService.java │ │ │ │ ├── factory │ │ │ │ │ ├── CDIBatchArtifactFactory.java │ │ │ │ │ └── DefaultBatchArtifactFactory.java │ │ │ │ ├── kernel │ │ │ │ │ └── DefaultBatchKernel.java │ │ │ │ ├── loader │ │ │ │ │ └── DefaultJobXMLLoaderService.java │ │ │ │ ├── locator │ │ │ │ │ ├── ClassLoaderLocator.java │ │ │ │ │ └── SingletonLocator.java │ │ │ │ ├── package-info.java │ │ │ │ ├── persistence │ │ │ │ │ ├── JDBCPersistenceManagerService.java │ │ │ │ │ ├── JPAPersistenceManagerService.java │ │ │ │ │ ├── MemoryPersistenceManagerService.java │ │ │ │ │ ├── jdbc │ │ │ │ │ │ ├── Dictionary.java │ │ │ │ │ │ └── database │ │ │ │ │ │ │ ├── Database.java │ │ │ │ │ │ │ └── DerbyDatabase.java │ │ │ │ │ └── jpa │ │ │ │ │ │ ├── EntityManagerProvider.java │ │ │ │ │ │ ├── TransactionProvider.java │ │ │ │ │ │ ├── domain │ │ │ │ │ │ ├── CheckpointEntity.java │ │ │ │ │ │ ├── JobExecutionEntity.java │ │ │ │ │ │ ├── JobInstanceEntity.java │ │ │ │ │ │ ├── PropertyHelper.java │ │ │ │ │ │ └── StepExecutionEntity.java │ │ │ │ │ │ └── provider │ │ │ │ │ │ ├── DefaultEntityManagerProvider.java │ │ │ │ │ │ ├── DefaultTransactionProvider.java │ │ │ │ │ │ ├── EEEntityManagerProvider.java │ │ │ │ │ │ └── EETransactionProvider.java │ │ │ │ ├── status │ │ │ │ │ └── DefaultJobStatusManager.java │ │ │ │ └── transaction │ │ │ │ │ ├── DefaultBatchTransactionService.java │ │ │ │ │ ├── DefaultNonTransactionalManager.java │ │ │ │ │ └── JTAUserTransactionAdapter.java │ │ │ ├── status │ │ │ │ ├── ExecutionStatus.java │ │ │ │ ├── ExtendedBatchStatus.java │ │ │ │ ├── JobStatus.java │ │ │ │ ├── JobStatusKey.java │ │ │ │ ├── SplitExecutionStatus.java │ │ │ │ ├── StepStatus.java │ │ │ │ └── StepStatusKey.java │ │ │ └── util │ │ │ │ ├── BatchContainerConstants.java │ │ │ │ ├── BatchFlowInSplitWorkUnit.java │ │ │ │ ├── BatchParallelWorkUnit.java │ │ │ │ ├── BatchPartitionPlan.java │ │ │ │ ├── BatchPartitionWorkUnit.java │ │ │ │ ├── BatchWorkUnit.java │ │ │ │ ├── ClassLoaderAwareHandler.java │ │ │ │ ├── DependencyInjections.java │ │ │ │ ├── ExceptionUtil.java │ │ │ │ ├── FlowInSplitBuilderConfig.java │ │ │ │ ├── PartitionDataWrapper.java │ │ │ │ ├── PartitionsBuilderConfig.java │ │ │ │ ├── Serializations.java │ │ │ │ └── TCCLObjectInputStream.java │ │ │ ├── jaxb │ │ │ ├── Analyzer.java │ │ │ ├── BatchArtifactRef.java │ │ │ ├── BatchArtifacts.java │ │ │ ├── Batchlet.java │ │ │ ├── CheckpointAlgorithm.java │ │ │ ├── Chunk.java │ │ │ ├── Collector.java │ │ │ ├── Decision.java │ │ │ ├── End.java │ │ │ ├── ExceptionClassFilter.java │ │ │ ├── Fail.java │ │ │ ├── Flow.java │ │ │ ├── ItemProcessor.java │ │ │ ├── ItemReader.java │ │ │ ├── ItemWriter.java │ │ │ ├── JSLJob.java │ │ │ ├── JSLProperties.java │ │ │ ├── Listener.java │ │ │ ├── Listeners.java │ │ │ ├── Next.java │ │ │ ├── ObjectFactory.java │ │ │ ├── Partition.java │ │ │ ├── PartitionMapper.java │ │ │ ├── PartitionPlan.java │ │ │ ├── PartitionReducer.java │ │ │ ├── Property.java │ │ │ ├── Split.java │ │ │ ├── Step.java │ │ │ ├── Stop.java │ │ │ └── package-info.java │ │ │ ├── jmx │ │ │ ├── BatchEE.java │ │ │ ├── BatchEEMBean.java │ │ │ └── BatchEEMBeanImpl.java │ │ │ ├── servlet │ │ │ └── CleanUpWebappListener.java │ │ │ ├── spi │ │ │ ├── BatchArtifactFactory.java │ │ │ ├── BatchService.java │ │ │ ├── BatchThreadPoolService.java │ │ │ ├── DataRepresentationService.java │ │ │ ├── JobExecutionCallbackService.java │ │ │ ├── JobXMLLoaderService.java │ │ │ ├── PersistenceManagerService.java │ │ │ ├── TransactionManagementService.java │ │ │ └── TransactionManagerAdapter.java │ │ │ └── util │ │ │ └── Batches.java │ ├── resources │ │ └── META-INF │ │ │ ├── LICENSE │ │ │ ├── NOTICE │ │ │ └── services │ │ │ ├── javax.batch.operations.JobOperator │ │ │ └── javax.enterprise.inject.spi.Extension │ ├── xjb │ │ └── jobXML_1_0.xjb │ └── xsd │ │ ├── batchXML_1_0.xsd │ │ └── jobXML_1_0.xsd │ └── test │ ├── java │ └── org │ │ └── apache │ │ └── batchee │ │ ├── component │ │ └── SimpleBatchlet.java │ │ ├── container │ │ └── impl │ │ │ ├── JobOperatorImplTest.java │ │ │ └── controller │ │ │ └── chunk │ │ │ └── ExceptionConfigTest.java │ │ ├── spi │ │ └── PersistenceManagerServiceTest.java │ │ └── test │ │ ├── cdi │ │ └── InjectionsTest.java │ │ ├── data │ │ └── DefaultDataRepresentationServiceTest.java │ │ ├── decider │ │ └── DeciderTest.java │ │ ├── id │ │ └── PartitionIdTest.java │ │ ├── jmx │ │ └── JMXTest.java │ │ ├── metric │ │ └── PartitionMetricsTest.java │ │ ├── mock │ │ ├── BatchletMock.java │ │ └── InjectionsMock.java │ │ ├── partitioned │ │ └── PartitionedBatchTest.java │ │ ├── persistence │ │ └── PropertyHelperTest.java │ │ ├── substitution │ │ └── PartitionPropertySubstitutionTest.java │ │ └── tck │ │ ├── jndi │ │ └── TckContextFactory.java │ │ └── lifecycle │ │ └── ContainerLifecycle.java │ └── resources │ ├── META-INF │ ├── batch-jobs │ │ ├── checkpoint-storage-test.xml │ │ ├── decider-test.xml │ │ ├── injections.xml │ │ ├── jmx.xml │ │ ├── partition-execId.xml │ │ ├── partition-metrics.xml │ │ ├── partition-propertyResolver.xml │ │ ├── partition-stop.xml │ │ └── simple.xml │ ├── beans.xml │ ├── persistence-createdb.xml │ └── persistence.xml │ ├── batchee.properties │ ├── import-jdbc │ └── orderDB.sql │ ├── jndi.properties │ └── suites │ └── dev-suite.xml ├── pom.xml ├── siteDeploy.sh ├── src └── site │ ├── apt │ └── privacy-policy.apt │ ├── markdown │ ├── cli.md │ ├── configuration.md │ ├── extensions.md │ ├── gui.md │ ├── index.md │ ├── maven.md │ └── modules.md │ └── site.xml ├── test ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── apache │ │ └── batchee │ │ └── test │ │ ├── JobLauncher.java │ │ ├── StepBuilder.java │ │ ├── StepLauncher.java │ │ └── SynchronousJobOperator.java │ └── test │ ├── java │ └── org │ │ └── apache │ │ └── batchee │ │ └── test │ │ ├── JobLauncherTest.java │ │ ├── StepLauncherTest.java │ │ ├── SynchronousJobOperatorTest.java │ │ └── components │ │ └── SleepBatchlet.java │ └── resources │ └── META-INF │ └── batch-jobs │ └── sleep.xml └── tools ├── cli ├── pom.xml └── src │ ├── main │ ├── assembly │ │ ├── bin-openejb.xml │ │ └── bin.xml │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ └── cli │ │ │ ├── BatchEECLI.java │ │ │ ├── bootstrap │ │ │ └── Bootstrap.java │ │ │ ├── classloader │ │ │ └── ChildFirstURLClassLoader.java │ │ │ ├── command │ │ │ ├── Abandon.java │ │ │ ├── Eviction.java │ │ │ ├── Executions.java │ │ │ ├── Instances.java │ │ │ ├── JobOperatorCommand.java │ │ │ ├── Names.java │ │ │ ├── Restart.java │ │ │ ├── Running.java │ │ │ ├── SocketCommand.java │ │ │ ├── SocketConfigurableCommand.java │ │ │ ├── Start.java │ │ │ ├── StartableCommand.java │ │ │ ├── Status.java │ │ │ ├── StepExecutions.java │ │ │ ├── Stop.java │ │ │ ├── api │ │ │ │ ├── Arguments.java │ │ │ │ ├── CliConfiguration.java │ │ │ │ ├── Command.java │ │ │ │ ├── Exit.java │ │ │ │ ├── Option.java │ │ │ │ └── UserCommand.java │ │ │ └── internal │ │ │ │ └── DefaultCliConfiguration.java │ │ │ ├── jul │ │ │ └── OneLineFormatter.java │ │ │ ├── lifecycle │ │ │ ├── Lifecycle.java │ │ │ └── impl │ │ │ │ ├── CdiCtrlLifecycle.java │ │ │ │ ├── LifecycleBase.java │ │ │ │ ├── OpenEJBLifecycle.java │ │ │ │ └── SpringLifecycle.java │ │ │ └── zip │ │ │ └── Zips.java │ └── resources │ │ ├── META-INF │ │ ├── LICENSE │ │ └── NOTICE │ │ ├── batchee │ │ ├── default │ │ └── batchee-cli.properties │ │ ├── logging.properties │ │ └── openejb │ │ └── batchee-cli.properties │ └── test │ ├── java │ └── org │ │ └── apache │ │ └── batchee │ │ └── cli │ │ ├── MainTest.java │ │ ├── command │ │ ├── User1.java │ │ └── User2.java │ │ └── component │ │ ├── LongSample.java │ │ └── Sample.java │ └── resources │ └── META-INF │ ├── batch-jobs │ ├── long-sample.xml │ └── sample.xml │ └── services │ └── org.apache.batchee.cli.command.UserCommand ├── doc-api ├── pom.xml └── src │ └── main │ └── java │ └── org │ └── apache │ └── batchee │ └── doc │ └── api │ └── Documentation.java ├── ee6 ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── apache │ │ └── batchee │ │ └── tools │ │ └── services │ │ └── thread │ │ ├── AsyncEjbBatchThreadPoolService.java │ │ ├── ThreadExecutorEjb.java │ │ └── UserTransactionTransactionService.java │ └── resources │ └── META-INF │ └── beans.xml ├── maven-plugin ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── batchee │ │ │ └── tools │ │ │ └── maven │ │ │ ├── AbandonMojo.java │ │ │ ├── BarMojo.java │ │ │ ├── BatchEEMojoBase.java │ │ │ ├── DiagramMojo.java │ │ │ ├── DocumentationMojo.java │ │ │ ├── JobActionMojoBase.java │ │ │ ├── JobExecutionMojo.java │ │ │ ├── JobExecutionMojoBase.java │ │ │ ├── JobExecutionsMojo.java │ │ │ ├── JobInstanceCountMojo.java │ │ │ ├── JobInstanceMojo.java │ │ │ ├── JobInstancesMojo.java │ │ │ ├── JobNamesMojo.java │ │ │ ├── ParametersMojo.java │ │ │ ├── ReStartMojo.java │ │ │ ├── RunningExecutionsMojo.java │ │ │ ├── StartMojo.java │ │ │ ├── StepExecutionsMojo.java │ │ │ ├── StopMojo.java │ │ │ ├── doc │ │ │ ├── ComponentDocumentationGenerator.java │ │ │ └── DiagramGenerator.java │ │ │ └── locator │ │ │ └── MavenPluginLocator.java │ └── resources │ │ └── META-INF │ │ ├── LICENSE │ │ ├── NOTICE │ │ └── plexus │ │ └── components.xml │ └── test │ ├── java │ └── org │ │ └── apache │ │ └── batchee │ │ └── tools │ │ └── maven │ │ ├── AbandonMojoTest.java │ │ ├── BatchEEMojoTestFactory.java │ │ ├── CountJobInstanceMojoTest.java │ │ ├── DiagramMojoTest.java │ │ ├── DocumentationMojoTest.java │ │ ├── JobExecutionMojoTest.java │ │ ├── JobExecutionsMojoTest.java │ │ ├── JobInstanceMojoTest.java │ │ ├── JobInstancesMojoTest.java │ │ ├── JobNamesMojoTest.java │ │ ├── ParametersMojoTest.java │ │ ├── ReStartMojoTest.java │ │ ├── RunningExecutionsMojoTest.java │ │ ├── StartMojoTest.java │ │ ├── StepExecutionsMojoTest.java │ │ ├── StopMojoTest.java │ │ └── batchlet │ │ └── SimpleBatchlet.java │ └── resources │ └── META-INF │ └── batch-jobs │ ├── diagram.xml │ ├── simple-2.xml │ └── simple.xml └── pom.xml /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | *.iml 3 | idea/ 4 | .java-version 5 | .site-content/ 6 | .idea 7 | .classpath 8 | .project 9 | batchee-site-generated 10 | -------------------------------------------------------------------------------- /DISCLAIMER: -------------------------------------------------------------------------------- 1 | Apache BatchEE is an effort undergoing incubation at the Apache Software 2 | Foundation (ASF), sponsored by the Apache Incubator PMC. 3 | 4 | Incubation is required of all newly accepted projects until a further review 5 | indicates that the infrastructure, communications, and decision making process 6 | have stabilized in a manner consistent with other successful ASF projects. 7 | 8 | While incubation status is not necessarily a reflection of the completeness 9 | or stability of the code, it does indicate that the project has yet to be 10 | fully endorsed by the ASF. 11 | 12 | For more information about the incubation status of the Apache BatchEE project you 13 | can go to the following page: 14 | 15 | http://incubator.apache.org/projects/batchee.html 16 | http://batchee.incubator.apache.org 17 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Apapche BatchEE 2 | Copyright 2014-2017 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | 7 | This product includes software developed by IBM under Apache License Version 2.0. 8 | Copyright 2007-2013 International Business Machines Corp. All rights reserved. 9 | -------------------------------------------------------------------------------- /extensions/beanio/src/main/resources/META-INF/batchee.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /extensions/beanio/src/test/resources/META-INF/batch-jobs/beanio-reader.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /extensions/beanio/src/test/resources/META-INF/batch-jobs/beanio-writer.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/camel/src/main/java/org/apache/batchee/camel/CamelTemplateLocator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.camel; 18 | 19 | import org.apache.camel.ConsumerTemplate; 20 | import org.apache.camel.ProducerTemplate; 21 | 22 | public interface CamelTemplateLocator { 23 | ProducerTemplate findProducerTemplate(); 24 | ConsumerTemplate findConsumerTemplate(); 25 | } 26 | -------------------------------------------------------------------------------- /extensions/camel/src/main/resources/META-INF/batchee.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /extensions/camel/src/main/resources/META-INF/services/org/apache/camel/component/jbatch: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | class=org.apache.batchee.camel.component.JBatchComponent 17 | -------------------------------------------------------------------------------- /extensions/camel/src/test/resources/META-INF/batch-jobs/camel-chain-processor.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/camel/src/test/resources/META-INF/batch-jobs/camel-processor.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/camel/src/test/resources/META-INF/batch-jobs/camel-reader.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/camel/src/test/resources/META-INF/batch-jobs/camel-writer.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /extensions/camel/src/test/resources/META-INF/batch-jobs/component.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /extensions/camel/src/test/resources/META-INF/services/org/apache/camel/component/test: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | class=org.apache.batchee.camel.util.TestComponent 18 | -------------------------------------------------------------------------------- /extensions/cdi/src/main/java/org/apache/batchee/cdi/scope/JobScoped.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.cdi.scope; 18 | 19 | import javax.enterprise.context.NormalScope; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.Target; 22 | 23 | import static java.lang.annotation.ElementType.FIELD; 24 | import static java.lang.annotation.ElementType.METHOD; 25 | import static java.lang.annotation.RetentionPolicy.RUNTIME; 26 | import static java.lang.annotation.ElementType.TYPE; 27 | 28 | @Target({TYPE, METHOD, FIELD}) 29 | @Retention(RUNTIME) 30 | @NormalScope 31 | public @interface JobScoped { 32 | } 33 | -------------------------------------------------------------------------------- /extensions/cdi/src/main/java/org/apache/batchee/cdi/scope/StepScoped.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.cdi.scope; 18 | 19 | import javax.enterprise.context.NormalScope; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.Target; 22 | 23 | import static java.lang.annotation.ElementType.FIELD; 24 | import static java.lang.annotation.ElementType.METHOD; 25 | import static java.lang.annotation.ElementType.TYPE; 26 | import static java.lang.annotation.RetentionPolicy.RUNTIME; 27 | 28 | @Target({TYPE, METHOD, FIELD}) 29 | @Retention(RUNTIME) 30 | @NormalScope 31 | public @interface StepScoped { 32 | } 33 | -------------------------------------------------------------------------------- /extensions/cdi/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 23 | -------------------------------------------------------------------------------- /extensions/cdi/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | org.apache.batchee.cdi.impl.BatchEEScopeExtension 2 | -------------------------------------------------------------------------------- /extensions/cdi/src/test/java/org/apache/batchee/cdi/component/Holder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.cdi.component; 18 | 19 | import java.util.LinkedList; 20 | import java.util.List; 21 | 22 | public final class Holder { 23 | public static final List JOB_SCOPED_IDS = new LinkedList(); 24 | public static final List STEP_SCOPED_IDS = new LinkedList(); 25 | 26 | private Holder() { 27 | // no-op 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /extensions/cdi/src/test/resources/META-INF/batch-jobs/cdi.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /extensions/cdi/src/test/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 23 | -------------------------------------------------------------------------------- /extensions/cdi/src/test/resources/batchee.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | org.apache.batchee.job.listeners.before = beforeJobScopeListener 18 | org.apache.batchee.job.listeners.after = afterJobScopeListener 19 | org.apache.batchee.step.listeners.after = afterStepScopeListener 20 | -------------------------------------------------------------------------------- /extensions/commons-csv/src/main/java/org/apache/batchee/csv/CsvReaderMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.csv; 18 | 19 | import org.apache.commons.csv.CSVRecord; 20 | 21 | public interface CsvReaderMapper { 22 | O fromRecord(CSVRecord record); 23 | } 24 | -------------------------------------------------------------------------------- /extensions/commons-csv/src/main/java/org/apache/batchee/csv/CsvWriterMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.csv; 18 | 19 | public interface CsvWriterMapper { 20 | Iterable toRecord(I record); 21 | } 22 | -------------------------------------------------------------------------------- /extensions/commons-csv/src/main/java/org/apache/batchee/csv/mapper/CoercingConverter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.csv.mapper; 18 | 19 | public interface CoercingConverter { 20 | Object valueFor(Class type, String value); 21 | } 22 | -------------------------------------------------------------------------------- /extensions/commons-csv/src/main/java/org/apache/batchee/csv/mapper/Csv.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.csv.mapper; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.Target; 21 | 22 | import static java.lang.annotation.ElementType.FIELD; 23 | import static java.lang.annotation.RetentionPolicy.RUNTIME; 24 | 25 | @Target(FIELD) 26 | @Retention(RUNTIME) 27 | public @interface Csv { 28 | String DEFAULT_NAME = "__DEFAULT__"; 29 | 30 | int index() default -1; 31 | String name() default DEFAULT_NAME; 32 | } 33 | -------------------------------------------------------------------------------- /extensions/commons-csv/src/main/resources/META-INF/batchee.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /extensions/commons-csv/src/test/resources/META-INF/batch-jobs/csv-reader-defaultmapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/commons-csv/src/test/resources/META-INF/batch-jobs/csv-reader-defaultmappername.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /extensions/commons-csv/src/test/resources/META-INF/batch-jobs/csv-reader-mapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/commons-csv/src/test/resources/META-INF/batch-jobs/csv-reader.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/commons-csv/src/test/resources/META-INF/batch-jobs/csv-writer-defaultmapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/commons-csv/src/test/resources/META-INF/batch-jobs/csv-writer-defaultmapperheaders.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/commons-csv/src/test/resources/META-INF/batch-jobs/csv-writer.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/extras/src/main/java/org/apache/batchee/extras/flat/LineMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.extras.flat; 18 | 19 | public interface LineMapper { 20 | Object map(String line, long lineNumber); 21 | } 22 | -------------------------------------------------------------------------------- /extensions/extras/src/main/java/org/apache/batchee/extras/jdbc/ObjectMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.extras.jdbc; 18 | 19 | import java.sql.PreparedStatement; 20 | import java.sql.SQLException; 21 | 22 | public interface ObjectMapper { 23 | void map(Object item, PreparedStatement statement) throws SQLException; 24 | } 25 | -------------------------------------------------------------------------------- /extensions/extras/src/main/java/org/apache/batchee/extras/jdbc/RecordMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.extras.jdbc; 18 | 19 | import java.sql.ResultSet; 20 | import java.sql.SQLException; 21 | 22 | public interface RecordMapper { 23 | Object map(ResultSet resultSet) throws SQLException; 24 | } 25 | -------------------------------------------------------------------------------- /extensions/extras/src/main/java/org/apache/batchee/extras/jpa/EntityManagerProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.extras.jpa; 18 | 19 | import javax.persistence.EntityManager; 20 | 21 | public interface EntityManagerProvider { 22 | EntityManager newEntityManager(); 23 | void release(final EntityManager em); 24 | } 25 | -------------------------------------------------------------------------------- /extensions/extras/src/main/java/org/apache/batchee/extras/jpa/ParameterProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.extras.jpa; 18 | 19 | import javax.persistence.Query; 20 | 21 | public interface ParameterProvider { 22 | void setParameters(Query query); 23 | } 24 | -------------------------------------------------------------------------------- /extensions/extras/src/main/java/org/apache/batchee/extras/lang/Langs.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.extras.lang; 18 | 19 | public final class Langs { 20 | public static String repalceEscapableChars(final String str) { 21 | return str.replace("\\\\n", "\n").replace("\\\\r", "\r").replace("\\\\t", "\t"); 22 | } 23 | 24 | private Langs() { 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /extensions/extras/src/main/java/org/apache/batchee/extras/typed/TypedItemProcessor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.extras.typed; 18 | 19 | import javax.batch.api.chunk.ItemProcessor; 20 | 21 | /** 22 | * Typesafe ItemProcessor 23 | * 24 | * @param InputType 25 | * @param ReturnType 26 | */ 27 | public abstract class TypedItemProcessor implements ItemProcessor { 28 | protected abstract O doProcessItem(I item); 29 | 30 | @Override 31 | public Object processItem(Object item) throws Exception { 32 | return doProcessItem((I) item); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /extensions/extras/src/test/java/org/apache/batchee/extras/util/Person.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.extras.util; 18 | 19 | import javax.persistence.Entity; 20 | import javax.persistence.GeneratedValue; 21 | import javax.persistence.Id; 22 | 23 | @Entity 24 | public class Person { 25 | @Id 26 | @GeneratedValue 27 | private long id; 28 | private String name; 29 | 30 | public long getId() { 31 | return id; 32 | } 33 | 34 | public String getName() { 35 | return name; 36 | } 37 | 38 | public void setName(String name) { 39 | this.name = name; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /extensions/extras/src/test/resources/META-INF/batch-jobs/async-processor.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/extras/src/test/resources/META-INF/batch-jobs/bean-validation-processor.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/extras/src/test/resources/META-INF/batch-jobs/buffered-read-null.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /extensions/extras/src/test/resources/META-INF/batch-jobs/buffered-read.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /extensions/extras/src/test/resources/META-INF/batch-jobs/chain-processor.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/extras/src/test/resources/META-INF/batch-jobs/flat-file-reader.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/extras/src/test/resources/META-INF/batch-jobs/flat-file-writer.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /extensions/extras/src/test/resources/META-INF/batch-jobs/jdbc-batchlet.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/extras/src/test/resources/META-INF/batch-jobs/jpa-reader.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/extras/src/test/resources/META-INF/batch-jobs/jpa-writer.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/extras/src/test/resources/META-INF/batch-jobs/no-state-reader.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /extensions/extras/src/test/resources/META-INF/batch-jobs/no-state-writer.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /extensions/extras/src/test/resources/META-INF/batch-jobs/stax-reader.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /extensions/extras/src/test/resources/META-INF/batch-jobs/stax-writer.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/groovy/src/main/resources/META-INF/batchee.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /extensions/groovy/src/test/resources/META-INF/batch-jobs/groovy-batchlet.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /extensions/groovy/src/test/resources/META-INF/batch-jobs/groovy-processor.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/groovy/src/test/resources/META-INF/batch-jobs/groovy-reader.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /extensions/groovy/src/test/resources/META-INF/batch-jobs/groovy-writer.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /extensions/hazelcast/src/main/java/org/apache/batchee/hazelcast/HazelcastUnlockBatchlet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.hazelcast; 18 | 19 | import org.apache.batchee.doc.api.Documentation; 20 | 21 | import javax.batch.api.Batchlet; 22 | 23 | @Documentation("Unlock a hazelcast lock") 24 | public class HazelcastUnlockBatchlet extends HazelcastSynchroInstanceAware implements Batchlet { 25 | @Override 26 | public String process() throws Exception { 27 | findLock().unlock(); 28 | return "unlocked"; 29 | } 30 | 31 | @Override 32 | public void stop() throws Exception { 33 | // no-op 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /extensions/hazelcast/src/main/resources/META-INF/batchee.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /extensions/jackson/src/main/java/org/apache/batchee/jackson/DefaultFieldNameGenerator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.jackson; 18 | 19 | public class DefaultFieldNameGenerator implements FieldNameGenerator { 20 | private int count = 0; 21 | 22 | @Override 23 | public String nextName() { 24 | return "item" + ++count; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /extensions/jackson/src/main/java/org/apache/batchee/jackson/FieldNameGenerator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.jackson; 18 | 19 | public interface FieldNameGenerator { 20 | String nextName(); 21 | } 22 | -------------------------------------------------------------------------------- /extensions/jackson/src/main/resources/META-INF/batchee.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /extensions/jackson/src/test/java/org/apache/batchee/jackson/bean/Record.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.jackson.bean; 18 | 19 | public class Record { 20 | private String v1; 21 | private String v2; 22 | 23 | public String getV1() { 24 | return v1; 25 | } 26 | 27 | public void setV1(String v1) { 28 | this.v1 = v1; 29 | } 30 | 31 | public String getV2() { 32 | return v2; 33 | } 34 | 35 | public void setV2(String v2) { 36 | this.v2 = v2; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /extensions/jackson/src/test/resources/META-INF/batch-jobs/jackson-field-writer.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/jackson/src/test/resources/META-INF/batch-jobs/jackson-reader.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/jackson/src/test/resources/META-INF/batch-jobs/jackson-writer.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/jsefa/src/main/resources/META-INF/batchee.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-csv-reader-converter.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-csv-reader-header.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-csv-reader.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-csv-writer-converter.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-csv-writer-header-fromFieldsMoreObjects.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-csv-writer-header-fromFieldsOneType.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-csv-writer-header-fromFieldsWithInheritance.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-csv-writer-header-fromHeaderAnnotation.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-csv-writer-header.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-csv-writer-multiOjectTypes.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-csv-writer-nestedObjects.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-csv-writer.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-flr-reader-converter.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-flr-reader.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-flr-writer-converter.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-flr-writer.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-xml-reader.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/jsefa/src/test/resources/META-INF/batch-jobs/jsefa-xml-writer.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extensions/jsonp/src/main/resources/META-INF/batchee.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /extensions/jsonp/src/test/resources/META-INF/batch-jobs/jsonp-reader.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /extensions/jsonp/src/test/resources/META-INF/batch-jobs/jsonp-writer.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /extensions/modelmapper/src/main/resources/META-INF/batchee.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /extensions/modelmapper/src/test/resources/META-INF/batch-jobs/modelmapper-processor-loose.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /extensions/modelmapper/src/test/resources/META-INF/batch-jobs/modelmapper-processor.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-client/src/main/java/org/apache/batchee/jaxrs/client/CxfClientConfiguration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.jaxrs.client; 18 | 19 | import org.apache.cxf.transports.http.configuration.HTTPClientPolicy; 20 | 21 | public class CxfClientConfiguration extends ClientConfiguration { 22 | private HTTPClientPolicy policy; 23 | 24 | public HTTPClientPolicy getPolicy() { 25 | return policy; 26 | } 27 | 28 | public void setPolicy(final HTTPClientPolicy policy) { 29 | this.policy = policy; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-client/src/main/java/org/apache/batchee/jaxrs/client/http/Base64s.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.jaxrs.client.http; 18 | 19 | public interface Base64s { 20 | String BASIC_PREFIX = "BASIC "; 21 | String AUTHORIZATION_HEADER = "Authorization"; 22 | } 23 | -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-client/src/main/java/org/apache/batchee/jaxrs/client/impl/MetricImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.jaxrs.client.impl; 18 | 19 | import javax.batch.runtime.Metric; 20 | 21 | public class MetricImpl implements Metric { 22 | private final MetricType type; 23 | private final long value; 24 | 25 | public MetricImpl(final MetricType type, final long value) { 26 | this.type= type; 27 | this.value = value; 28 | } 29 | 30 | @Override 31 | public MetricType getType() { 32 | return type; 33 | } 34 | 35 | @Override 36 | public long getValue() { 37 | return value; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-client/src/test/java/org/apache/batchee/jaxrs/client/CxfClientTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.jaxrs.client; 18 | 19 | import javax.batch.operations.JobOperator; 20 | 21 | public class CxfClientTest extends ClientTestBase { 22 | @Override 23 | protected JobOperator newJobOperator(final int port) { 24 | final ClientConfiguration configuration = new ClientConfiguration(); 25 | configuration.setBaseUrl("http://localhost:" + port + "/"); 26 | return BatchEEJAXRSClientFactory.newClient(configuration, BatchEEJAXRSClientFactory.API.CXF); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-client/src/test/resources/batchee/execution/parameter/54.json: -------------------------------------------------------------------------------- 1 | {"entries":[{"key":"a","value":"b"}, {"key":"c","value":"d"}]} 2 | -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-client/src/test/resources/batchee/execution/start/simple.json: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-client/src/test/resources/batchee/executions/running/running.json: -------------------------------------------------------------------------------- 1 | [1, 2] 2 | -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-client/src/test/resources/batchee/job-execution/159.json: -------------------------------------------------------------------------------- 1 | {"id": 753, "name": "job", "batchStatus": "COMPLETED", "startTime": 1380887154330, "endTime": 1380887154448, "exitStatus": "exit", "createTime": 1380887154287, "lastUpdatedTime": 1380887154448, "jobParameters": { 2 | "entries": [ 3 | { 4 | "key": "test", 5 | "value": "jbatch" 6 | } 7 | ] 8 | }} 9 | -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-client/src/test/resources/batchee/job-executions/45896/job.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 0, 4 | "name": "j0", 5 | "batchStatus": "FAILED", 6 | "startTime": 1380887154398, 7 | "endTime": 1380887154435, 8 | "exitStatus": "out" 9 | }, 10 | { 11 | "name": "j1", 12 | "batchStatus": "COMPLETED", 13 | "exitStatus": "es" 14 | } 15 | ] -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-client/src/test/resources/batchee/job-instance/2.json: -------------------------------------------------------------------------------- 1 | {"name":"ji","id":12} 2 | -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-client/src/test/resources/batchee/job-instance/count/ajob.json: -------------------------------------------------------------------------------- 1 | 5 -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-client/src/test/resources/batchee/job-instances/anotherjob.json: -------------------------------------------------------------------------------- 1 | [{"name":"owb","id":0}, {"name":"tomee","id":1}] -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-client/src/test/resources/batchee/job-names.json: -------------------------------------------------------------------------------- 1 | ["s1", "s2"] 2 | -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-client/src/test/resources/batchee/step-executions/8946.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 0, 4 | "name": "j0", 5 | "batchStatus": "FAILED", 6 | "startTime": 1380887154398, 7 | "endTime": 1380887154435, 8 | "exitStatus": "out" 9 | }, 10 | { 11 | "name": "j1", 12 | "batchStatus": "COMPLETED", 13 | "exitStatus": "es" 14 | } 15 | ] -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-common/src/main/java/org/apache/batchee/jaxrs/common/RestEntry.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.jaxrs.common; 18 | 19 | public class RestEntry { 20 | private String key; 21 | private String value; 22 | 23 | public String getKey() { 24 | return key; 25 | } 26 | 27 | public void setKey(final String key) { 28 | this.key = key; 29 | } 30 | 31 | public String getValue() { 32 | return value; 33 | } 34 | 35 | public void setValue(final String value) { 36 | this.value = value; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-server/src/main/java/org/apache/batchee/jaxrs/server/JBatchApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.jaxrs.server; 18 | 19 | import javax.ws.rs.ApplicationPath; 20 | import javax.ws.rs.core.Application; 21 | import java.util.Arrays; 22 | import java.util.HashSet; 23 | import java.util.Set; 24 | 25 | @ApplicationPath("jbatch") 26 | public class JBatchApplication extends Application { 27 | @Override 28 | public Set> getClasses() { 29 | return new HashSet>(Arrays.>asList(JBatchResourceImpl.class)); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-server/src/main/java/org/apache/batchee/jaxrs/server/JBatchExceptionMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.jaxrs.server; 18 | 19 | import javax.batch.operations.BatchRuntimeException; 20 | import javax.ws.rs.core.Response; 21 | import javax.ws.rs.ext.ExceptionMapper; 22 | 23 | public class JBatchExceptionMapper implements ExceptionMapper { 24 | @Override 25 | public Response toResponse(final BatchRuntimeException e) { 26 | return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(e.getMessage()).build(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-server/src/main/webapp/WEB-INF/openejb-jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | cxf.jaxrs.providers = org.apache.batchee.jaxrs.server.JBatchExceptionMapper,com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-server/src/test/resources/META-INF/batch-jobs/another-job.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /gui/jaxrs/jaxrs-server/src/test/resources/META-INF/batch-jobs/init.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /gui/servlet/embedded/src/main/resources/META-INF/NOTICE: -------------------------------------------------------------------------------- 1 | jQuery v2.0.3 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license 2 | 3 | License: MIT 4 | 5 | --- 6 | 7 | Normalise 8 | MIT License | git.io/normalize 9 | 10 | --- 11 | 12 | Bootstrap v3.0.0 13 | 14 | Copyright 2013 Twitter, Inc 15 | Licensed under the Apache License v2.0 16 | http://www.apache.org/licenses/LICENSE-2.0 17 | 18 | -------------------------------------------------------------------------------- /gui/servlet/embedded/src/main/resources/META-INF/resources/internal/batchee/after-start.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="java.net.URLEncoder" %> 2 | <%-- 3 | Licensed to the Apache Software Foundation (ASF) under one or more 4 | contributor license agreements. See the NOTICE file distributed with 5 | this work for additional information regarding copyright ownership. 6 | The ASF licenses this file to You under the Apache License, Version 2.0 7 | (the "License"); you may not use this file except in compliance with 8 | the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, software 13 | distributed under the License is distributed on an "AS IS" BASIS, 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | --%> 18 | <%@ page session="false" %> 19 | 20 |

Started job instance <%= request.getAttribute("id") %> of batch <%= request.getAttribute("name") %>

21 | -------------------------------------------------------------------------------- /gui/servlet/embedded/src/main/resources/META-INF/resources/internal/batchee/read-only.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Licensed to the Apache Software Foundation (ASF) under one or more 3 | contributor license agreements. See the NOTICE file distributed with 4 | this work for additional information regarding copyright ownership. 5 | The ASF licenses this file to You under the Apache License, Version 2.0 6 | (the "License"); you may not use this file except in compliance with 7 | the License. You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | --%> 17 | <%@ page session="false" %> 18 |

This deployment is read only since deployed out of the JBatch application 19 | so you can't run/stop batches.

20 | -------------------------------------------------------------------------------- /gui/servlet/embedded/src/main/resources/META-INF/resources/internal/batchee/view.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Licensed to the Apache Software Foundation (ASF) under one or more 3 | contributor license agreements. See the NOTICE file distributed with 4 | this work for additional information regarding copyright ownership. 5 | The ASF licenses this file to You under the Apache License, Version 2.0 6 | (the "License"); you may not use this file except in compliance with 7 | the License. You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | --%> 17 | <%@ page session="false" %> 18 | 19 |

Batch <%= request.getAttribute("name") %>

20 |
21 |     <%= request.getAttribute("content") %>
22 | 
23 | -------------------------------------------------------------------------------- /gui/servlet/embedded/src/main/resources/META-INF/services/javax.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | org.apache.batchee.servlet.JBatchServletInitializer 2 | -------------------------------------------------------------------------------- /gui/servlet/embedded/src/test/resources/META-INF/batch-jobs/another-job.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /gui/servlet/embedded/src/test/resources/META-INF/batch-jobs/init.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /integration-tests/transaction/src/test/java/org/apache/batchee/its/transaction/TxErrorReader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.its.transaction; 18 | 19 | import javax.batch.api.chunk.AbstractItemReader; 20 | 21 | /** 22 | * Sample Reader which simply counts from 1..5 23 | */ 24 | public class TxErrorReader extends AbstractItemReader { 25 | private int i = 1; 26 | 27 | @Override 28 | public Object readItem() throws Exception { 29 | if (i > 5) { 30 | return null; 31 | } 32 | return Integer.valueOf(i++); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /integration-tests/transaction/src/test/resources/META-INF/batch-jobs/txtest1.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /integration-tests/transaction/src/test/resources/batchee.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | TransactionManagementService=org.apache.batchee.its.transaction.MockTransactionManagerService -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/container/Controller.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 International Business Machines Corp. 3 | * 4 | * See the NOTICE file distributed with this work for additional information 5 | * regarding copyright ownership. Licensed under the Apache License, 6 | * Version 2.0 (the "License"); you may not use this file except in compliance 7 | * with the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.container; 18 | 19 | import java.util.List; 20 | 21 | public interface Controller { 22 | void stop(); 23 | List getLastRunStepExecutions(); 24 | } 25 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/container/ExecutionElementController.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 International Business Machines Corp. 3 | * 4 | * See the NOTICE file distributed with this work for additional information 5 | * regarding copyright ownership. Licensed under the Apache License, 6 | * Version 2.0 (the "License"); you may not use this file except in compliance 7 | * with the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.container; 18 | 19 | import org.apache.batchee.container.status.ExecutionStatus; 20 | 21 | public interface ExecutionElementController extends Controller { 22 | ExecutionStatus execute(); 23 | } 24 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/container/ThreadRootController.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2012 International Business Machines Corp. 3 | * 4 | * See the NOTICE file distributed with this work for additional information 5 | * regarding copyright ownership. Licensed under the Apache License, 6 | * Version 2.0 (the "License"); you may not use this file except in compliance 7 | * with the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.container; 18 | 19 | import org.apache.batchee.container.impl.StepContextImpl; 20 | import org.apache.batchee.container.status.ExecutionStatus; 21 | 22 | public interface ThreadRootController extends Controller { 23 | ExecutionStatus originateExecutionOnThread(); 24 | void setParentStepContext(StepContextImpl stepContext); 25 | } 26 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/container/impl/controller/chunk/CheckpointType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.container.impl.controller.chunk; 18 | 19 | public enum CheckpointType { 20 | READER, WRITER 21 | } 22 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/container/impl/controller/chunk/PersistentDataWrapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 International Business Machines Corp. 3 | * 4 | * See the NOTICE file distributed with this work for additional information 5 | * regarding copyright ownership. Licensed under the Apache License, 6 | * Version 2.0 (the "License"); you may not use this file except in compliance 7 | * with the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.container.impl.controller.chunk; 18 | 19 | import java.io.Serializable; 20 | 21 | public class PersistentDataWrapper implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | private byte[] persistentDataBytes; 24 | 25 | public PersistentDataWrapper(byte[] persistentData) { 26 | this.persistentDataBytes = persistentData; 27 | } 28 | 29 | public byte[] getPersistentDataBytes() { 30 | return persistentDataBytes; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/container/navigator/NavigatorFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 International Business Machines Corp. 3 | * 4 | * See the NOTICE file distributed with this work for additional information 5 | * regarding copyright ownership. Licensed under the Apache License, 6 | * Version 2.0 (the "License"); you may not use this file except in compliance 7 | * with the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.container.navigator; 18 | 19 | import org.apache.batchee.jaxb.Flow; 20 | import org.apache.batchee.jaxb.JSLJob; 21 | 22 | public class NavigatorFactory { 23 | private NavigatorFactory() { 24 | // private utility class ct 25 | } 26 | 27 | public static JobNavigator createJobNavigator(JSLJob job) { 28 | return new JobNavigator(job); 29 | } 30 | 31 | public static FlowNavigator createFlowNavigator(Flow flow) { 32 | return new FlowNavigator(flow); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/container/services/ServicesManagerLocator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2012,2013 International Business Machines Corp. 4 | * 5 | * See the NOTICE file distributed with this work for additional information 6 | * regarding copyright ownership. Licensed under the Apache License, 7 | * Version 2.0 (the "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.batchee.container.services; 19 | 20 | public interface ServicesManagerLocator { 21 | ServicesManager find(); 22 | } 23 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/container/services/executor/DefaultThreadPoolService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012,2013 International Business Machines Corp. 3 | * 4 | * See the NOTICE file distributed with this work for additional information 5 | * regarding copyright ownership. Licensed under the Apache License, 6 | * Version 2.0 (the "License"); you may not use this file except in compliance 7 | * with the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.container.services.executor; 18 | 19 | import java.util.Properties; 20 | import java.util.concurrent.ExecutorService; 21 | import java.util.concurrent.Executors; 22 | 23 | public class DefaultThreadPoolService extends AbstractThreadPoolService { 24 | @Override 25 | protected ExecutorService newExecutorService(Properties batchConfig) { 26 | return Executors.newCachedThreadPool(BatcheeThreadFactory.INSTANCE); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/container/services/locator/SingletonLocator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2012,2013 International Business Machines Corp. 4 | * 5 | * See the NOTICE file distributed with this work for additional information 6 | * regarding copyright ownership. Licensed under the Apache License, 7 | * Version 2.0 (the "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.batchee.container.services.locator; 19 | 20 | import org.apache.batchee.container.services.ServicesManager; 21 | import org.apache.batchee.container.services.ServicesManagerLocator; 22 | 23 | public class SingletonLocator implements ServicesManagerLocator { 24 | public static final ServicesManagerLocator INSTANCE = new SingletonLocator(); 25 | 26 | private static final ServicesManager MANAGER = new ServicesManager(); 27 | static { 28 | MANAGER.init(null); 29 | } 30 | 31 | @Override 32 | public ServicesManager find() { 33 | return MANAGER; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/container/services/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 International Business Machines Corp. 3 | * 4 | * See the NOTICE file distributed with this work for additional information 5 | * regarding copyright ownership. Licensed under the Apache License, 6 | * Version 2.0 (the "License"); you may not use this file except in compliance 7 | * with the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | /** 18 | * This interfaces are tightly coupled to the existing 19 | * batch implementation. 20 | */ 21 | package org.apache.batchee.container.services; -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/container/services/persistence/jdbc/database/Database.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.container.services.persistence.jdbc.database; 18 | 19 | public interface Database { 20 | String integer(); 21 | String bigint(); 22 | String varchar255(); 23 | String varchar20(); 24 | String blob(); 25 | String timestamp(); 26 | 27 | String autoIncrementId(); 28 | String columnName(String name); 29 | } 30 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/container/services/persistence/jpa/EntityManagerProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.container.services.persistence.jpa; 18 | 19 | import javax.persistence.EntityManager; 20 | import java.util.Properties; 21 | 22 | public interface EntityManagerProvider { 23 | EntityManager newEntityManager(); 24 | void release(EntityManager entityManager); 25 | void init(Properties batchConfig); 26 | } 27 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/container/status/ExtendedBatchStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 International Business Machines Corp. 3 | * 4 | * See the NOTICE file distributed with this work for additional information 5 | * regarding copyright ownership. Licensed under the Apache License, 6 | * Version 2.0 (the "License"); you may not use this file except in compliance 7 | * with the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.container.status; 18 | 19 | public enum ExtendedBatchStatus { 20 | JSL_END, JSL_FAIL, JSL_STOP, NORMAL_COMPLETION, EXCEPTION_THROWN, JOB_OPERATOR_STOPPING, DO_NOT_RUN 21 | } 22 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/container/util/BatchContainerConstants.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 International Business Machines Corp. 3 | * 4 | * See the NOTICE file distributed with this work for additional information 5 | * regarding copyright ownership. Licensed under the Apache License, 6 | * Version 2.0 (the "License"); you may not use this file except in compliance 7 | * with the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.container.util; 18 | 19 | public interface BatchContainerConstants { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/jaxb/package-info.java: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 3 | // See http://java.sun.com/xml/jaxb 4 | // Any modifications to this file will be lost upon recompilation of the source schema. 5 | // Generated on: 2013.08.27 at 09:45:12 AM CEST 6 | // 7 | 8 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://xmlns.jcp.org/xml/ns/javaee", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package org.apache.batchee.jaxb; 9 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/spi/BatchService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 International Business Machines Corp. 3 | * 4 | * See the NOTICE file distributed with this work for additional information 5 | * regarding copyright ownership. Licensed under the Apache License, 6 | * Version 2.0 (the "License"); you may not use this file except in compliance 7 | * with the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.spi; 18 | 19 | 20 | import java.util.Properties; 21 | 22 | public interface BatchService { 23 | void init(Properties batchConfig); 24 | } 25 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/spi/JobExecutionCallbackService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.spi; 18 | 19 | import org.apache.batchee.container.impl.jobinstance.RuntimeJobExecution; 20 | 21 | public interface JobExecutionCallbackService extends BatchService { 22 | void onJobExecutionDone(RuntimeJobExecution jobExecution); 23 | void waitFor(long id); 24 | } 25 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/spi/JobXMLLoaderService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 International Business Machines Corp. 3 | * 4 | * See the NOTICE file distributed with this work for additional information 5 | * regarding copyright ownership. Licensed under the Apache License, 6 | * Version 2.0 (the "License"); you may not use this file except in compliance 7 | * with the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.spi; 18 | 19 | public interface JobXMLLoaderService extends BatchService { 20 | 21 | 22 | /* 23 | * Load an XML document as a String given the JSL id. 24 | */ 25 | String loadJSL(String id); 26 | 27 | } 28 | -------------------------------------------------------------------------------- /jbatch/src/main/java/org/apache/batchee/spi/TransactionManagementService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 International Business Machines Corp. 3 | * 4 | * See the NOTICE file distributed with this work for additional information 5 | * regarding copyright ownership. Licensed under the Apache License, 6 | * Version 2.0 (the "License"); you may not use this file except in compliance 7 | * with the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.spi; 18 | 19 | import javax.batch.runtime.context.StepContext; 20 | 21 | public interface TransactionManagementService extends BatchService { 22 | TransactionManagerAdapter getTransactionManager(StepContext stepContext); 23 | } 24 | -------------------------------------------------------------------------------- /jbatch/src/main/resources/META-INF/NOTICE: -------------------------------------------------------------------------------- 1 | This product includes software developed by IBM under Apache License Version 2.0. 2 | Copyright 2007-2013 International Business Machines Corp. All rights reserved. 3 | -------------------------------------------------------------------------------- /jbatch/src/main/resources/META-INF/services/javax.batch.operations.JobOperator: -------------------------------------------------------------------------------- 1 | org.apache.batchee.container.impl.JobOperatorImpl 2 | -------------------------------------------------------------------------------- /jbatch/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | org.apache.batchee.container.cdi.BatchCDIInjectionExtension 2 | -------------------------------------------------------------------------------- /jbatch/src/test/java/org/apache/batchee/component/SimpleBatchlet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 International Business Machines Corp. 3 | * 4 | * See the NOTICE file distributed with this work for additional information 5 | * regarding copyright ownership. Licensed under the Apache License, 6 | * Version 2.0 (the "License"); you may not use this file except in compliance 7 | * with the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.component; 18 | 19 | import javax.batch.api.AbstractBatchlet; 20 | import javax.batch.api.BatchProperty; 21 | import javax.inject.Inject; 22 | 23 | import static java.lang.Thread.sleep; 24 | 25 | public class SimpleBatchlet extends AbstractBatchlet { 26 | @Inject 27 | @BatchProperty 28 | private Long duration; 29 | 30 | @Override 31 | public String process() throws Exception { 32 | if (duration != null && duration > 0) { 33 | sleep(duration); 34 | } 35 | return "ok"; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /jbatch/src/test/java/org/apache/batchee/test/mock/BatchletMock.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.test.mock; 18 | 19 | import javax.batch.api.AbstractBatchlet; 20 | 21 | public class BatchletMock extends AbstractBatchlet { 22 | @Override 23 | public String process() throws Exception { 24 | return "mock"; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /jbatch/src/test/resources/META-INF/batch-jobs/checkpoint-storage-test.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /jbatch/src/test/resources/META-INF/batch-jobs/injections.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /jbatch/src/test/resources/META-INF/batch-jobs/jmx.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /jbatch/src/test/resources/META-INF/batch-jobs/simple.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /jbatch/src/test/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | -------------------------------------------------------------------------------- /jbatch/src/test/resources/jndi.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | java.naming.factory.initial = org.apache.batchee.test.tck.jndi.TckContextFactory 17 | -------------------------------------------------------------------------------- /siteDeploy.sh: -------------------------------------------------------------------------------- 1 | mvn clean site site:stage $@ 2 | mvn scm-publish:publish-scm $@ 3 | -------------------------------------------------------------------------------- /test/src/test/resources/META-INF/batch-jobs/sleep.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tools/cli/src/main/java/org/apache/batchee/cli/command/SocketConfigurableCommand.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.cli.command; 18 | 19 | import org.apache.batchee.cli.command.api.Option; 20 | 21 | public abstract class SocketConfigurableCommand extends JobOperatorCommand { 22 | @Option(name = "wait", description = "should wait the end of the batch") 23 | protected boolean wait = true; 24 | 25 | @Option(name = "socket", description = "socket listening for stop/abandon commands") 26 | protected int adminSocket = -1; 27 | } 28 | -------------------------------------------------------------------------------- /tools/cli/src/main/java/org/apache/batchee/cli/command/api/Arguments.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.cli.command.api; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.Target; 21 | 22 | import static java.lang.annotation.ElementType.FIELD; 23 | import static java.lang.annotation.RetentionPolicy.RUNTIME; 24 | 25 | @Target(FIELD) 26 | @Retention(RUNTIME) 27 | public @interface Arguments { 28 | String description(); 29 | } 30 | -------------------------------------------------------------------------------- /tools/cli/src/main/java/org/apache/batchee/cli/command/api/CliConfiguration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.cli.command.api; 18 | 19 | import java.lang.reflect.Type; 20 | import java.util.Iterator; 21 | 22 | public interface CliConfiguration { 23 | String name(); 24 | String description(); 25 | boolean addDefaultCommands(); 26 | Iterator> userCommands(); 27 | Runnable decorate(Runnable task); 28 | Object coerce(String value, Type expected); 29 | } 30 | -------------------------------------------------------------------------------- /tools/cli/src/main/java/org/apache/batchee/cli/command/api/Command.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.cli.command.api; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.Target; 21 | 22 | import static java.lang.annotation.ElementType.TYPE; 23 | import static java.lang.annotation.RetentionPolicy.RUNTIME; 24 | 25 | @Target(TYPE) 26 | @Retention(RUNTIME) 27 | public @interface Command { 28 | String name(); 29 | String description() default ""; 30 | } 31 | -------------------------------------------------------------------------------- /tools/cli/src/main/java/org/apache/batchee/cli/command/api/Exit.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.cli.command.api; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.Target; 21 | 22 | import static java.lang.annotation.ElementType.TYPE; 23 | import static java.lang.annotation.RetentionPolicy.RUNTIME; 24 | 25 | @Retention(RUNTIME) 26 | @Target(TYPE) 27 | public @interface Exit { 28 | /** 29 | * @return the exit code to use. 30 | */ 31 | int value(); 32 | } 33 | -------------------------------------------------------------------------------- /tools/cli/src/main/java/org/apache/batchee/cli/command/api/Option.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.cli.command.api; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.Target; 21 | 22 | import static java.lang.annotation.ElementType.FIELD; 23 | import static java.lang.annotation.RetentionPolicy.RUNTIME; 24 | 25 | @Target(FIELD) 26 | @Retention(RUNTIME) 27 | public @interface Option { 28 | String name(); 29 | String description(); 30 | boolean required() default false; 31 | } 32 | -------------------------------------------------------------------------------- /tools/cli/src/main/java/org/apache/batchee/cli/command/api/UserCommand.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.cli.command.api; 18 | 19 | // use org.apache.batchee.cli.command.api.* 20 | // and register your command using META-INF/services/org.apache.batchee.cli.command.UserCommand mecanism 21 | // or a custom org.apache.batchee.cli.command.CliConfiguration 22 | public interface UserCommand extends Runnable { 23 | } 24 | -------------------------------------------------------------------------------- /tools/cli/src/main/java/org/apache/batchee/cli/lifecycle/Lifecycle.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.cli.lifecycle; 18 | 19 | /** 20 | * Handle before/after hooks for each command. 21 | * 22 | * @param the state type 23 | */ 24 | public interface Lifecycle { 25 | T start(); 26 | void stop(T state); 27 | } 28 | -------------------------------------------------------------------------------- /tools/cli/src/main/resources/META-INF/NOTICE: -------------------------------------------------------------------------------- 1 | Airline 2 | 3 | website: https://github.com/airlift/airline/ 4 | license: Apache v2 5 | -------------------------------------------------------------------------------- /tools/cli/src/main/resources/default/batchee-cli.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | 18 | # 19 | # You can put here default options you want inherited by all commands (without trailing iphen). 20 | # 21 | 22 | # ex: 23 | # lifecycle = openejb 24 | # sharedLibs = /opt/batch/libs 25 | -------------------------------------------------------------------------------- /tools/cli/src/main/resources/logging.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | handlers = java.util.logging.ConsoleHandler 17 | java.util.logging.ConsoleHandler.level = FINE 18 | java.util.logging.ConsoleHandler.formatter = org.apache.batchee.cli.jul.OneLineFormatter 19 | -------------------------------------------------------------------------------- /tools/cli/src/main/resources/openejb/batchee-cli.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | 18 | # 19 | # You can put here default options you want inherited by all commands (without trailing iphen). 20 | # 21 | 22 | # ex: 23 | # sharedLibs = /opt/batch/libs 24 | 25 | lifecycle = openejb 26 | 27 | -------------------------------------------------------------------------------- /tools/cli/src/test/java/org/apache/batchee/cli/command/User1.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.cli.command; 18 | 19 | import org.apache.batchee.cli.command.api.Command; 20 | import org.apache.batchee.cli.command.api.UserCommand; 21 | 22 | @Command(name = "user1") 23 | public class User1 implements UserCommand { 24 | @Override 25 | public void run() { 26 | System.out.println("User 1 called"); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /tools/cli/src/test/java/org/apache/batchee/cli/command/User2.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.cli.command; 18 | 19 | import org.apache.batchee.cli.command.api.Command; 20 | import org.apache.batchee.cli.command.api.UserCommand; 21 | 22 | @Command(name = "user2") 23 | public class User2 implements UserCommand { 24 | @Override 25 | public void run() { 26 | System.out.println("User 2 called"); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /tools/cli/src/test/java/org/apache/batchee/cli/component/LongSample.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.cli.component; 18 | 19 | import javax.batch.api.AbstractBatchlet; 20 | import javax.batch.api.BatchProperty; 21 | import javax.inject.Inject; 22 | 23 | import static java.lang.Thread.sleep; 24 | 25 | public class LongSample extends AbstractBatchlet { 26 | @Override 27 | public String process() throws Exception { 28 | sleep(1500); 29 | return "ok"; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /tools/cli/src/test/java/org/apache/batchee/cli/component/Sample.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.cli.component; 18 | 19 | import javax.batch.api.AbstractBatchlet; 20 | import javax.batch.api.BatchProperty; 21 | import javax.inject.Inject; 22 | 23 | public class Sample extends AbstractBatchlet { 24 | @Inject 25 | @BatchProperty 26 | private String status = "OK"; 27 | 28 | @Override 29 | public String process() throws Exception { 30 | if ("fail".equals(status)) { 31 | throw new IllegalStateException(); 32 | } 33 | return status; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /tools/cli/src/test/resources/META-INF/batch-jobs/long-sample.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /tools/cli/src/test/resources/META-INF/batch-jobs/sample.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tools/cli/src/test/resources/META-INF/services/org.apache.batchee.cli.command.UserCommand: -------------------------------------------------------------------------------- 1 | org.apache.batchee.cli.command.User1 2 | org.apache.batchee.cli.command.User2 3 | -------------------------------------------------------------------------------- /tools/doc-api/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 4.0.0 20 | 21 | 22 | batchee-tools 23 | org.apache.batchee 24 | 0.6-incubating-SNAPSHOT 25 | 26 | 27 | batchee-doc-api 28 | BatchEE :: Tools :: Doc API 29 | 30 | -------------------------------------------------------------------------------- /tools/doc-api/src/main/java/org/apache/batchee/doc/api/Documentation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.doc.api; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.Target; 21 | 22 | import static java.lang.annotation.ElementType.FIELD; 23 | import static java.lang.annotation.ElementType.METHOD; 24 | import static java.lang.annotation.ElementType.PARAMETER; 25 | import static java.lang.annotation.ElementType.TYPE; 26 | import static java.lang.annotation.RetentionPolicy.CLASS; 27 | 28 | @Retention(CLASS) 29 | @Target({ FIELD, METHOD, PARAMETER, TYPE }) 30 | public @interface Documentation { 31 | String value(); 32 | } 33 | -------------------------------------------------------------------------------- /tools/ee6/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 23 | -------------------------------------------------------------------------------- /tools/maven-plugin/src/main/java/org/apache/batchee/tools/maven/JobExecutionMojoBase.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.batchee.tools.maven; 18 | 19 | import javax.batch.runtime.JobExecution; 20 | 21 | public abstract class JobExecutionMojoBase extends BatchEEMojoBase { 22 | protected static String toStr(final JobExecution exec) { 23 | return "id = #" + exec.getExecutionId() + ", batch status = " + exec.getBatchStatus() 24 | + ", exit status = " + exec.getExitStatus() + ", created = " + exec.getCreateTime() 25 | + ", started = " + exec.getStartTime() + ", ended = " + exec.getEndTime(); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /tools/maven-plugin/src/main/resources/META-INF/NOTICE: -------------------------------------------------------------------------------- 1 | Jung 2 | ---- 3 | 4 | website: http://jung.sourceforge.net/ 5 | License: BSD 6 | -------------------------------------------------------------------------------- /tools/maven-plugin/src/test/resources/META-INF/batch-jobs/simple-2.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /tools/maven-plugin/src/test/resources/META-INF/batch-jobs/simple.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | --------------------------------------------------------------------------------