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

org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier.class Maven / Gradle / Ivy

????2?
??	??	??	??	??	??
??	??
??
??	??	??
??	??	??	??	??
??
V?
V?
????
???
??
?
??
??
?	??	??	??	??	??	???
'?	??	??	??	??	??	??
??	??
??	??	??	???
5?
??	??	??	??
??	??
???
??
>?
???
??
B?
???	??
?
[?
F?
??
??
[?
??
??
???
S?
?	

[
F
F


F
	
?
?
j
j 
j!
"#
?$?%&'	j(
')*
u?+,
-.
/01
j2
34
35
?67
?89
?:x;
<=x>
?	j@
A
BC
?DE
?F
3GH????????IJ
K?L	?MN
?OP
?QRxSTUTVW?X
FY
/Z
[\]	?^?_
?`
?abc
?d
'efg
?h
ij
iklmSn
?ho
pqrstIndexMappingDataInnerClassesLocalIndexFileDeleteOldDirOnCloseCopyOnWriteDirectoryCopyOnReadDirectoryREMOTE_ONLYLjava/util/Set;	Signature#Ljava/util/Set;MAX_FAILURE_ENTRIESI
ConstantValue'UNIQUE_COUNTER+Ljava/util/concurrent/atomic/AtomicInteger;
WORK_DIR_NAMELjava/lang/String;logLorg/slf4j/Logger;PERF_LOGGER+Lorg/apache/jackrabbit/oak/util/PerfLogger;executorLjava/util/concurrent/Executor;indexRootDirLjava/io/File;indexWorkDirreaderLocalReadCountwriterLocalReadCountreaderRemoteReadCountwriterRemoteReadCountinvalidFileCountdeletedFileCountscheduledForCopyCountcopyInProgressCountmaxCopyInProgressCountmaxScheduledForCopyCountuploadCount
downloadCountcopyInProgressSize(Ljava/util/concurrent/atomic/AtomicLong;downloadSize
uploadSizegarbageCollectedSizeskippedFromUploadSizedownloadTime
uploadTimeindexPathMappingLjava/util/Map;5Ljava/util/Map;sharedWorkingSetMapFLjava/util/Map;>;indexPathVersionMappingfailedToDeleteFiles$Ljava/util/concurrent/ConcurrentMap;?Ljava/util/concurrent/ConcurrentMap;copyInProgressFiles\Ljava/util/Set;prefetchEnabledZclosed0(Ljava/util/concurrent/Executor;Ljava/io/File;)VCodeLineNumberTableLocalVariableTablethis;failedToDeleteN(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier$LocalIndexFile;)VfailedToDeleteFileKLorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier$LocalIndexFile;filesuccessfullyDeletedO(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier$LocalIndexFile;Z)VfileExistedgetSharedWorkingSetQ(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexDefinition;)Ljava/util/Set;defn	sharedSetLocalVariableTypeTable,we(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexDefinition;)Ljava/util/Set;initializerWorkDir(Ljava/io/File;)Ljava/io/File;workDirgetIndexPathForLoggingT(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexDefinition;)Ljava/lang/String;
deleteFile9(Lorg/apache/lucene/store/Directory;Ljava/lang/String;Z)ZeLjava/io/IOException;fileNamecopiedFromRemotesuccessFullyDeleted7	startCopyN(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier$LocalIndexFile;)JdoneCopyO(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier$LocalIndexFile;J)VstartJupdateMaxScheduled(I)VcurrentvalupdateMaxInProgressgetFSDir3(Lorg/apache/lucene/store/Directory;)Ljava/io/File;
getFileLength8(Lorg/apache/lucene/store/Directory;Ljava/lang/String;)JLjava/lang/Exception;HgetIndexPathMapping*()Ljavax/management/openmbean/TabularData;sizeEntryLjava/util/Map$Entry;i$Ljava/util/Iterator;tt(Ljavax/management/openmbean/TabularType;.Ljavax/management/openmbean/OpenDataException;tds/Ljavax/management/openmbean/TabularDataSupport;;Ljava/util/Map$Entry;PIxbisPrefetchEnabled()ZgetReaderLocalReadCount()IgetReaderRemoteReadCountgetWriterLocalReadCountgetWriterRemoteReadCountgetInvalidFileCountgetDownloadSize()Ljava/lang/String;getDownloadTime()JgetDownloadCountgetUploadCount
getUploadSize
getUploadTimegetLocalIndexSizegetGarbageDetails()[Ljava/lang/String;getGarbageSizegarbageSizegetScheduledForCopyCountgetCopyInProgressCountgetCopyInProgressSizegetMaxCopyInProgressCountgetMaxScheduledForCopyCountgetSkippedFromUploadSizegetCopyInProgressDetailsgetDeletedFilesCountgetGarbageCollectedSize
access$000()Ljava/util/Set;
access$100P(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier;)Lorg/slf4j/Logger;x0
access$200i(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier;)Ljava/util/concurrent/atomic/AtomicInteger;
access$400
access$500@(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier;I)Vx1
access$700](Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier;)Ljava/util/concurrent/Executor;
access$800i(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier;)Lorg/apache/jackrabbit/oak/util/PerfLogger;
access$900?(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier;Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier$LocalIndexFile;)Jaccess$1000?(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier;Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier$LocalIndexFile;J)Vx2access$1100access$1600u(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier;Lorg/apache/lucene/store/Directory;Ljava/lang/String;Z)Zx3access$1700access$2700?(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier;)Zaccess$2800f(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier;)Ljava/util/concurrent/atomic/AtomicLong;access$3300access$3400access$3700
SourceFileIndexCopier.javaYZ??????????DE??NOLM????RS??????????yz{|})org/apache/jackrabbit/oak/util/PerfLoggerjava/lang/StringBuilder~w??.perf?w|???)java/util/concurrent/atomic/AtomicInteger????????????&java/util/concurrent/atomic/AtomicLong?????????????????????????&java/util/concurrent/ConcurrentHashMap??????????@??Norg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier$CopyOnReadDirectory67??Oorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier$CopyOnWriteDirectoryBCv?wjava/io/File???q????'(?y??%&?????IndexWriter would use {}??Norg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier$DeleteOldDirOnClose???IndexPath [{}] not configured in index definition {}. Writer would create index files in temporary dir {} which would be deleted upon close. For better performance do configure the 'indexPath' as part of your index definitionjava/lang/Object???????java/lang/String???o?oCannot create directory %s????w?????????????_q?w??Iorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier$LocalIndexFile?YNot able to delete {}. Currently more than {} file with total size {} are pending delete.?w????w????Deleted : {}_Q??java/util/HashSet??
java/util/Set??????UNKNOWN??u??D?34java/io/IOException-.lError occurred while removing deleted file {} from Local {}. Attempt would be made to delete it on next run VS????y???q???q?S'org/apache/lucene/store/FilterDirectory??#org/apache/lucene/store/FSDirectory???java/lang/Exception&javax/management/openmbean/TabularTypeKorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier$IndexMappingData?Lucene Index Stats??jcrPath??-javax/management/openmbean/TabularDataSupport??????x?o??java/util/Map$Entry?????????/javax/management/openmbean/CompositeDataSupport?l??????,javax/management/openmbean/OpenDataExceptionjava/lang/IllegalStateException???y??org/apache/jackrabbit/oak/plugins/index/lucene/IndexDefinitionjava/lang/Throwablejava/util/IteratorgetClass()Ljava/lang/Class;org/slf4j/LoggerFactory	getLogger%(Ljava/lang/Class;)Lorg/slf4j/Logger;org/slf4j/LoggergetNameappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;toString&(Ljava/lang/String;)Lorg/slf4j/Logger;(Lorg/slf4j/Logger;)Vcom/google/common/collect/MapsnewConcurrentMap&()Ljava/util/concurrent/ConcurrentMap;
newHashMap()Ljava/util/HashMap;java/util/Collections
newSetFromMap (Ljava/util/Map;)Ljava/util/Set;?(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier;Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/store/Directory;ZLjava/lang/String;Ljava/util/Set;)VgetIndexPathFromConfigincrementAndGetvalueOf(I)Ljava/lang/String;#(Ljava/io/File;Ljava/lang/String;)VgetReindexCount(J)Ljava/lang/String;%org/apache/lucene/store/NoLockFactorygetNoLockFactory)()Lorg/apache/lucene/store/NoLockFactory;openZ(Ljava/io/File;Lorg/apache/lucene/store/LockFactory;)Lorg/apache/lucene/store/FSDirectory;debug'(Ljava/lang/String;Ljava/lang/Object;)Vp(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier;Lorg/apache/lucene/store/Directory;Ljava/io/File;)V((Ljava/lang/String;[Ljava/lang/Object;)V5(Ljava/io/File;)Lorg/apache/lucene/store/FSDirectory;
java/util/Mapput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;equals(Ljava/lang/Object;)Zexistsmkdirs$com/google/common/base/Preconditions
checkState)(ZLjava/lang/String;[Ljava/lang/Object;)VgetAbsolutePathcom/google/common/hash/Hashingsha256'()Lcom/google/common/hash/HashFunction;com/google/common/base/CharsetsUTF_8Ljava/nio/charset/Charset;#com/google/common/hash/HashFunction
hashStringU(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/HashCode;com/google/common/hash/HashCodeunmodifiableMap (Ljava/util/Map;)Ljava/util/Map;"java/util/concurrent/ConcurrentMapgetKeyputIfAbsentincrementAttemptToDelete	deleteLogjava/lang/Integer(I)Ljava/lang/Integer;warnremove&(Ljava/lang/Object;)Ljava/lang/Object;	addAndGet(J)Jgetcom/google/common/collect/SetsnewConcurrentHashSetorg/apache/commons/io/FileUtilsdeleteDirectory(Ljava/io/File;)V:(Lorg/apache/lucene/store/Directory;Ljava/lang/String;JZ)V
fileExists(Ljava/lang/String;)Z(Ljava/lang/String;)Vaddjava/lang/SystemcurrentTimeMillisdecrementAndGetcopyFromRemotesetgetDelegate%()Lorg/apache/lucene/store/Directory;getDirectory
fileLength(Ljava/lang/String;)Jjava/lang/ClassTYPE*Ljavax/management/openmbean/CompositeType;d(Ljava/lang/String;Ljava/lang/String;Ljavax/management/openmbean/CompositeType;[Ljava/lang/String;)V+(Ljavax/management/openmbean/TabularType;)VentrySetiterator()Ljava/util/Iterator;hasNextnext()Ljava/lang/Object;getValuesizeOfDirectory(Ljava/io/File;)J)org/apache/jackrabbit/oak/commons/IOUtilshumanReadableByteCountFIELD_NAMESS(Ljavax/management/openmbean/CompositeType;[Ljava/lang/String;[Ljava/lang/Object;)V-(Ljavax/management/openmbean/CompositeData;)V(Ljava/lang/Throwable;)Vvalues()Ljava/util/Collection;?(Lorg/apache/jackrabbit/oak/plugins/index/lucene/IndexCopier;)V#com/google/common/collect/Iterables	transformK(Ljava/lang/Iterable;Lcom/google/common/base/Function;)Ljava/lang/Iterable;toArray:(Ljava/lang/Iterable;Ljava/lang/Class;)[Ljava/lang/Object;java/util/Collection&com/google/common/collect/ImmutableSetof<(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;!?V??#?????????????z??????????????????????????????????????????????????????????????????????B??C???J*+,???
?? ???????K*?**???*?Y?Y?*????????*?Y? ?*?Y? ?*?Y? ?*?Y? ?*?Y? ?*?Y? ?!*?Y? ?*?Y? ?"*?Y? ?#*?Y? ?$*?Y? ?%*?Y? ?&*?'Y?(?)*?'Y?(?**?'Y?(?+*?'Y?(?,*?'Y?(?*?'Y?(?-*?'Y?(?.*?/?0*?1?2*?/?3*?/?4*?5Y?6?7?8*+?*,?9*?:*,?;?Y*-*?:+*,???@??
???4?	

?
?s	*+?A:?BY*,+?C*+???D??
???4	
?
??4*???
?????/*?AAFA?*
		
'+/
;I?*KK8F?'$9?:'$9?;??);
?@?b"?FY*z?JL+?{+?^_?VY+S?`+?? ?"??A??
BC?\*?EL+?|?+??!"	#%?8	??DE?-\?jY+,+,??}:66+,?~?6+,?*??6?':*??*???VY,SY+SYS?X?25??6
 "!'#/$2)5%7&='Y*?R5?7"FG\\
\H?\I?K10HJ?#?'2?
#2K#LM?f&**?"?H??*?)+?s?tX*?8+??W????./0"1?&&10NO??m*?8+??W*?"??W*?)+?su?tX+???'*?-?? e?tX*?*+?s?tX*?&?HW?$*?++?s?tX*?.?? e?tX*?%?HW??.567 9':4;@<K>W?d@lC? mm10mPQ?K RS??)*?$YM?*?$??>?*?$??,ç
:,???!!%!?FGHIK(L? 
T?))U???*?#??,ç
:,???!!%!?OPQRT(U? 
T?))U???????`	




© 2015 - 2025 Weber Informatics LLC | Privacy Policy