congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ChunkMonitor.open
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: spring-projects/spring-batch

@Test(expected = ItemStreamException.class)
public void testOpenWithErrorInReader() {
  monitor.setItemReader(new ItemReader<String>() {
    @Override
    public String read() throws Exception, UnexpectedInputException, ParseException {
      throw new IllegalStateException("Expected");
    }
  });
  ExecutionContext executionContext = new ExecutionContext();
  executionContext.putInt(ChunkMonitor.class.getName() + ".OFFSET", 2);
  monitor.open(executionContext);
}
origin: spring-projects/spring-batch

@Test
public void testOpen() {
  ExecutionContext executionContext = new ExecutionContext();
  executionContext.putInt(ChunkMonitor.class.getName() + ".OFFSET", 2);
  monitor.open(executionContext);
  assertEquals(2, count);
  assertEquals(0, monitor.getOffset());
}
origin: spring-projects/spring-batch

@Test
public void testOpenWithNullReader() {
  monitor.setItemReader(null);
  ExecutionContext executionContext = new ExecutionContext();
  monitor.open(executionContext);
  assertEquals(0, monitor.getOffset());
}
org.springframework.batch.core.step.itemChunkMonitoropen

Popular methods of ChunkMonitor

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

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Table (org.hibernate.mapping)
    A relational table
  • Top plugins for WebStorm
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