congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FlowExecution.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.springframework.batch.core.job.flow.FlowExecution
constructor

Best Java code snippets using org.springframework.batch.core.job.flow.FlowExecution.<init> (Showing top 14 results out of 315)

origin: spring-projects/spring-batch

    executor.close(new FlowExecution(stateName, status));
    throw e;
    executor.close(new FlowExecution(stateName, status));
    throw new FlowExecutionException(String.format("Ended flow=%s at state=%s with exception", name,
                               stateName), e);
FlowExecution result = new FlowExecution(stateName, status);
executor.close(result);
return result;
origin: spring-projects/spring-batch

@Test
public void testBasicHandling() throws Exception {
  Collection<Flow> flows  = new ArrayList<>();
  Flow flow1 = mock(Flow.class);
  Flow flow2 = mock(Flow.class);
  flows.add(flow1);
  flows.add(flow2);
  SplitState state = new SplitState(flows, "foo");
  when(flow1.start(executor)).thenReturn(new FlowExecution("step1", FlowExecutionStatus.COMPLETED));
  when(flow2.start(executor)).thenReturn(new FlowExecution("step1", FlowExecutionStatus.COMPLETED));
  FlowExecutionStatus result = state.handle(executor);
  assertEquals(FlowExecutionStatus.COMPLETED, result);
}
origin: spring-projects/spring-batch

@Test
public void testConcurrentHandling() throws Exception {
  Flow flow1 = mock(Flow.class);
  Flow flow2 = mock(Flow.class);
  SplitState state = new SplitState(Arrays.asList(flow1, flow2), "foo");
  state.setTaskExecutor(new SimpleAsyncTaskExecutor());
  when(flow1.start(executor)).thenReturn(new FlowExecution("step1", FlowExecutionStatus.COMPLETED));
  when(flow2.start(executor)).thenReturn(new FlowExecution("step1", FlowExecutionStatus.COMPLETED));
  FlowExecutionStatus result = state.handle(executor);
  assertEquals(FlowExecutionStatus.COMPLETED, result);
}
origin: spring-projects/spring-batch

@Test
public void testEnumOrdering() throws Exception {
  FlowExecution first = new FlowExecution("foo", FlowExecutionStatus.COMPLETED);
  FlowExecution second = new FlowExecution("foo", FlowExecutionStatus.FAILED);
  assertTrue("Should be negative",first.compareTo(second)<0);
  assertTrue("Should be positive",second.compareTo(first)>0);
}
origin: spring-projects/spring-batch

@Test
public void testFailed() throws Exception {
  FlowExecution first = new FlowExecution("foo", FlowExecutionStatus.COMPLETED);
  FlowExecution second = new FlowExecution("foo", FlowExecutionStatus.FAILED);
  assertTrue("Should be negative", first.compareTo(second)<0);
  assertTrue("Should be positive", second.compareTo(first)>0);
  assertEquals(FlowExecutionStatus.FAILED, aggregator.aggregate(Arrays.asList(first, second)));
}
origin: spring-projects/spring-batch

@Test
public void testEnumStartsWithOrdering() throws Exception {
  FlowExecution first = new FlowExecution("foo", new FlowExecutionStatus("COMPLETED.BAR"));
  FlowExecution second = new FlowExecution("foo", new FlowExecutionStatus("FAILED.FOO"));
  assertTrue("Should be negative",first.compareTo(second)<0);
  assertTrue("Should be positive",second.compareTo(first)>0);
}
origin: spring-projects/spring-batch

@Test
public void testEnumAndAlpha() throws Exception {
  FlowExecution first = new FlowExecution("foo", new FlowExecutionStatus("ZZZZZ"));
  FlowExecution second = new FlowExecution("foo", new FlowExecutionStatus("FAILED.FOO"));
  assertTrue("Should be negative",first.compareTo(second)<0);
  assertTrue("Should be positive",second.compareTo(first)>0);
}
origin: spring-projects/spring-batch

@Test
public void testEnumStartsWithAlphaOrdering() throws Exception {
  FlowExecution first = new FlowExecution("foo", new FlowExecutionStatus("COMPLETED.BAR"));
  FlowExecution second = new FlowExecution("foo", new FlowExecutionStatus("COMPLETED.FOO"));
  assertTrue("Should be negative",first.compareTo(second)<0);
  assertTrue("Should be positive",second.compareTo(first)>0);
}
origin: spring-projects/spring-batch

@Test
public void testAlphaOrdering() throws Exception {
  FlowExecution first = new FlowExecution("foo", new FlowExecutionStatus("BAR"));
  FlowExecution second = new FlowExecution("foo", new FlowExecutionStatus("SPAM"));
  assertTrue("Should be negative",first.compareTo(second)<0);
  assertTrue("Should be positive",second.compareTo(first)>0);
}
origin: spring-projects/spring-batch

@Test
public void testBasicProperties() throws Exception {
  FlowExecution execution = new FlowExecution("foo", new FlowExecutionStatus("BAR"));
  assertEquals("foo",execution.getName());
  assertEquals("BAR",execution.getStatus().getName());
}
origin: org.springframework.batch/org.springframework.batch.core

    executor.close(new FlowExecution(stateName, status));
    throw e;
    executor.close(new FlowExecution(stateName, status));
    throw new FlowExecutionException(String.format("Ended flow=%s at state=%s with exception", name,
        stateName), e);
FlowExecution result = new FlowExecution(stateName, status);
executor.close(result);
return result;
origin: org.springframework.batch/spring-batch-core

    executor.close(new FlowExecution(stateName, status));
    throw e;
    executor.close(new FlowExecution(stateName, status));
    throw new FlowExecutionException(String.format("Ended flow=%s at state=%s with exception", name,
                               stateName), e);
FlowExecution result = new FlowExecution(stateName, status);
executor.close(result);
return result;
origin: apache/servicemix-bundles

    executor.close(new FlowExecution(stateName, status));
    throw e;
    executor.close(new FlowExecution(stateName, status));
    throw new FlowExecutionException(String.format("Ended flow=%s at state=%s with exception", name,
                               stateName), e);
FlowExecution result = new FlowExecution(stateName, status);
executor.close(result);
return result;
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

    executor.close(new FlowExecution(stateName, status));
    throw e;
    executor.close(new FlowExecution(stateName, status));
    throw new FlowExecutionException(String.format("Ended flow=%s at state=%s with exception", name,
                               stateName), e);
FlowExecution result = new FlowExecution(stateName, status);
executor.close(result);
return result;
org.springframework.batch.core.job.flowFlowExecution<init>

Popular methods of FlowExecution

  • getStatus
  • compareTo
    Create an ordering on FlowExecution instances by comparing their statuses.
  • getName

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now