congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • getContentResolver (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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