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
???? 1t 3 ? 3 ?
? ? 3 ? ?
? 3 ? 3 ? ?
? 3 ? ? ? 3 ? 3 ? 3 ? ?
? 3 ? ?
? 3 ? 3 ?
3 ? ? ? ?
? 3 ?
?
3
3 3
???????
3
? ?
+
3
3
3
3 d
3
?
!"
B#
B$
3%&' ()
I,- ?./01
2345
6
37
38
39 E:
3;<
Z=
3> 3?
@AB CDE
c ?F
e ?
_GH LOG Lorg/apache/commons/logging/Log; executor )Ljava/util/concurrent/ThreadPoolExecutor;
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; 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
ExceptionsI (J)Z deadline J timeleft timeout isFull ()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 getExecutor !()Ljava/util/concurrent/Executor;
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 x y ? ? java/lang/Object m n .org/apache/activemq/usage/DefaultUsageCapacity u v w p )java/util/concurrent/CopyOnWriteArrayList i jJK ? { | ? ? y java/util/LinkedList ? p )java/util/concurrent/atomic/AtomicBoolean ? ? q r ? ?L ? ? java/lang/StringBuilder } ~MN : ? ? ? ? ? ? o pOP ?Q ? ? ?RSTUT "java/lang/IllegalArgumentException 2percentUsageMinDelta must be greater or equal to 0 ? ? ? ? ? ?VWXY ?Z[ org/apache/activemq/usage/Usage +percentUsageMinDelta must be greater than 0 ? ? ? ? ? ? : usage change from: M\ % of available memory, to: % of available memory {]^ ?_ ?` ? java/util/ArrayList ?a java/lang/Runnable ? ?bcde ? !org/apache/activemq/usage/Usage$1 InnerClasses ?f :Not notifying memory usage change to listeners on shutdowng] Usage( ) percentUsage= %, usage=Mh limit= percentUsageMinDelta= %ij ? ? ? ? ? ?k ? ? ? !org/apache/activemq/usage/Usage$2 ?l ? ? k lmno 'java/util/concurrent/ThreadPoolExecutorpqr (java/util/concurrent/LinkedBlockingQueue !org/apache/activemq/usage/Usage$3 ?s 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/Executor 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; java/util/concurrent/TimeUnit SECONDS Ljava/util/concurrent/TimeUnit; m(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V! 3 h i j
k l m n o p q r s t u v w p x y s z { | } ~ ? ? y s ? ? y s ? ? p ? ? % ? ? ? J ?*? *? Y? ? *? Y? ? *? *?
Y? ? *? ?
? *? *?
Y? ? *? Y? ? *d? *? Y? ? *+? *%? +? /*? +? ?%j?? ? Y? +? ? ? ,? ? M*,? ? ? J > / 2 3 4 * 5 6 7 ; 8 F 9 Q : W <