Codota Logo
RemotePartitioningWorkerStepBuilder
Code IndexAdd Codota to your IDE (free)

How to use
RemotePartitioningWorkerStepBuilder
in
org.springframework.batch.integration.partition

Best Java code snippets using org.springframework.batch.integration.partition.RemotePartitioningWorkerStepBuilder (Showing top 17 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-batch

/**
 * Creates a {@link RemotePartitioningWorkerStepBuilder} and initializes its job
 * repository, job explorer, bean factory and transaction manager.
 * @param name the name of the step
 * @return a {@link RemotePartitioningWorkerStepBuilder}
 */
public RemotePartitioningWorkerStepBuilder get(String name) {
  return new RemotePartitioningWorkerStepBuilder(name)
      .repository(this.jobRepository)
      .jobExplorer(this.jobExplorer)
      .beanFactory(this.beanFactory)
      .transactionManager(this.transactionManager);
}
origin: spring-projects/spring-batch

@Bean
public Step workerStep() {
  return this.workerStepBuilderFactory.get("workerStep")
      .inputChannel(requests())
      .outputChannel(replies())
      .tasklet(tasklet(null))
      .build();
}
origin: spring-projects/spring-batch

@Override
public PartitionStepBuilder partitioner(String stepName, Partitioner partitioner) {
  configureWorkerIntegrationFlow();
  return super.partitioner(stepName, partitioner);
}
origin: spring-projects/spring-batch

@Test
public void testMandatoryJobExplorer() {
  // given
  DirectChannel inputChannel = new DirectChannel();
  this.expectedException.expect(IllegalArgumentException.class);
  this.expectedException.expectMessage("A JobExplorer must be provided");
  // when
  new RemotePartitioningWorkerStepBuilder("step")
      .inputChannel(inputChannel)
      .tasklet(this.tasklet);
  // then
  // expected exception
}
origin: spring-projects/spring-batch

@Bean
public Step workerStep() {
  return this.workerStepBuilderFactory.get("workerStep")
      .inputChannel(requests())
      .tasklet(tasklet(null))
      .build();
}
origin: spring-projects/spring-batch

@Test
public void outputChannelMustNotBeNull() {
  // given
  this.expectedException.expect(IllegalArgumentException.class);
  this.expectedException.expectMessage("outputChannel must not be null");
  // when
  new RemotePartitioningWorkerStepBuilder("step").outputChannel(null);
  // then
  // expected exception
}
origin: spring-projects/spring-batch

@Test
public void inputChannelMustNotBeNull() {
  // given
  this.expectedException.expect(IllegalArgumentException.class);
  this.expectedException.expectMessage("inputChannel must not be null");
  // when
  new RemotePartitioningWorkerStepBuilder("step").inputChannel(null);
  // then
  // expected exception
}
origin: spring-projects/spring-batch

@Test
public void testMandatoryInputChannel() {
  // given
  this.expectedException.expect(IllegalArgumentException.class);
  this.expectedException.expectMessage("An InputChannel must be provided");
  // when
  new RemotePartitioningWorkerStepBuilder("step").tasklet(this.tasklet);
  // then
  // expected exception
}
origin: spring-projects/spring-batch

@Test
public void jobExplorerMustNotBeNull() {
  // given
  this.expectedException.expect(IllegalArgumentException.class);
  this.expectedException.expectMessage("jobExplorer must not be null");
  // when
  new RemotePartitioningWorkerStepBuilder("step").jobExplorer(null);
  // then
  // expected exception
}
origin: spring-projects/spring-batch

@Test
public void beanFactoryMustNotBeNull() {
  // given
  this.expectedException.expect(IllegalArgumentException.class);
  this.expectedException.expectMessage("beanFactory must not be null");
  // when
  new RemotePartitioningWorkerStepBuilder("step").beanFactory(null);
  // then
  // expected exception
}
origin: spring-projects/spring-batch

@Test
public void stepLocatorMustNotBeNull() {
  // given
  this.expectedException.expect(IllegalArgumentException.class);
  this.expectedException.expectMessage("stepLocator must not be null");
  // when
  new RemotePartitioningWorkerStepBuilder("step").stepLocator(null);
  // then
  // expected exception
}
origin: spring-projects/spring-batch

@Override
public <I, O> SimpleStepBuilder<I, O> chunk(CompletionPolicy completionPolicy) {
  configureWorkerIntegrationFlow();
  return super.chunk(completionPolicy);
}
origin: spring-projects/spring-batch

@Override
public TaskletStepBuilder tasklet(Tasklet tasklet) {
  configureWorkerIntegrationFlow();
  return super.tasklet(tasklet);
}
origin: spring-projects/spring-batch

@Override
public JobStepBuilder job(Job job) {
  configureWorkerIntegrationFlow();
  return super.job(job);
}
origin: spring-projects/spring-batch

@Override
public PartitionStepBuilder partitioner(Step step) {
  configureWorkerIntegrationFlow();
  return super.partitioner(step);
}
origin: spring-projects/spring-batch

@Override
public FlowStepBuilder flow(Flow flow) {
  configureWorkerIntegrationFlow();
  return super.flow(flow);
}
origin: spring-projects/spring-batch

@Override
public <I, O> SimpleStepBuilder<I, O> chunk(int chunkSize) {
  configureWorkerIntegrationFlow();
  return super.chunk(chunkSize);
}
org.springframework.batch.integration.partitionRemotePartitioningWorkerStepBuilder

Javadoc

Builder for a worker step in a remote partitioning setup. This builder creates an IntegrationFlow that:
  • listens to StepExecutionRequests coming from the master on the input channel
  • invokes the StepExecutionRequestHandler to execute the worker step for each incoming request. The worker step is located using the provided StepLocator. If no StepLocator is provided, a BeanFactoryStepLocatorconfigured with the current BeanFactory will be used
  • replies to the master on the output channel (when the master step is configured to aggregate replies from workers). If no output channel is provided, a NullChannel will be used (assuming the master side is configured to poll the job repository for workers status)

Most used methods

  • <init>
    Initialize a step builder for a step with the given name.
  • beanFactory
    Set the bean factory.
  • inputChannel
    Set the input channel on which step execution requests sent by the master are received.
  • jobExplorer
    Set the job explorer.
  • outputChannel
    Set the output channel on which replies will be sent to the master step.
  • tasklet
  • configureWorkerIntegrationFlow
    Create an IntegrationFlow with a StepExecutionRequestHandlerconfigured as a service activator listen
  • repository
  • stepLocator
    Set the step locator used to locate the worker step to execute.
  • transactionManager

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • JPanel (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now