Class CommitLogSegmentManagerStandard
java.lang.Object
org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager
org.apache.cassandra.db.commitlog.CommitLogSegmentManagerStandard
-
Constructor Summary
ConstructorsConstructorDescriptionCommitLogSegmentManagerStandard(CommitLog commitLog, String storageDirectory) -
Method Summary
Modifier and TypeMethodDescriptionReserve space in the current segment for the provided mutation or, if there isn't space available, create a new segment.Hook to allow segment managers to track state surrounding creation of new segments.voiddiscard(CommitLogSegment segment, boolean delete) Methods inherited from class org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager
awaitManagementTasksCompletion, awaitTermination, getActiveSegments, onDiskSize, shutdown, stopUnsafe, sync
-
Constructor Details
-
CommitLogSegmentManagerStandard
-
-
Method Details
-
discard
-
allocate
Reserve space in the current segment for the provided mutation or, if there isn't space available, create a new segment. allocate() is blocking until allocation succeeds as it waits on a signal in advanceAllocatingFrom- Specified by:
allocatein classAbstractCommitLogSegmentManager- Parameters:
mutation- mutation to allocate space forsize- total size of mutation (overhead + serialized size)- Returns:
- the provided Allocation object
-
createSegment
Description copied from class:AbstractCommitLogSegmentManagerHook to allow segment managers to track state surrounding creation of new segments. Onl perform as task submit to segment manager so it's performed on segment management thread.- Overrides:
createSegmentin classAbstractCommitLogSegmentManager
-