CommitLogSegment function ( ) { buffer . position ( 0 ) ; buffer . putInt ( CommitLog . END_OF_SEGMENT_MARKER ) ; buffer . position ( 0 ) ; try { sync ( ) ; } catch ( FSWriteError loc0 ) { logger . error ( "srini_string" , this , loc0 . getMessage ( ) ) ; throw loc0 ; } close ( ) ; return new CommitLogSegment ( getPath ( ) ) ; }
recycle processes an unneeded segment file for reuse . concode_field_sep long idBase concode_elem_sep int ENTRY_OVERHEAD_SIZE concode_elem_sep DataOutputStream bufferStream concode_elem_sep CommitLogDescriptor descriptor concode_elem_sep boolean needsSync concode_elem_sep Logger logger concode_elem_sep HashMap<UUID,Integer> cfLastWrite concode_elem_sep File logFile concode_elem_sep Checksum checksum concode_elem_sep boolean closed concode_elem_sep long id concode_elem_sep MappedByteBuffer buffer concode_elem_sep RandomAccessFile logFileAccessor concode_elem_sep AtomicInteger nextId concode_field_sep String dirtyString concode_elem_sep void discard concode_elem_sep int compare concode_elem_sep String getName concode_elem_sep void markDirty concode_elem_sep void markClean concode_elem_sep CommitLogSegment freshSegment concode_elem_sep void sync concode_elem_sep void markCFDirty concode_elem_sep boolean contains concode_elem_sep long getNextId concode_elem_sep String getPath concode_elem_sep boolean isUnused concode_elem_sep String toString concode_elem_sep boolean hasCapacityFor concode_elem_sep int position concode_elem_sep ReplayPosition write concode_elem_sep ReplayPosition getContext concode_elem_sep void close concode_elem_sep Collection<UUID> getDirtyCFIDs