Tabnine Logo
ChunkMonitor.incrementOffset
Code IndexAdd Tabnine to your IDE (free)

How to use
incrementOffset
method
in
org.springframework.batch.core.step.item.ChunkMonitor

Best Java code snippets using org.springframework.batch.core.step.item.ChunkMonitor.incrementOffset (Showing top 11 results out of 315)

origin: spring-projects/spring-batch

@Test
public void testResetOffsetAutomatically() {
  for (int i = 0; i < CHUNK_SIZE; i++) {
    monitor.incrementOffset();
  }
  assertEquals(0, monitor.getOffset());
}
origin: spring-projects/spring-batch

@Test
public void testResetOffsetManually() {
  monitor.incrementOffset();
  monitor.resetOffset();
  assertEquals(0, monitor.getOffset());
}
origin: spring-projects/spring-batch

@Test
public void testUpdateVanilla() {
  monitor.incrementOffset();
  ExecutionContext executionContext = new ExecutionContext();
  monitor.update(executionContext);
  assertEquals(1, executionContext.size());
}
origin: spring-projects/spring-batch

@Test
public void testIncrementOffset() {
  assertEquals(0, monitor.getOffset());
  monitor.incrementOffset();
  assertEquals(1, monitor.getOffset());
}
origin: spring-projects/spring-batch

@Test
public void testClose() {
  monitor.incrementOffset();
  monitor.close();
  assertTrue(closed);
  assertEquals(0, monitor.getOffset());
}
origin: spring-projects/spring-batch

chunkMonitor.incrementOffset();
if (outputs.isEmpty()) {
  data.scanning(false);
origin: spring-projects/spring-batch

  @Test
  public void testUpdateWithNoStream() throws Exception {
    monitor = new ChunkMonitor();
    monitor.setItemReader(new ItemReader<String>() {
      @Override
      public String read() throws Exception, UnexpectedInputException, ParseException {
        return "" + (count++);
      }
    });
    monitor.setChunkSize(CHUNK_SIZE);
    monitor.incrementOffset();
    ExecutionContext executionContext = new ExecutionContext();
    monitor.update(executionContext);
    assertEquals(0, executionContext.size());
  }
}
origin: org.springframework.batch/spring-batch-core

chunkMonitor.incrementOffset();
if (outputs.isEmpty()) {
  data.scanning(false);
origin: apache/servicemix-bundles

chunkMonitor.incrementOffset();
if (outputs.isEmpty()) {
  data.scanning(false);
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

chunkMonitor.incrementOffset();
if (outputs.isEmpty()) {
  data.scanning(false);
origin: org.springframework.batch/org.springframework.batch.core

chunkMonitor.incrementOffset();
if (outputs.isEmpty()) {
  inputs.setBusy(false);
org.springframework.batch.core.step.itemChunkMonitorincrementOffset

Popular methods of ChunkMonitor

  • registerItemStream
  • resetOffset
  • setChunkSize
  • setItemReader
  • getData
  • getExecutionContextKey
  • setExecutionContextName
  • <init>
  • close
  • getOffset
  • open
  • update
  • open,
  • update

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • From CI to AI: The AI layer in your organization
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