All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService.class Maven / Gradle / Ivy

????2fAorg/apache/jackrabbit/oak/plugins/segment/SegmentNodeStoreService2org/apache/jackrabbit/oak/spi/state/ProxyNodeStore/org/apache/jackrabbit/oak/spi/commit/Observable>org/apache/jackrabbit/oak/plugins/segment/SegmentStoreProviderSegmentNodeStoreService.java,Lorg/apache/felix/scr/annotations/Component;policy6Lorg/apache/felix/scr/annotations/ConfigurationPolicy;REQUIREmetatypelabel/Apache Jackrabbit Oak Segment NodeStore Servicedescription?NodeStore implementation based on Document model. For configuration option refer to http://jackrabbit.apache.org/oak/docs/osgi_config.html#SegmentNodeStore. Note that for system stability purpose it is advisable to not change these settings at runtime. Instead the config change should be done via file system based config file and this view should ONLY be used to determine which options are supportedCorg/apache/jackrabbit/oak/plugins/segment/SegmentNodeStoreService$2Corg/apache/jackrabbit/oak/plugins/segment/SegmentNodeStoreService$1@org/apache/jackrabbit/oak/plugins/segment/file/FileStore$Builder8org/apache/jackrabbit/oak/plugins/segment/file/FileStoreBuilderSorg/apache/jackrabbit/oak/plugins/segment/compaction/CompactionStrategy$CleanupTypeGorg/apache/jackrabbit/oak/plugins/segment/compaction/CompactionStrategyCleanupType[org/apache/jackrabbit/oak/plugins/blob/datastore/SharedDataStoreUtils$SharedStoreRecordType"Eorg/apache/jackrabbit/oak/plugins/blob/datastore/SharedDataStoreUtils$SharedStoreRecordTypeNAMELjava/lang/String;name)	DIRECTORYrepository.home,+Lorg/apache/felix/scr/annotations/Property;	Directory?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'MODE
tarmk.mode2Mode=TarMK mode (64 for memory mapping, 32 for normal file access)SIZE
tarmk.size7intValueMaximum Tar File Size (MB)TarMK maximum file size (MB)CACHEcache>Cache size (MB)2Cache size for storing most recently used SegmentsCOMPACTION_CLONE_BINARIEScompaction.cloneBinariesC	boolValueClone Binaries5Clone the binary segments while performing compactionCOMPACTION_CLEANUPcompaction.cleanupJoptions1Lorg/apache/felix/scr/annotations/PropertyOption;	CLEAN_ALLvalue
CLEAN_NONE	CLEAN_OLDCleanup StrategyMCleanup strategy used for live in memory segment references while performing cleanup. 1. CLEAN_NONE: All in memory references are considered valid, 2. CLEAN_OLD: Only in memory references older than a certain age are considered valid (compaction.cleanup.timestamp), 3. CLEAN_ALL: None of the in memory references are considered validCOMPACTION_CLEANUP_TIMESTAMPcompaction.cleanup.timestampU	longValue%QReference expiry time (ms)gTime interval in ms beyond which in memory segment references would be ignored while performing cleanupCOMPACTION_MEMORY_THRESHOLDcompaction.memoryThreshold]	byteValueMemory MultiplierETarMK compaction available memory multiplier needed to run compactionCOMPACTION_GAIN_THRESHOLDcompaction.gainThresholdd
Compaction gain threshold?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 beween 0 and 100 is expected.PAUSE_COMPACTIONpauseCompactionjPause Compaction.When enabled compaction would not be performedCOMPACTION_RETRY_COUNTcompaction.retryCountoCompaction RetriesQNumber of tries to compact concurrent commits on top of already compacted commitsCOMPACTION_FORCE_AFTER_FAILcompaction.forceAfterFailtForce Compaction?Whether or not to force compact concurrent commits on top of already  compacted commits after the maximum number of retries has been reached. Force committing tries to exclusively write lock the node store.!COMPACTION_LOCK_WAIT_TIME_DEFAULTI<COMPACTION_LOCK_WAIT_TIMEcompaction.lockWaitTime|Compaction Lock Wait Time?Number of seconds to wait for the lock for committing compacted changes respectively to wait for the exclusive write lock for force committing.PERSIST_COMPACTION_MAPpersistCompactionMap?Persist Compaction MapRWhen enabled the compaction map would be persisted instead of being held in memorySTANDBYstandby?Standby ModedFlag indicating that this component will not register as a NodeStore but just as a NodeStoreProviderCUSTOM_BLOB_STOREcustomBlobStore?Custom BlobStore?Boolean value indicating that a custom BlobStore is to be used. By default large binary content would be stored within segment tar fileslogLorg/slf4j/Logger;store:Lorg/apache/jackrabbit/oak/plugins/segment/file/FileStore;segmentNodeStore blobGcMaxAgeInSecs). For example as per default only those blobs which have been created 24 hrs ago will be considered for GC()V??
?java/lang/Object?getClass()Ljava/lang/Class;??
??org/slf4j/LoggerFactory?	getLogger%(Ljava/lang/Class;)Lorg/slf4j/Logger;??
????	?2org/apache/jackrabbit/oak/stats/StatisticsProvider?NOOP??	????	?thisCLorg/apache/jackrabbit/oak/plugins/segment/SegmentNodeStoreService;getNodeStore>()Lorg/apache/jackrabbit/oak/plugins/segment/SegmentNodeStore;??	?#service must be activated when used?$com/google/common/base/Preconditions?
checkState(ZLjava/lang/Object;)V??
??activate0(Lorg/osgi/service/component/ComponentContext;)Vjava/io/IOException?+Lorg/apache/felix/scr/annotations/Activate;??	?property&(Ljava/lang/String;)Ljava/lang/String;??
?java/lang/Boolean?parseBoolean(Ljava/lang/String;)Z??
????	???	?^BlobStore use enabled. SegmentNodeStore would be initialized when BlobStore would be available?org/slf4j/Logger?info(Ljava/lang/String;)VregisterNodeStore?

bindBlobStore1(Lorg/apache/jackrabbit/oak/spi/blob/BlobStore;)VunbindBlobStoreunregisterNodeStore?

deactivate-Lorg/apache/felix/scr/annotations/Deactivate;??	.org/apache/jackrabbit/oak/osgi/ObserverTrackerstop?
??	1org/apache/jackrabbit/oak/spi/gc/GCMonitorTracker
??	close?
java/lang/Throwable!registerSegmentStore()Z#$
%0org/apache/jackrabbit/oak/commons/PropertiesUtil'	toBoolean(Ljava/lang/Object;Z)Z)*
(+registerSegmentNodeStore-$
.java/util/Hashtable0
1?service.pid3:org/apache/jackrabbit/oak/plugins/segment/SegmentNodeStore5java/lang/Class7getName()Ljava/lang/String;9:
8;java/util/Dictionary=put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;?@
>Aoak.nodestore.descriptionCjava/lang/StringEnodeStoreType=segmentG+org/osgi/service/component/ComponentContextIgetBundleContext$()Lorg/osgi/framework/BundleContext;KLJM-org/apache/jackrabbit/oak/spi/state/NodeStoreO org/osgi/framework/BundleContextQregisterServiced(Ljava/lang/String;Ljava/lang/Object;Ljava/util/Dictionary;)Lorg/osgi/framework/ServiceRegistration;STRU??	Wprops;Ljava/util/Dictionary;?Component still not activated. Ignoring the initialization call\-org/apache/jackrabbit/oak/osgi/OsgiWhiteboard^%(Lorg/osgi/framework/BundleContext;)V?`
_a
?start8(Lorg/apache/jackrabbit/oak/spi/whiteboard/Whiteboard;)Vde
fgetDirectory()Ljava/io/File;hi
jnewFileStoreR(Ljava/io/File;)Lorg/apache/jackrabbit/oak/plugins/segment/file/FileStore$Builder;lm
ngetCacheSize()Ipq
r
withCacheSizeE(I)Lorg/apache/jackrabbit/oak/plugins/segment/file/FileStore$Builder;tu
vgetMaxFileSizexq
ywithMaxFileSize{u
|getMode~:
64?equals(Ljava/lang/Object;)Z??
F?withMemoryMappingE(Z)Lorg/apache/jackrabbit/oak/plugins/segment/file/FileStore$Builder;??
?
withGCMonitorp(Lorg/apache/jackrabbit/oak/spi/gc/GCMonitor;)Lorg/apache/jackrabbit/oak/plugins/segment/file/FileStore$Builder;??
?withStatisticsProviderx(Lorg/apache/jackrabbit/oak/stats/StatisticsProvider;)Lorg/apache/jackrabbit/oak/plugins/segment/file/FileStore$Builder;??
?1Initializing SegmentNodeStore with BlobStore [{}]?'(Ljava/lang/String;Ljava/lang/Object;)V??
withBlobStorer(Lorg/apache/jackrabbit/oak/spi/blob/BlobStore;)Lorg/apache/jackrabbit/oak/plugins/segment/file/FileStore$Builder;??
?create<()Lorg/apache/jackrabbit/oak/plugins/segment/file/FileStore;??
?newCompactionStrategyK()Lorg/apache/jackrabbit/oak/plugins/segment/compaction/CompactionStrategy;??
???	?Lorg/apache/jackrabbit/oak/plugins/segment/compaction/CompactionStrategyMBean?Sorg/apache/jackrabbit/oak/plugins/segment/compaction/DefaultCompactionStrategyMBean?L(Lorg/apache/jackrabbit/oak/plugins/segment/compaction/CompactionStrategy;)V??
??CompactionStrategy?/Segment node store compaction strategy settings?8org/apache/jackrabbit/oak/spi/whiteboard/WhiteboardUtils?
registerMBean?(Lorg/apache/jackrabbit/oak/spi/whiteboard/Whiteboard;Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;)Lorg/apache/jackrabbit/oak/spi/whiteboard/Registration;??
????	?setCompactionStrategy?(Lorg/apache/jackrabbit/oak/plugins/segment/compaction/CompactionStrategy;)Lorg/apache/jackrabbit/oak/plugins/segment/file/FileStore;??
?
getTracker<()Lorg/apache/jackrabbit/oak/plugins/segment/SegmentTracker;??
?8org/apache/jackrabbit/oak/plugins/segment/SegmentTracker?getSegmentCacheStats.()Lorg/apache/jackrabbit/oak/cache/CacheStats;??
??1org/apache/jackrabbit/oak/api/jmx/CacheStatsMBean?
CacheStats?*org/apache/jackrabbit/oak/cache/CacheStats?
?;??	?getStringCacheStats??
????	?;org/apache/jackrabbit/oak/spi/whiteboard/WhiteboardExecutor?
????	?
?fF(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentNodeStoreService;)V??
?3org/apache/jackrabbit/oak/spi/state/RevisionGCMBean?.org/apache/jackrabbit/oak/spi/state/RevisionGC?6(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V??
??RevisionGarbageCollection?.Segment node store revision garbage collection???	?Borg/apache/jackrabbit/oak/plugins/segment/file/FileStoreStatsMBean?getStatsA()Lorg/apache/jackrabbit/oak/plugins/segment/file/FileStoreStats;??
?FileStoreStats?FileStore statistics???	?Aorg/apache/jackrabbit/oak/plugins/segment/file/FileStoreGCMonitor?%org/apache/jackrabbit/oak/stats/Clock?SIMPLE'Lorg/apache/jackrabbit/oak/stats/Clock;??	??*(Lorg/apache/jackrabbit/oak/stats/Clock;)V??
?>org/apache/jackrabbit/oak/spi/whiteboard/CompositeRegistration5org/apache/jackrabbit/oak/spi/whiteboard/Registration*org/apache/jackrabbit/oak/spi/gc/GCMonitorjava/util/CollectionsemptyMap()Ljava/util/Map;

	registerk(Ljava/lang/Class;Ljava/lang/Object;Ljava/util/Map;)Lorg/apache/jackrabbit/oak/spi/whiteboard/Registration;
_=org/apache/jackrabbit/oak/plugins/segment/file/GCMonitorMBean
GC Monitor%File Store garbage collection monitorscheduleWithFixedDelay?(Lorg/apache/jackrabbit/oak/spi/whiteboard/Whiteboard;Ljava/lang/Runnable;J)Lorg/apache/jackrabbit/oak/spi/whiteboard/Registration;
?;([Lorg/apache/jackrabbit/oak/spi/whiteboard/Registration;)V?
??	??	!
whiteboard/Lorg/apache/jackrabbit/oak/osgi/OsgiWhiteboard;builderBLorg/apache/jackrabbit/oak/plugins/segment/file/FileStore$Builder;segmentCacheStats,Lorg/apache/jackrabbit/oak/cache/CacheStats;stringCacheStatstriggerGarbageCollectionLjava/lang/Runnable;fsgcmCLorg/apache/jackrabbit/oak/plugins/segment/file/FileStoreGCMonitor;toLong(Ljava/lang/Object;J)J./
(0	toInteger(Ljava/lang/Object;I)I23
(4getCleanUpTypeW()Lorg/apache/jackrabbit/oak/plugins/segment/compaction/CompactionStrategy$CleanupType;67
8getMemoryThreshold()B:;
<getGainThreshold>;
??(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentNodeStoreService;ZZLorg/apache/jackrabbit/oak/plugins/segment/compaction/CompactionStrategy$CleanupType;JBI)V?A
B
setRetryCount(I)VDE
 FsetForceAfterFail(Z)VHI
 JsetPersistCompactionMapLI
 MsetGainThreshold(B)VOP
 Q
cloneBinaries	cleanupTs
retryCountforceAfterFaillockWaitTimecleanupTypeULorg/apache/jackrabbit/oak/plugins/segment/compaction/CompactionStrategy$CleanupType;memoryThresholdB
gainThresholdjava/lang/Exception]
getProperties()Ljava/util/Dictionary;_`Jaget&(Ljava/lang/Object;)Ljava/lang/Object;cd
>evalueOf&(Ljava/lang/Object;)Ljava/lang/String;gh
Fi)(	knewSegmentNodeStore}(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentStore;)Lorg/apache/jackrabbit/oak/plugins/segment/SegmentNodeStoreBuilder;mn
6oAorg/apache/jackrabbit/oak/plugins/segment/SegmentNodeStoreBuilderqwithCompactionStrategy?(Lorg/apache/jackrabbit/oak/plugins/segment/compaction/CompactionStrategy;)Lorg/apache/jackrabbit/oak/plugins/segment/SegmentNodeStoreBuilder;st
ru??
rw4(Lorg/apache/jackrabbit/oak/spi/commit/Observable;)V?y
zd`
|1org/apache/jackrabbit/oak/api/jmx/CheckpointMBean~@org/apache/jackrabbit/oak/plugins/segment/SegmentCheckpointMBean??(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentNodeStore;)V??
??CheckpointManger?(Segment node store checkpoint management???	?1org/apache/jackrabbit/oak/util/GenericDescriptors?
??
oak.clusterid?0org/apache/jackrabbit/commons/SimpleValueFactory?
??Borg/apache/jackrabbit/oak/plugins/identifier/ClusterRepositoryInfo?
getOrCreateIdC(Lorg/apache/jackrabbit/oak/spi/state/NodeStore;)Ljava/lang/String;??
??createValue%(Ljava/lang/String;)Ljavax/jcr/Value;??
??Z(Ljava/lang/String;Ljavax/jcr/Value;ZZ)Lorg/apache/jackrabbit/oak/util/GenericDescriptors;??
??)org/apache/jackrabbit/oak/api/Descriptors??isShared1(Lorg/apache/jackrabbit/oak/spi/blob/BlobStore;)Z??
%?6org/apache/jackrabbit/oak/plugins/blob/SharedDataStore?java/io/ByteArrayInputStream?([B)V??
??
REPOSITORY]Lorg/apache/jackrabbit/oak/plugins/blob/datastore/SharedDataStoreUtils$SharedStoreRecordType;??	#?
getNameFromId??
#?addMetadataRecord*(Ljava/io/InputStream;Ljava/lang/String;)V????(Could not register a unique repositoryId?*(Ljava/lang/String;Ljava/lang/Throwable;)V??
??getBlobStore0()Lorg/apache/jackrabbit/oak/spi/blob/BlobStore;??
?>org/apache/jackrabbit/oak/spi/blob/GarbageCollectableBlobStore?@org/apache/jackrabbit/oak/plugins/blob/MarkSweepGarbageCollector?Gorg/apache/jackrabbit/oak/plugins/segment/SegmentBlobReferenceRetriever?=(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentTracker;)V??
??java/util/concurrent/TimeUnit?SECONDSLjava/util/concurrent/TimeUnit;??	??toMillis(J)J??
???(Lorg/apache/jackrabbit/oak/plugins/blob/BlobReferenceRetriever;Lorg/apache/jackrabbit/oak/spi/blob/GarbageCollectableBlobStore;Ljava/util/concurrent/Executor;JLjava/lang/String;)V??
??2org/apache/jackrabbit/oak/plugins/blob/BlobGCMBean?-org/apache/jackrabbit/oak/plugins/blob/BlobGC?_(Lorg/apache/jackrabbit/oak/plugins/blob/BlobGarbageCollector;Ljava/util/concurrent/Executor;)V??
??BlobGarbageCollection?*Segment node store blob garbage collection???	?SegmentNodeStore initialized?eLjava/lang/Exception;gc=Lorg/apache/jackrabbit/oak/plugins/blob/BlobGarbageCollector;
propertiesLjava/util/Dictionary<**>;nodeStoreBuilderCLorg/apache/jackrabbit/oak/plugins/segment/SegmentNodeStoreBuilder;
clusterIdDesc3Lorg/apache/jackrabbit/oak/util/GenericDescriptors;repoId
unregister???&org/osgi/framework/ServiceRegistration???
?getBaseDirectoryjava/io/File??
??tarmk?	directory?i
segmentstore#(Ljava/io/File;Ljava/lang/String;)V?
?sun.arch.data.model	32java/lang/System
getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
modegetCacheSizeProperty?
:
java/lang/IntegerparseInt(Ljava/lang/String;)I
getMaxFileSizeProperty256 size:
#CLEANUP_DEFAULT%Y	 &i(Ljava/lang/String;)Lorg/apache/jackrabbit/oak/plugins/segment/compaction/CompactionStrategy$CleanupType;g(
)java/lang/Byte+$(Ljava/lang/String;)Ljava/lang/Byte;g-
,._;
,0mtgt'org/apache/jackrabbit/oak/osgi/OsgiUtil4 lookupConfigurationThenFrameworkS(Lorg/osgi/service/component/ComponentContext;Ljava/lang/String;)Ljava/lang/String;67
58getSegmentStore:()Lorg/apache/jackrabbit/oak/plugins/segment/SegmentStore;addObserverD(Lorg/apache/jackrabbit/oak/spi/commit/Observer;)Ljava/io/Closeable;??
><=
6@observer/Lorg/apache/jackrabbit/oak/spi/commit/Observer;toStringjava/lang/StringBuilderE
F?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;HI
FJ: L-(Ljava/lang/Object;)Ljava/lang/StringBuilder;HN
FOD:
FQ1()Lorg/apache/jackrabbit/oak/spi/state/NodeStore;
access$000(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentNodeStoreService;)Lorg/apache/jackrabbit/oak/plugins/segment/file/FileStore;x0
access$100?(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentNodeStoreService;)Lorg/apache/jackrabbit/oak/plugins/segment/SegmentNodeStore;bindStatisticsProvider7(Lorg/apache/jackrabbit/oak/stats/StatisticsProvider;)VunbindStatisticsProvider
ConstantValueRuntimeInvisibleAnnotationsCodeLocalVariableTableLineNumberTable
StackMapTable
ExceptionsLocalVariableTypeTable
SourceFileInnerClasses!*'(\*+(\-].s/s01(\3].s4s56(\8].9[I:s;s<=(\?].9[I:s@sAB(\D].E[ZFsGsHI(\K]J.L[@M)sNOsN@M)sPOsP@M)sQOsQO[sQsRsST(\V].W[JXsZs[\(\^]._[B`sasbc(\e]._[Bfsgshi(\k].E[Zslsmn(\p].9[I`sqsrs(\u].E[ZFsvswxy\z{(\}].9[Izs~s?(\?].E[Zs?s??(\?].E[ZFs?s??(\?].E[ZFs?s???)(??B??????????B??]??e??e???s???]???????????????????????????\??(\?].W[J?s?s???^I*??**?ʸе?*?׵ٱ_??`t???^O*??????*?߰_??`
*+a@??^?3*+??**??????*???*???*?????*??_3??3??`013 4.628a.b?]?	^F
*+??*??_
??
??`;<	=b?
	^F
*??*?
?_
??
??`@A	B?^?G*?
*YL?*??
*??*??
*??*??*??*?? *?+çM+?,??>AADA_G??`2FHIJLM$O)Q0R7S<UFVa??
D"?]"?^?_*?&?Z*????,??*?/?E?1Y?2L+46?XY	`8Z[
f2\[y??`B???#?/?;?H?T?Z?`?f?y????
-$^?	q*??bL*+*?f?j?l*?????1A?_Y*??N?b:*??p:*???vW*?x??*?Y*?߷{?*?*??N?}*??Y*?߷?????????Y??:???Y??*?߸?????W??
?W?:*?????<*?߸?:*??????Y??????????:??Y????*????ęP??Y??Y*?????*?????*?ٲ? ????:*ڻ?Y*?ٷ??????*???????^_\	?
??D??q??
g?[$M??6;#$?2?????????(c
g??`f
$6?IRaq?!?"?%?(?)?+?,?0?.?/	34D<cEoFa#??>_r?F^?Yb??^??*???*?Ϲ?*??*???*?Թ?*??*?"?*?"??*?"*?X?*?X??*?X*???*????*??*???*???*??*???*???*??*???*????*??*? ?*? ??*? *???*????*??*???*?ٶ?*?ٱ_???`?"JKLNO%P*R1S:T?VFWOXTZ[[d\i^p_y`~b?c?d?f?g?h?j?k?l?n?o?p?r?s?t?va
?i^m*-??L+???Y+?????Y???_??(`y{|a?Fhi^9??Y*???_??`?~:^j*3??L+?+?3
???_??(`???
?a?
F:^a*???L+?+????_??>(`???
?a?
Fpq^2*???_??`?:^d*8??L+?+?8!??_??"(`???
?a?
Fxq^2*?$??_??`?67^b*K??L+??'?+?*?_??
X(`????a?F:;^c*^??L+??+?/?1?_??2(`???
?a?
F>;^d*e??L+?
?+?/?1?_??3(`????a?F??^=	*??+?9?_	??	)(`?:;^/*??_??`?<=^=	*??+?A?_	??	BC`?D:^I?FY?G*?l?KM?K*?߶P?R?_??`?D?S^/*???_??`kTU^/*??_V?`tWX^/*?߰_V?`tYZ^*+?ٱ[Z^*??+?*?ٱd	e*	 !@#%&@]
e
Zss




© 2015 - 2025 Weber Informatics LLC | Privacy Policy