org.apache.activemq.kaha.impl.KahaStore.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of activemq-core Show documentation
Show all versions of activemq-core Show documentation
The ActiveMQ Message Broker and Client implementations
???? 1p_
`a
bc
d
?e
?df
d ?g ?h ?i ?j ?k ?lm ?n ?o ?p ?q
`r ?s ?t
?uvwxyz{z|}
~v?
"~xy?
%~z?? (~ ??
?~
%? (?
?? ??
???y?
2?
2?
??? ??
???
?
%? (?
?
`??? ???
Bd?
B??
B?
B???
??
2?v?
??
??v?
??
??
??
??
"?v?
??
??v?
"
"?
???
\d??
??
??
?
??
??
?
???
g?
g???
g?
g?
g??
o??
qe
q? ??
??
%??
w? (???
?? ??
???
b?? ?
??
??
???
?d
%?
??
%? 3 f
%?
%??
??
??
?? (?? ?? ??
??
?? ??
??
???
??
?b?
?d
??
???
??
??
??
??
??
???
?
??????????
?? (
?
?
?
PROPERTY_PREFIX Ljava/lang/String;
ConstantValue
BROKEN_FILE_LOCK Z DISABLE_LOCKING LOCKSET_MONITOR LOG Lorg/apache/commons/logging/Log; directory Ljava/io/File; mode
mapsContainer 2Lorg/apache/activemq/kaha/impl/IndexRootContainer; listsContainer lists Ljava/util/Map; Signature rLjava/util/Map; maps qLjava/util/Map; dataManagers NLjava/util/Map;
indexManagers ULjava/util/Map; closed initialized logIndexChanges useAsyncDataManager maxDataFileLength J lock Ljava/nio/channels/FileLock; persistentIndex lockFile Ljava/io/RandomAccessFile; storeSize (Ljava/util/concurrent/atomic/AtomicLong; defaultContainerName '(Ljava/lang/String;Ljava/lang/String;)V Code LineNumberTable LocalVariableTable this )Lorg/apache/activemq/kaha/impl/KahaStore; name
Exceptions #(Ljava/io/File;Ljava/lang/String;)V O(Ljava/lang/String;Ljava/lang/String;Ljava/util/concurrent/atomic/AtomicLong;)V K(Ljava/io/File;Ljava/lang/String;Ljava/util/concurrent/atomic/AtomicLong;)V close ()V container ;Lorg/apache/activemq/kaha/impl/container/ListContainerImpl; i$ Ljava/util/Iterator; :Lorg/apache/activemq/kaha/impl/container/MapContainerImpl; im 2Lorg/apache/activemq/kaha/impl/index/IndexManager; iter dm +Lorg/apache/activemq/kaha/impl/DataManager; LocalVariableTypeTable HLjava/util/Iterator; ALjava/util/Iterator; force clear id &Lorg/apache/activemq/kaha/ContainerId; 'Lorg/apache/activemq/kaha/MapContainer; i (Lorg/apache/activemq/kaha/ListContainer; delete ()Z str result
isInitialized doesMapContainerExist (Ljava/lang/Object;)Z Ljava/lang/Object; '(Ljava/lang/Object;Ljava/lang/String;)Z
containerName containerId getMapContainer ;(Ljava/lang/Object;)Lorg/apache/activemq/kaha/MapContainer; M(Ljava/lang/Object;Ljava/lang/String;)Lorg/apache/activemq/kaha/MapContainer; N(Ljava/lang/Object;Ljava/lang/String;Z)Lorg/apache/activemq/kaha/MapContainer; root /Lorg/apache/activemq/kaha/impl/index/IndexItem; deleteMapContainer (Ljava/lang/Object;)V '(Ljava/lang/Object;Ljava/lang/String;)V )(Lorg/apache/activemq/kaha/ContainerId;)V getMapContainerIds ()Ljava/util/Set; set Ljava/util/Set; 7Ljava/util/Set; 9()Ljava/util/Set; doesListContainerExist getListContainer <(Ljava/lang/Object;)Lorg/apache/activemq/kaha/ListContainer; N(Ljava/lang/Object;Ljava/lang/String;)Lorg/apache/activemq/kaha/ListContainer; O(Ljava/lang/Object;Ljava/lang/String;Z)Lorg/apache/activemq/kaha/ListContainer; deleteListContainer getListContainerIds getListsContainer 4()Lorg/apache/activemq/kaha/impl/IndexRootContainer; getMapsContainer getDataManager ?(Ljava/lang/String;)Lorg/apache/activemq/kaha/impl/DataManager; t 6Lorg/apache/activemq/kaha/impl/async/AsyncDataManager; 4Lorg/apache/activemq/kaha/impl/data/DataManagerImpl; getIndexManager q(Lorg/apache/activemq/kaha/impl/DataManager;Ljava/lang/String;)Lorg/apache/activemq/kaha/impl/index/IndexManager; recover .(Lorg/apache/activemq/kaha/impl/DataManager;)V isLogIndexChanges setLogIndexChanges (Z)V getMaxDataFileLength ()J setMaxDataFileLength (J)V getIndexTypeAsString ()Ljava/lang/String; setIndexTypeAsString (Ljava/lang/String;)V type isPersistentIndex setPersistentIndex isUseAsyncDataManager setUseAsyncDataManager useAsyncWriter size getDefaultContainerName setDefaultContainerName
initialize defaultDM rootIndexManager mapRoot listRoot key property unlock getPropertyKey generateInterestInListDataFiles item theRoot nextItem generateInterestInMapDataFiles
SourceFile KahaStore.java java/io/File ?D &java/util/concurrent/atomic/AtomicLong ? ? ? ? &java/util/concurrent/ConcurrentHashMap ? ? ? ? ? ? ? ? ? ? ? ? kaha ? ? ? ? ? ? ? ? ? ? ? ?U ?
9org/apache/activemq/kaha/impl/container/ListContainerImpl ? ? ? 8org/apache/activemq/kaha/impl/container/MapContainerImpl 0org/apache/activemq/kaha/impl/index/IndexManager ? )org/apache/activemq/kaha/impl/DataManager ? ? ?N ? ? ?" $org/apache/activemq/kaha/ContainerId !B" ? ?(*#
$
%& successfully deleted failed to delete ? ? java/lang/StringBuilder Kaha Store '( data directory ')*B+, ?-./012671232 ?456 06789 java/util/HashSet:'(+ ?;,, H
4org/apache/activemq/kaha/impl/async/AsyncDataManager ?<= async-data- ->D?@A ? 5org/apache/activemq/kaha/impl/async/DataManagerFacade ?B 2org/apache/activemq/kaha/impl/data/DataManagerImpl?@ ? ?89 ?C )org/apache/activemq/kaha/impl/KahaStore$1 InnerClasses ?DEF
PERSISTENT VMGHI ? ?/> java/io/IOException Store has been closed. Kaha Store using data directory java/io/RandomAccessFile ? ? rw ? ? -org/apache/activemq/kaha/impl/index/IndexItemJ
K@LMN@OP 0org/apache/activemq/kaha/impl/IndexRootContainer ?Q[ ?W ?R ? +org.apache.activemq.kaha.Store.Lock.Monitor ? ? ? ?VBST ? ?UVWXY 2org/apache/activemq/kaha/impl/StoreLockedExcpetionZB * is already opened by another application java/util/Date[\ ' is already opened by this application.]^_`a
b ?cde .lock.fBg>hij@ki true -org.apache.activemq.kaha.Store.FileLockBroken falseT\l -org.apache.activemq.kaha.Store.DisableLocking 'org/apache/activemq/kaha/impl/KahaStoremno java/lang/Object org/apache/activemq/kaha/Store org.apache.activemq.kaha.Store !org/apache/activemq/util/IOHelper toFileSystemDirectorySafeName &(Ljava/lang/String;)Ljava/lang/String; mkdirs (Ljava/io/File;)V
java/util/Map values ()Ljava/util/Collection; java/util/Collection iterator ()Ljava/util/Iterator; java/util/Iterator hasNext next ()Ljava/lang/Object; remove getKeys
java/util/Set getKey getDataContainerName %org/apache/activemq/kaha/MapContainer &org/apache/activemq/kaha/ListContainer isDirectory deleteChildren (Ljava/io/File;)Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; toString org/apache/commons/logging/Log info containsKey
doesRootExist get &(Ljava/lang/Object;)Ljava/lang/Object; getRoot ?(Lorg/apache/activemq/kaha/impl/index/IndexManager;Lorg/apache/activemq/kaha/ContainerId;)Lorg/apache/activemq/kaha/impl/index/IndexItem; addRoot ?(Ljava/io/File;Lorg/apache/activemq/kaha/ContainerId;Lorg/apache/activemq/kaha/impl/index/IndexItem;Lorg/apache/activemq/kaha/impl/index/IndexManager;Lorg/apache/activemq/kaha/impl/DataManager;Z)V put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 4()Lorg/apache/activemq/kaha/impl/index/IndexManager;
removeRoot [(Lorg/apache/activemq/kaha/impl/index/IndexManager;Lorg/apache/activemq/kaha/ContainerId;)V add ?(Lorg/apache/activemq/kaha/ContainerId;Lorg/apache/activemq/kaha/impl/index/IndexItem;Lorg/apache/activemq/kaha/impl/index/IndexManager;Lorg/apache/activemq/kaha/impl/DataManager;Z)V +(Ljava/util/concurrent/atomic/AtomicLong;)V setDirectory
setFilePrefix setMaxFileLength (I)V start K(Lorg/apache/activemq/kaha/impl/async/AsyncDataManager;Ljava/lang/String;)V ?(Ljava/io/File;Ljava/lang/String;Ljava/lang/String;Lorg/apache/activemq/kaha/impl/DataManager;Ljava/util/concurrent/atomic/AtomicLong;)V W(Lorg/apache/activemq/kaha/impl/KahaStore;Lorg/apache/activemq/kaha/impl/DataManager;)V recoverRedoItems 4(Lorg/apache/activemq/kaha/impl/data/RedoListener;)V java/lang/String equalsIgnoreCase (Ljava/lang/String;)Z isEmpty setOffset
storeIndex 2(Lorg/apache/activemq/kaha/impl/index/IndexItem;)V setLength getIndex 2(J)Lorg/apache/activemq/kaha/impl/index/IndexItem; ?(Lorg/apache/activemq/kaha/impl/index/IndexItem;Lorg/apache/activemq/kaha/impl/index/IndexManager;Lorg/apache/activemq/kaha/impl/DataManager;)V consolidateDataFiles java/lang/System getProperty
getChannel !()Ljava/nio/channels/FileChannel; java/nio/channels/FileChannel tryLock ()Ljava/nio/channels/FileLock; getName setProperty 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
getProperties ()Ljava/util/Properties; java/util/Properties java/nio/channels/FileLock isValid release getClass ()Ljava/lang/Class; java/lang/Class getCanonicalPath getNextItem
getKeyFile ()I addInterestInFile getValueFile equals %org/apache/commons/logging/LogFactory getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; ! ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 4 ? ? ? Z *? Y+? ? ,? Y? ? ? ?
Z [ ? ? ? ? ? ? ? ? ? ? ? P *+,? Y? ? ? ?
^
_ ? ? ? ? ? ? ? ? ? ? ? ^ *? Y+? ? ,-? ? ?
b c ? * ? ? ? ? ? ? ? ? ? ? ? ? ? Y*? *? Y? ?
*? Y? ? *? Y? ? *? Y? ?
* ? *? *? *,? *-? *+? *? ? ? ? 6
e I J K % L 0 Q 7 S <