This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.easybatch.jdbc; | |
| import org.easybatch.core.api.Record; | |
| import org.easybatch.core.api.RecordMapper; | |
| import org.easybatch.core.api.RecordProcessor; | |
| import org.easybatch.core.dispatcher.PoisonRecordBroadcaster; | |
| import org.easybatch.core.dispatcher.RoundRobinRecordDispatcher; | |
| import org.easybatch.core.filter.PoisonRecordFilter; | |
| import org.easybatch.core.impl.Engine; | |
| import org.easybatch.core.mapper.GenericRecordMapper; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| myFile=/data/in/input.csv | |
| while read line | |
| do | |
| echo "$line" | |
| done < $myFile | |
| dir=`ls /data/in` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.springframework.batch.item; | |
| import org.junit.Test; | |
| import java.text.DateFormat; | |
| import java.text.ParseException; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Date; | |
| import static org.junit.Assert.assertEquals; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class RepeatTest implements TestRule { | |
| private int count; | |
| public RepeatTest(int count) { | |
| if (count < 2 ) { | |
| throw new IllegalArgumentException("Count must be >= 2"); | |
| } | |
| this.count = count; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright 2018 the original author or authors. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.jeasy.flows.work; | |
| public abstract class ContextAwareWork implements Work { | |
| private String name; | |
| protected ExecutionContext executionContext; | |
| public ContextAwareWork(String name, ExecutionContext executionContext) { | |
| this.name = name; | |
| this.executionContext = executionContext; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.springframework.batch.core.StepContribution; | |
| import org.springframework.batch.core.scope.context.ChunkContext; | |
| import org.springframework.batch.core.step.tasklet.Tasklet; | |
| import org.springframework.batch.repeat.RepeatStatus; | |
| public class GreetingTasklet implements Tasklet { | |
| @Override | |
| public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) { | |
| Object name = chunkContext.getStepContext().getJobParameters().get("name"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.helloworldjob; | |
| import org.springframework.batch.core.Job; | |
| import org.springframework.batch.core.JobParameters; | |
| import org.springframework.batch.core.JobParametersBuilder; | |
| import org.springframework.batch.core.Step; | |
| import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing; | |
| import org.springframework.batch.core.configuration.annotation.JobBuilderFactory; | |
| import org.springframework.batch.core.configuration.annotation.StepBuilderFactory; | |
| import org.springframework.batch.core.converter.JobParametersConverter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io.github.benas.labs.javase.crypto; | |
| import javax.crypto.*; | |
| import javax.crypto.spec.PBEKeySpec; | |
| import javax.crypto.spec.PBEParameterSpec; | |
| import java.io.IOException; | |
| import java.security.InvalidAlgorithmParameterException; | |
| import java.security.InvalidKeyException; | |
| import java.security.NoSuchAlgorithmException; | |
| import java.security.spec.InvalidKeySpecException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io.github.benas.jeelabs.ws.dictionary; | |
| import com.google.gson.Gson; | |
| import com.thoughtworks.xstream.XStream; | |
| import io.github.benas.jeelabs.ws.dictionary.model.Word; | |
| import io.github.benas.jeelabs.ws.dictionary.persistence.InMemoryDictionary; | |
| import javax.ws.rs.*; | |
| import javax.ws.rs.core.MediaType; | |
| import javax.ws.rs.core.Response; |
OlderNewer