Tabnine Logo
RollingStorage.checkIfEmptyAndNotSealed
Code IndexAdd Tabnine to your IDE (free)

How to use
checkIfEmptyAndNotSealed
method
in
io.pravega.segmentstore.storage.rolling.RollingStorage

Best Java code snippets using io.pravega.segmentstore.storage.rolling.RollingStorage.checkIfEmptyAndNotSealed (Showing top 2 results out of 315)

origin: pravega/pravega

  headerHandle = this.baseStorage.create(headerName);
} catch (StreamSegmentExistsException ex) {
  checkIfEmptyAndNotSealed(ex, headerName);
  headerHandle = this.baseStorage.openWrite(headerName);
  log.debug("Empty Segment Header found for '{}'; treating as inexistent.", segmentName);
origin: pravega/pravega

private void createChunk(RollingSegmentHandle handle) throws StreamSegmentException {
  // Create new active SegmentChunk, only after which serialize the handle update and update the handle.
  // We ignore if the SegmentChunk exists and is empty - that's most likely due to a previous failed attempt.
  long segmentLength = handle.length();
  SegmentChunk newSegmentChunk = SegmentChunk.forSegment(handle.getSegmentName(), segmentLength);
  try {
    this.baseStorage.create(newSegmentChunk.getName());
  } catch (StreamSegmentExistsException ex) {
    checkIfEmptyAndNotSealed(ex, newSegmentChunk.getName());
  }
  serializeNewChunk(handle, newSegmentChunk);
  val activeHandle = this.baseStorage.openWrite(newSegmentChunk.getName());
  handle.addChunk(newSegmentChunk, activeHandle);
  log.debug("Created new SegmentChunk '{}' for '{}'.", newSegmentChunk, handle);
}
io.pravega.segmentstore.storage.rollingRollingStoragecheckIfEmptyAndNotSealed

Popular methods of RollingStorage

  • <init>
    Creates a new instance of the RollingStorage class.
  • create
  • delete
  • openRead
  • openWrite
  • seal
  • asReadableHandle
  • asWritableHandle
  • canTruncate
  • checkTruncatedSegment
  • concat
  • createChunk
  • concat,
  • createChunk,
  • createHeader,
  • deleteChunks,
  • ensureNotDeleted,
  • ensureNotSealed,
  • ensureOffset,
  • exists,
  • getHeaderInfo

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • JButton (javax.swing)
  • JPanel (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Sublime Text plugins
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