org.apache.activemq.usage.Usage.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
???? 1h 4 ? 4 ?
? ? 4 ? ?
? 4 ? 4 ? ?
? 4 ? ? ? 4 ? 4 ? 4 ? ?
? 4 ? ?
? 4 ? 4 ?
4 ? ? ? ?
? 4 ?
? ?
?
4 ?
4
4 4
???????
4 ? ?
,
4
4
4
4 d
4
?
C!
C"
4#
$%&'
J*+ ?,-./
0123
4
45
46
47 F8
49:
[;
4< 4=
>?@ LOG Lorg/apache/commons/logging/Log;
usageMutex Ljava/lang/Object; percentUsage I parent !Lorg/apache/activemq/usage/Usage; Signature TT; limiter )Lorg/apache/activemq/usage/UsageCapacity; percentUsageMinDelta listeners Ljava/util/List; ;Ljava/util/List; debug Z name Ljava/lang/String; usagePortion F children Ljava/util/List; callbacks &Ljava/util/List; pollingTime started +Ljava/util/concurrent/atomic/AtomicBoolean; executor )Ljava/util/concurrent/ThreadPoolExecutor; 7(Lorg/apache/activemq/usage/Usage;Ljava/lang/String;F)V Code LineNumberTable LocalVariableTable this portion LocalVariableTypeTable &Lorg/apache/activemq/usage/Usage; (TT;Ljava/lang/String;F)V
retrieveUsage ()J waitForSpace ()V
ExceptionsA (J)Z timeout J (JI)Z deadline timeleft
highWaterMark isFull ()Z (I)Z addUsageListener ,(Lorg/apache/activemq/usage/UsageListener;)V listener )Lorg/apache/activemq/usage/UsageListener; removeUsageListener getLimit setLimit (J)V limit
onLimitChange child i$ Ljava/util/Iterator; getUsagePortion ()F setUsagePortion (F)V getPercentUsage ()I getPercentUsageMinDelta setPercentUsageMinDelta (I)V getUsage setPercentUsage oldValue value caclPercentUsage fireEvent (II)V callback Ljava/lang/Runnable; iter listenerNotifier oldPercentUsage newPercentUsage *Ljava/util/Iterator; getName ()Ljava/lang/String; toString start t stop addChild $(Lorg/apache/activemq/usage/Usage;)V (TT;)V removeChild notifyCallbackWhenNotFull (Ljava/lang/Runnable;)Z r
getLimiter +()Lorg/apache/activemq/usage/UsageCapacity;
setLimiter ,(Lorg/apache/activemq/usage/UsageCapacity;)V getPollingTime setPollingTime setName (Ljava/lang/String;)V getParent #()Lorg/apache/activemq/usage/Usage; ()TT; setParent setExecutor ,(Ljava/util/concurrent/ThreadPoolExecutor;)V getExecutor +()Ljava/util/concurrent/ThreadPoolExecutor;
access$000 3(Lorg/apache/activemq/usage/Usage;)Ljava/util/List; x0
access$100 TLjava/lang/Object;Lorg/apache/activemq/Service;
SourceFile
Usage.java y o n o ? ? java/lang/Object c d .org/apache/activemq/usage/DefaultUsageCapacity k l m f )java/util/concurrent/CopyOnWriteArrayList a bBC ? q r u v w o java/util/LinkedList { f )java/util/concurrent/atomic/AtomicBoolean | } g h ? ?D ? ? java/lang/StringBuilder s tEF : ? ? ? ? ? ? ? ? e fGH ?I ? ? ?JKLML "java/lang/IllegalArgumentException 2percentUsageMinDelta must be greater or equal to 0 ? ? ? ? ? ?NOPQ ?RS org/apache/activemq/usage/Usage +percentUsageMinDelta must be greater than 0 ? ? ? ? ? ? : usage change from: ET % of available memory, to: % of available memory qUV ?W ?X ? java/util/ArrayList ?Y java/lang/Runnable ? ?Z[\] ? !org/apache/activemq/usage/Usage$1 InnerClasses ?^ :Not notifying memory usage change to listeners on shutdown_U Usage( ) percentUsage= %, usage=E` limit= percentUsageMinDelta= %ab ? ? ? ? ? ?c ? ? ? !org/apache/activemq/usage/Usage$2 ?d ? ? ~ efg org/apache/activemq/Service java/lang/InterruptedException org/apache/commons/logging/Log isDebugEnabled 'org/apache/activemq/usage/UsageCapacity append -(Ljava/lang/String;)Ljava/lang/StringBuilder; java/lang/System currentTimeMillis wait java/util/List add (Ljava/lang/Object;)Z remove iterator ()Ljava/util/Iterator; java/util/Iterator hasNext next ()Ljava/lang/Object; (I)Ljava/lang/StringBuilder; (Ljava/lang/Object;)V get notifyAll isEmpty (Ljava/util/Collection;)V 'java/util/concurrent/ThreadPoolExecutor execute (Ljava/lang/Runnable;)V clear &(Lorg/apache/activemq/usage/Usage;II)V warn (J)Ljava/lang/StringBuilder;
compareAndSet (ZZ)Z run 8(Lorg/apache/activemq/usage/Usage;Ljava/lang/Runnable;)V %org/apache/commons/logging/LogFactory getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;! 4 ` a b c d e f g h i j k l m f n o i p q r s t u v w o i x y o i z { f | } ~ ( ? ? ? J ?*? *? Y? ? *? Y? ? *? *?
Y? ? *? ?
? *? *?
Y? ? *? Y? ? *d? *? Y? ? *+? *%? +? /*? +? ?%j?? ? Y? +? ? ? ,? ? M*,? ? ? J 7 ) , - . * / 6 1 ; 2 F 3 Q 4 W 5 b 8 g 9 l : p ; ? <