public class SegmentNodeStoreService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BACKUP_DIRECTORY |
static String |
COMPACTION_DISABLE_ESTIMATION |
static String |
COMPACTION_FORCE_TIMEOUT |
static String |
COMPACTION_RETRY_COUNT |
static String |
COMPACTION_SIZE_DELTA_ESTIMATION |
static String |
CUSTOM_BLOB_STORE |
static String |
GC_PROGRESS_LOG |
static String |
MEMORY_THRESHOLD |
static String |
MODE |
static String |
NODE_DEDUPLICATION_CACHE_SIZE |
static String |
PAUSE_COMPACTION |
static String |
PROP_BLOB_GC_MAX_AGE |
static String |
PROP_BLOB_SNAPSHOT_INTERVAL |
static String |
REPOSITORY_HOME_DIRECTORY |
static String |
RETAINED_GENERATIONS |
static String |
SEGMENT_CACHE_SIZE |
static String |
SIZE |
static String |
STANDBY |
static String |
STRING_CACHE_SIZE |
static String |
STRING_DEDUPLICATION_CACHE_SIZE |
static String |
TEMPLATE_CACHE_SIZE |
static String |
TEMPLATE_DEDUPLICATION_CACHE_SIZE |
Constructor and Description |
---|
SegmentNodeStoreService() |
@Property(label="Repository Home Directory", description="Path on the file system where repository data will be stored. Defaults to the value of the framework property \'repository.home\' or to \'repository\' if that is neither specified.") public static final String REPOSITORY_HOME_DIRECTORY
@Property(label="Mode", description="TarMK mode (64 for memory mapped file access, 32 for normal file access). Default value is taken from the \'sun.arch.data.model\' system property.") public static final String MODE
@Property(intValue=256, label="Maximum tar file size (MB)", description="The maximum size of the tar files in megabytes. Default value is \'256\'.") public static final String SIZE
@Property(intValue=256, label="Segment cache size (MB)", description="Cache size for storing most recently used segments in megabytes. Default value is \'256\'.") public static final String SEGMENT_CACHE_SIZE
@Property(intValue=256, label="String cache size (MB)", description="Cache size for storing most recently used strings in megabytes. Default value is \'256\'.") public static final String STRING_CACHE_SIZE
@Property(intValue=64, label="Template cache size (MB)", description="Cache size for storing most recently used templates in megabytes. Default value is \'64\'.") public static final String TEMPLATE_CACHE_SIZE
@Property(intValue=15000, label="String deduplication cache size (#items)", description="Maximum number of strings to keep in the deduplication cache. Default value is \'15000\'.") public static final String STRING_DEDUPLICATION_CACHE_SIZE
@Property(intValue=3000, label="Template deduplication cache size (#items)", description="Maximum number of templates to keep in the deduplication cache. Default value is \'3000\'.") public static final String TEMPLATE_DEDUPLICATION_CACHE_SIZE
@Property(intValue=1048576, label="Node deduplication cache size (#items)", description="Maximum number of node to keep in the deduplication cache. If the supplied value is not a power of 2, it will be rounded up to the next power of 2. Default value is \'1048576\'.") public static final String NODE_DEDUPLICATION_CACHE_SIZE
@Property(boolValue=false, label="Pause compaction", description="When set to true the compaction phase is skipped during garbage collection. Default value is \'false\'.") public static final String PAUSE_COMPACTION
@Property(intValue=5, label="Compaction retries", description="Number of tries to compact concurrent commits on top of already compacted commits. Default value is \'5\'.") public static final String COMPACTION_RETRY_COUNT
@Property(intValue=60, label="Force compaction timeout", description="Number of seconds to attempt to force compact concurrent commits on top of already compacted commits after the maximum number of retries has been reached. Forced compaction tries to acquire an exclusive write lock on the node store, blocking concurrent write access as long as the lock is held. Default value is \'60\'.") public static final String COMPACTION_FORCE_TIMEOUT
@Property(longValue=1073741824L, label="Garbage collection repository size threshold", description="Garbage collection will be skipped unless the repository grew at least by the number of bytes specified. Default value is \'1073741824\'.") public static final String COMPACTION_SIZE_DELTA_ESTIMATION
@Property(boolValue=false, label="Disable estimation phase", description="Disables the estimation phase allowing garbage collection to run unconditionally. Default value is \'false\'.") public static final String COMPACTION_DISABLE_ESTIMATION
@Property(intValue=2, label="Compaction retained generations", description="Number of segment generations to retain during garbage collection. Must be set to at least 2. Default value is \'2\'.") public static final String RETAINED_GENERATIONS
@Property(intValue=15, label="Compaction memory threshold", description="Threshold of available heap memory in percent of total heap memory below which the compaction phase is canceled. 0 disables heap memory monitoring. Default value is \'15\'.") public static final String MEMORY_THRESHOLD
@Property(longValue=-1L, label="Compaction progress log", description="The number of nodes compacted after which a status message is logged. -1 disables progress logging. Default value is \'-1\'.") public static final String GC_PROGRESS_LOG
@Property(boolValue=false, label="Standby mode", description="Flag indicating this component will not register as a NodeStore but as a NodeStoreProvider instead. Default value is \'false\'.") public static final String STANDBY
@Property(boolValue=false, label="Custom blob store", description="Boolean value indicating that a custom BlobStore is used for storing large binary values.") public static final String CUSTOM_BLOB_STORE
@Property(label="Backup directory", description="Directory (relative to current working directory) for storing repository backups. Defaults to \'repository.home/segmentstore-backup\'.") public static final String BACKUP_DIRECTORY
@Property(longValue=86400L, label="Blob gc max age (in secs)", description="The blob garbage collection logic will only consider those blobs which are not accessed recently (currentTime - lastModifiedTime > blobGcMaxAgeInSecs). For example with the default setting only those blobs which have been created at least 24 hours ago will be considered for garbage collection. Default value is \'86400\'.") public static final String PROP_BLOB_GC_MAX_AGE
@Property(longValue=43200L, label="Blob tracking snapshot interval", description="Interval in seconds in which snapshots of locally tracked blob ids are taken and synchronized with the blob store. This should be configured to be less than the frequency of blob garbage collection so that deletions during blob garbage collection can be accounted for in the next garbage collection execution. Default value is \'43200\'.") public static final String PROP_BLOB_SNAPSHOT_INTERVAL
@Activate public void activate(org.osgi.service.component.ComponentContext context) throws IOException
IOException
@Deactivate public void deactivate()
Copyright © 2012-2019 The Apache Software Foundation. All Rights Reserved.