public class SegmentNodeStoreService extends org.apache.jackrabbit.oak.spi.state.ProxyNodeStore implements org.apache.jackrabbit.oak.spi.commit.Observable, SegmentStoreProvider
Modifier and Type | Field and Description |
---|---|
static String |
COMPACTION_FORCE_TIMEOUT |
static String |
COMPACTION_GAIN_THRESHOLD |
static String |
COMPACTION_RETRY_COUNT |
static String |
COMPACTION_SIZE_DELTA_ESTIMATION |
static String |
CUSTOM_BLOB_STORE |
static String |
DIRECTORY |
static String |
MODE |
static String |
NAME |
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 |
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() |
Modifier and Type | Method and Description |
---|---|
void |
activate(org.osgi.service.component.ComponentContext context) |
Closeable |
addObserver(org.apache.jackrabbit.oak.spi.commit.Observer observer) |
protected void |
bindBlobStore(org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore) |
void |
deactivate() |
protected SegmentNodeStore |
getNodeStore() |
SegmentStore |
getSegmentStore()
needed for situations where you have to unwrap the
SegmentNodeStoreService, to get the SegmentStore, like the failover
|
String |
toString() |
protected void |
unbindBlobStore(org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore) |
public static final String NAME
@Property(label="Directory", description="Directory location used to store the segment tar files. If not specified then looks for framework property \'repository.home\' otherwise use a subdirectory with name \'tarmk\'") public static final String DIRECTORY
@Property(label="Mode", description="TarMK mode (64 for memory mapping, 32 for normal file access)") public static final String MODE
@Property(intValue=256, label="Maximum Tar File Size (MB)", description="TarMK maximum file size (MB)") public static final String SIZE
@Property(intValue=256, label="Segment cache size (MB)", description="Cache size for storing most recently used segments") public static final String SEGMENT_CACHE_SIZE
@Property(intValue=256, label="String cache size (MB)", description="Cache size for storing most recently used strings") public static final String STRING_CACHE_SIZE
@Property(intValue=64, label="Template cache size (MB)", description="Cache size for storing most recently used templates") 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") 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") public static final String TEMPLATE_DEDUPLICATION_CACHE_SIZE
@Property(intValue=8388608, 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.") public static final String NODE_DEDUPLICATION_CACHE_SIZE
@Property(byteValue=10, label="Compaction gain threshold", description="TarMK compaction gain threshold. The gain estimation prevents compaction from running if the provided threshold is not met. Value represents a percentage so an input between 0 and 100 is expected.") public static final String COMPACTION_GAIN_THRESHOLD
@Property(boolValue=false, label="Pause Compaction", description="When enabled compaction would not be performed") 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") 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.") public static final String COMPACTION_FORCE_TIMEOUT
@Property(longValue=-1L, label="Compaction Repository Size Delta", description="Amount of increase in repository size that will trigger compaction (bytes)") public static final String COMPACTION_SIZE_DELTA_ESTIMATION
@Property(boolValue=false, label="Standby Mode", description="Flag indicating that this component will not register as a NodeStore but just as a NodeStoreProvider") public static final String STANDBY
@Property(boolValue=false, label="Custom BlobStore", description="Boolean value indicating that a custom BlobStore is to be used. By default large binary content would be stored within segment tar files") public static final String CUSTOM_BLOB_STORE
@Property(longValue=86400L, label="Blob GC Max Age (in secs)", description="Blob Garbage Collector (GC) logic will only consider those blobs for GC which are not accessed recently (currentTime - lastModifiedTime > blobGcMaxAgeInSecs). For example as per default only those blobs which have been created 24 hrs ago will be considered for GC") public static final String PROP_BLOB_GC_MAX_AGE
@Property(longValue=43200L, label="Blob tracking snapshot interval (in secs)", description="This is the default interval in which the snapshots of locally tracked blob ids willbe taken and synchronized with the blob store") public static final String PROP_BLOB_SNAPSHOT_INTERVAL
protected SegmentNodeStore getNodeStore()
getNodeStore
in class org.apache.jackrabbit.oak.spi.state.ProxyNodeStore
@Activate public void activate(org.osgi.service.component.ComponentContext context) throws IOException
IOException
protected void bindBlobStore(org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore) throws IOException
IOException
protected void unbindBlobStore(org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore)
@Deactivate public void deactivate()
public SegmentStore getSegmentStore()
getSegmentStore
in interface SegmentStoreProvider
public Closeable addObserver(org.apache.jackrabbit.oak.spi.commit.Observer observer)
addObserver
in interface org.apache.jackrabbit.oak.spi.commit.Observable
Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.