Codota Logo
TaskExecutorPartitionHandler.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler
constructor

Best Java code snippets using org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler.<init> (Showing top 12 results out of 315)

  • Common ways to obtain TaskExecutorPartitionHandler
private void myMethod () {
TaskExecutorPartitionHandler t =
  • Codota Iconnew TaskExecutorPartitionHandler()
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-batch

@Test
public void testNullStep() throws Exception {
  handler = new TaskExecutorPartitionHandler();
  try {
    handler.handle(stepExecutionSplitter, stepExecution);
    fail("Expected IllegalArgumentException");
  }
  catch (IllegalArgumentException e) {
    // expected
    String message = e.getMessage();
    assertTrue("Wrong message: " + message, message.contains("Step"));
  }
}
origin: spring-projects/spring-batch

@Test
public void testConfiguration() throws Exception {
  handler = new TaskExecutorPartitionHandler();
  try {
    handler.afterPropertiesSet();
    fail("Expected IllegalStateException when no step is set");
  }
  catch (IllegalStateException e) {
    // expected
    String message = e.getMessage();
    assertEquals("Wrong message: " + message, "A Step must be provided.", message);
  }
}
origin: spring-projects/spring-batch

TaskExecutorPartitionHandler partitionHandler = new TaskExecutorPartitionHandler();
partitionHandler.setStep(this.step);
if (taskExecutor == null) {
origin: spring-projects/spring-batch

@Test
public void testPartitionStepWithProxyHandler() throws Exception {
  StepParserStepFactoryBean<Object, Object> fb = new StepParserStepFactoryBean<>();
  fb.setBeanName("step1");
  fb.setAllowStartIfComplete(true);
  fb.setJobRepository(new JobRepositorySupport());
  fb.setStartLimit(5);
  fb.setListeners(new StepListener[] { new StepExecutionListenerSupport() });
  fb.setTaskExecutor(new SyncTaskExecutor());
  SimplePartitioner partitioner = new SimplePartitioner();
  fb.setPartitioner(partitioner);
  TaskExecutorPartitionHandler partitionHandler = new TaskExecutorPartitionHandler();
  partitionHandler.setStep(new StepSupport("foo"));
  ProxyFactory factory = new ProxyFactory(partitionHandler);
  fb.setPartitionHandler((PartitionHandler) factory.getProxy());
  Object step = fb.getObject();
  assertTrue(step instanceof PartitionStep);
  Object handler = ReflectionTestUtils.getField(step, "partitionHandler");
  assertTrue(handler instanceof Advised);
}
origin: spring-projects/spring-batch

TaskExecutorPartitionHandler partitionHandler = new TaskExecutorPartitionHandler();
partitionHandler.setStep(getStep());
if (getTaskExecutor() == null) {
origin: org.springframework.batch/org.springframework.batch.core

private void configurePartitionStep(PartitionStep ts) {
  Assert.state(partitioner != null, "A Partitioner must be provided for a partition step");
  Assert.state(step != null, "A Step must be provided for a partition step");
  configureAbstractStep(ts);
  if (partitionHandler != null) {
    ts.setPartitionHandler(partitionHandler);
  }
  else {
    TaskExecutorPartitionHandler partitionHandler = new TaskExecutorPartitionHandler();
    partitionHandler.setStep(step);
    if (taskExecutor == null) {
      taskExecutor = new SyncTaskExecutor();
    }
    partitionHandler.setGridSize(gridSize);
    partitionHandler.setTaskExecutor(taskExecutor);
    ts.setPartitionHandler(partitionHandler);
  }
  SimpleStepExecutionSplitter splitter = new SimpleStepExecutionSplitter(jobRepository, step, partitioner);
  ts.setStepExecutionSplitter(splitter);
}
origin: apache/servicemix-bundles

TaskExecutorPartitionHandler partitionHandler = new TaskExecutorPartitionHandler();
partitionHandler.setStep(this.step);
if (taskExecutor == null) {
origin: org.springframework.batch/spring-batch-core

TaskExecutorPartitionHandler partitionHandler = new TaskExecutorPartitionHandler();
partitionHandler.setStep(this.step);
if (taskExecutor == null) {
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

TaskExecutorPartitionHandler partitionHandler = new TaskExecutorPartitionHandler();
partitionHandler.setStep(this.step);
if (taskExecutor == null) {
origin: org.springframework.batch/spring-batch-core

TaskExecutorPartitionHandler partitionHandler = new TaskExecutorPartitionHandler();
partitionHandler.setStep(getStep());
if (getTaskExecutor() == null) {
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

TaskExecutorPartitionHandler partitionHandler = new TaskExecutorPartitionHandler();
partitionHandler.setStep(getStep());
if (getTaskExecutor() == null) {
origin: apache/servicemix-bundles

TaskExecutorPartitionHandler partitionHandler = new TaskExecutorPartitionHandler();
partitionHandler.setStep(getStep());
if (getTaskExecutor() == null) {
org.springframework.batch.core.partition.supportTaskExecutorPartitionHandler<init>

Popular methods of TaskExecutorPartitionHandler

  • setGridSize
    Passed to the StepExecutionSplitter in the #handle(StepExecutionSplitter,StepExecution) method, inst
  • setStep
    Setter for the Step that will be used to execute the partitioned StepExecution. This is a regular Sp
  • setTaskExecutor
    Setter for the TaskExecutor that is used to farm out step executions to multiple threads.
  • createTask
    Creates the task executing the given step in the context of the given execution.
  • getGridSize
  • afterPropertiesSet
  • handle

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • notifyDataSetChanged (ArrayAdapter)
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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