org.apache.activemq.store.kahadb.TempMessageDatabase.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
???? 1f
?Y
?Z
?[
?\
] ?^ ?_ ?`a
] ?b ?cd ?ef
] ?gh
] ?ij
] ?k ?l
m
?n
?o
?p
?n
?qr
t
uv
?w
x
?y
?z ?{
?o
?|
?}
?~
??
,?
:??
/??
1??
3??
5??
7?
???
;?
?
??
?? d? d?
x? d? d?
??
H?
k?? d??
J?
??
??
??
k?
k?
?? d?
??
??
??
k?
k?
k?
u?
??
? ??
??
??
??????????
??
??
?? ?? ??
??
?
d]?
u?
k? ??
k? ??
k?
k?
k? ~?
H? ?? ???
x] d?
k?????? ~??
x?
x?
?
?
?
x???
x?
:]
H?
:? J??
?]
??
???
??
??
??
?? ???
??
??
??
??
??
??
??
???
?? ?? RemoveOpperation InnerClasses
AddOpperation? Operation? !KahaSubscriptionCommandMarshaller? ByteSequenceMarshaller? StoredDestinationMarshaller StoredDestination? MessageKeysMarshaller
MessageRecord? StoredSubscription LOG Lorg/apache/commons/logging/Log; CLOSED_STATE I
ConstantValue
OPEN_STATE destinations $Lorg/apache/kahadb/index/BTreeIndex; Signature ?Lorg/apache/kahadb/index/BTreeIndex; pageFile !Lorg/apache/kahadb/page/PageFile; directory Ljava/io/File; enableIndexWriteAsync Z setIndexWriteBatchSize started +Ljava/util/concurrent/atomic/AtomicBoolean; opened
indexMutex Ljava/lang/Object; journalFilesBeingReplicated Ljava/util/HashSet; (Ljava/util/HashSet; storedDestinations Ljava/util/HashMap; oLjava/util/HashMap; inflightTransactions Ljava/util/LinkedHashMap; ?Ljava/util/LinkedHashMap;>; preparedTransactions ()V Code LineNumberTable LocalVariableTable this 6Lorg/apache/activemq/store/kahadb/TempMessageDatabase; start
Exceptions? stop loadPageFile? open load close? unload
processAdd ?(Lorg/apache/activemq/store/kahadb/data/KahaAddMessageCommand;Lorg/apache/activemq/command/TransactionId;Lorg/apache/activemq/util/ByteSequence;)V
inflightTx Ljava/util/ArrayList; command =Lorg/apache/activemq/store/kahadb/data/KahaAddMessageCommand; txid +Lorg/apache/activemq/command/TransactionId; data 'Lorg/apache/activemq/util/ByteSequence; LocalVariableTypeTable WLjava/util/ArrayList;
processRemove n(Lorg/apache/activemq/store/kahadb/data/KahaRemoveMessageCommand;Lorg/apache/activemq/command/TransactionId;)V @Lorg/apache/activemq/store/kahadb/data/KahaRemoveMessageCommand; process G(Lorg/apache/activemq/store/kahadb/data/KahaRemoveDestinationCommand;)V DLorg/apache/activemq/store/kahadb/data/KahaRemoveDestinationCommand; B(Lorg/apache/activemq/store/kahadb/data/KahaSubscriptionCommand;)V ?Lorg/apache/activemq/store/kahadb/data/KahaSubscriptionCommand;
processCommit .(Lorg/apache/activemq/command/TransactionId;)V messagingTx key processPrepare tx processRollback upadateIndex ?(Lorg/apache/kahadb/page/Transaction;Lorg/apache/activemq/store/kahadb/data/KahaAddMessageCommand;Lorg/apache/activemq/util/ByteSequence;)V $Lorg/apache/kahadb/page/Transaction; sd HLorg/apache/activemq/store/kahadb/TempMessageDatabase$StoredDestination; id J previous Ljava/lang/Long; updateIndex g(Lorg/apache/kahadb/page/Transaction;Lorg/apache/activemq/store/kahadb/data/KahaRemoveMessageCommand;)V
sequenceId subscriptionKey Ljava/lang/String; prev sequence k(Lorg/apache/kahadb/page/Transaction;Lorg/apache/activemq/store/kahadb/data/KahaRemoveDestinationCommand;)V f(Lorg/apache/kahadb/page/Transaction;Lorg/apache/activemq/store/kahadb/data/KahaSubscriptionCommand;)V ackByteSequence getJournalFilesBeingReplicated ()Ljava/util/HashSet; *()Ljava/util/HashSet; getStoredDestination ?(Lorg/apache/activemq/store/kahadb/data/KahaDestination;Lorg/apache/kahadb/page/Transaction;)Lorg/apache/activemq/store/kahadb/TempMessageDatabase$StoredDestination; topic destination 7Lorg/apache/activemq/store/kahadb/data/KahaDestination; rc loadStoredDestination ?(Lorg/apache/kahadb/page/Transaction;Ljava/lang/String;Z)Lorg/apache/activemq/store/kahadb/TempMessageDatabase$StoredDestination; entry Entry Ljava/util/Map$Entry; iterator Ljava/util/Iterator; lastEntry 9Ljava/util/Map$Entry; OLjava/util/Iterator;>; kLjava/util/Map$Entry; addAckByteSequence m(Lorg/apache/activemq/store/kahadb/TempMessageDatabase$StoredDestination;Ljava/lang/Long;Ljava/lang/String;)V messageSequence hs 'Ljava/util/HashSet; removeAckByteSequence ?(Lorg/apache/kahadb/page/Transaction;Lorg/apache/activemq/store/kahadb/TempMessageDatabase$StoredDestination;Ljava/lang/String;Ljava/lang/Long;)V i$ deletes firstSet ?Ljava/util/Iterator;>; ?Ljava/util/ArrayList;>; K(Lorg/apache/activemq/store/kahadb/data/KahaDestination;)Ljava/lang/String;
getInflightTx B(Lorg/apache/activemq/command/TransactionId;)Ljava/util/ArrayList; ?(Lorg/apache/activemq/command/TransactionId;)Ljava/util/ArrayList; createPageFile #()Lorg/apache/kahadb/page/PageFile; index getDirectory ()Ljava/io/File; setDirectory (Ljava/io/File;)V (I)V getIndexWriteBatchSize ()I setEnableIndexWriteAsync (Z)V isEnableIndexWriteAsync ()Z getPageFile
access$000 ?(Lorg/apache/activemq/store/kahadb/TempMessageDatabase;Lorg/apache/kahadb/page/Transaction;Lorg/apache/activemq/store/kahadb/data/KahaAddMessageCommand;Lorg/apache/activemq/util/ByteSequence;)V x0 x1 x2 x3
access$100 ?(Lorg/apache/activemq/store/kahadb/TempMessageDatabase;Lorg/apache/kahadb/page/Transaction;Lorg/apache/activemq/store/kahadb/data/KahaRemoveMessageCommand;)V
access$200 ?(Lorg/apache/activemq/store/kahadb/TempMessageDatabase;Lorg/apache/kahadb/page/Transaction;Lorg/apache/activemq/store/kahadb/data/KahaRemoveDestinationCommand;)V
access$300 ?(Lorg/apache/activemq/store/kahadb/TempMessageDatabase;Lorg/apache/kahadb/page/Transaction;Lorg/apache/activemq/store/kahadb/data/KahaSubscriptionCommand;)V
SourceFile TempMessageDatabase.java
? ? ? ?? ? ? ? )java/util/concurrent/atomic/AtomicBoolean ? ? ? ? java/lang/Object ? ? java/util/HashSet ? ? java/util/HashMap ? ? java/util/LinkedHashMap ? ? ? ??? ? ? ? ?I<? 6org/apache/activemq/store/kahadb/TempMessageDatabase$1 ???? ? ? ? ? ? ? ? ? ?H ? ?89 Borg/apache/activemq/store/kahadb/TempMessageDatabase$AddOpperation ? 6org/apache/activemq/store/kahadb/TempMessageDatabase$2 Eorg/apache/activemq/store/kahadb/TempMessageDatabase$RemoveOpperation ? 6org/apache/activemq/store/kahadb/TempMessageDatabase$3 6org/apache/activemq/store/kahadb/TempMessageDatabase$4 ? 6org/apache/activemq/store/kahadb/TempMessageDatabase$5 ?
java/util/ArrayList 6org/apache/activemq/store/kahadb/TempMessageDatabase$6 ?
?H
? java/lang/Long ? Borg/apache/activemq/store/kahadb/TempMessageDatabase$MessageRecord ? !H"#"$% ?01+,&' ?'()*+ 7 ? ?,-H.H# Forg/apache/activemq/store/kahadb/TempMessageDatabase$StoredDestination/0234565 ! "org/apache/kahadb/index/BTreeIndex78 ?9:;<=>;?@> ?'ABCDE)F;G;H java/util/TreeMapI ?%JKLHMDN java/util/Map$EntryOD java/lang/StringPQR%STUV java/lang/StringBuilderWDXY :XZ[\ org/apache/kahadb/page/PageFile ? ? temp-db ?]GH^FCD_B`FaF;< 4org/apache/activemq/store/kahadb/TempMessageDatabasebcd ? ? >org/apache/activemq/store/kahadb/TempMessageDatabase$Operation Vorg/apache/activemq/store/kahadb/TempMessageDatabase$KahaSubscriptionCommandMarshaller Korg/apache/activemq/store/kahadb/TempMessageDatabase$ByteSequenceMarshaller Porg/apache/activemq/store/kahadb/TempMessageDatabase$StoredDestinationMarshaller Jorg/apache/activemq/store/kahadb/TempMessageDatabase$MessageKeysMarshaller Gorg/apache/activemq/store/kahadb/TempMessageDatabase$StoredSubscription java/lang/Exception java/io/IOException java/lang/InterruptedException DEFAULT_WRITE_BATCH_SIZE
compareAndSet (ZZ)Z &()Lorg/apache/kahadb/page/Transaction; Z(Lorg/apache/activemq/store/kahadb/TempMessageDatabase;Lorg/apache/kahadb/page/PageFile;)V "org/apache/kahadb/page/Transaction executee Closure /(Lorg/apache/kahadb/page/Transaction$Closure;)V flush clear delete isLoaded ?(Lorg/apache/activemq/store/kahadb/TempMessageDatabase;Lorg/apache/activemq/store/kahadb/data/KahaAddMessageCommand;Lorg/apache/activemq/util/ByteSequence;)V add (Ljava/lang/Object;)Z y(Lorg/apache/activemq/store/kahadb/TempMessageDatabase;Lorg/apache/activemq/store/kahadb/data/KahaRemoveMessageCommand;)V }(Lorg/apache/activemq/store/kahadb/TempMessageDatabase;Lorg/apache/activemq/store/kahadb/data/KahaRemoveDestinationCommand;)V x(Lorg/apache/activemq/store/kahadb/TempMessageDatabase;Lorg/apache/activemq/store/kahadb/data/KahaSubscriptionCommand;)V remove &(Ljava/lang/Object;)Ljava/lang/Object; N(Lorg/apache/activemq/store/kahadb/TempMessageDatabase;Ljava/util/ArrayList;)V put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ;org/apache/activemq/store/kahadb/data/KahaAddMessageCommand getDestination 9()Lorg/apache/activemq/store/kahadb/data/KahaDestination;
subscriptions ackPositions Ljava/util/TreeMap; isEmpty
nextMessageId messageIdIndex getMessageId ()Ljava/lang/String; valueOf (J)Ljava/lang/Long; \(Lorg/apache/kahadb/page/Transaction;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
orderIndex <(Ljava/lang/String;Lorg/apache/activemq/util/ByteSequence;)V >org/apache/activemq/store/kahadb/data/KahaRemoveMessageCommand hasSubscriptionKey J(Lorg/apache/kahadb/page/Transaction;Ljava/lang/Object;)Ljava/lang/Object; get getSubscriptionKey subscriptionAcks Borg/apache/activemq/store/kahadb/data/KahaRemoveDestinationCommand '(Lorg/apache/kahadb/page/Transaction;)V getPageId ()J free (J)V =org/apache/activemq/store/kahadb/data/KahaSubscriptionCommand hasSubscriptionInfo getRetroactive 5org/apache/activemq/store/kahadb/data/KahaDestination getType DestinationType I()Lorg/apache/activemq/store/kahadb/data/KahaDestination$DestinationType; Eorg/apache/activemq/store/kahadb/data/KahaDestination$DestinationType TOPIC GLorg/apache/activemq/store/kahadb/data/KahaDestination$DestinationType;
TEMP_TOPIC allocate ()Lorg/apache/kahadb/page/Page; A(Lorg/apache/kahadb/page/PageFile;Lorg/apache/kahadb/page/Page;)V %org/apache/kahadb/util/LongMarshaller INSTANCE 'Lorg/apache/kahadb/util/LongMarshaller; setKeyMarshaller &(Lorg/apache/kahadb/util/Marshaller;)V LLorg/apache/activemq/store/kahadb/TempMessageDatabase$MessageKeysMarshaller; setValueMarshaller getLast ;(Lorg/apache/kahadb/page/Transaction;)Ljava/util/Map$Entry; getKey ()Ljava/lang/Object; longValue 'org/apache/kahadb/util/StringMarshaller )Lorg/apache/kahadb/util/StringMarshaller; XLorg/apache/activemq/store/kahadb/TempMessageDatabase$KahaSubscriptionCommandMarshaller; subscriptionCursors :(Lorg/apache/kahadb/page/Transaction;)Ljava/util/Iterator; java/util/Iterator hasNext next
java/util/Map getValue values ()Ljava/util/Collection; java/util/Collection ()Ljava/util/Iterator; compareTo (Ljava/lang/Long;)I messageId getNumber append (I)Ljava/lang/StringBuilder; -(Ljava/lang/String;)Ljava/lang/StringBuilder; getName toString #(Ljava/io/File;Ljava/lang/String;)V setEnableWriteThread setWriteBatchSize setEnableDiskSyncs setEnableRecoveryFile %org/apache/commons/logging/LogFactory getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; *org/apache/kahadb/page/Transaction$Closure ! ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ' ? ? ? ? ^*? *? *? ? *? Y?
? *? Y?
? *?
Y? ? *? Y? ? *? Y? ? *? Y? ? *? Y? ? ? ? . F @ A C D &