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

com.groupbyinc.flux.common.jboss.netty.handler.traffic.TrafficCounter.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????1.Ecom/groupbyinc/flux/common/jboss/netty/handler/traffic/TrafficCounterjava/lang/ObjectTrafficCounter.java[com/groupbyinc/flux/common/jboss/netty/handler/traffic/TrafficCounter$TrafficMonitoringTaskTrafficMonitoringTasklogger?Lcom/groupbyinc/flux/common/jboss/netty/logging/InternalLogger;currentWrittenBytes(Ljava/util/concurrent/atomic/AtomicLong;currentReadByteswritingTimeJreadingTimecumulativeWrittenBytescumulativeReadByteslastCumulativeTimelastWriteThroughputlastReadThroughputlastTimelastWrittenBytes
lastReadByteslastWritingTimelastReadingTimerealWrittenBytesrealWriteThroughput
checkIntervalnameLjava/lang/String;trafficShapingHandlerVLcom/groupbyinc/flux/common/jboss/netty/handler/traffic/AbstractTrafficShapingHandler;timer3Lcom/groupbyinc/flux/common/jboss/netty/util/Timer;	timerTask7Lcom/groupbyinc/flux/common/jboss/netty/util/TimerTask;timeout5Lcom/groupbyinc/flux/common/jboss/netty/util/Timeout;
monitorActiveZmilliSecondFromNano()Jjava/lang/System,nanoTime.+
-/B@start()V()	5	7*+
9&java/util/concurrent/atomic/AtomicLong;set(J)V=>
<?	AgetC+
<D"#	F !	H?(Lcom/groupbyinc/flux/common/jboss/netty/handler/traffic/AbstractTrafficShapingHandler;Lcom/groupbyinc/flux/common/jboss/netty/handler/traffic/TrafficCounter;)VJK
L$%	Njava/util/concurrent/TimeUnitPMILLISECONDSLjava/util/concurrent/TimeUnit;RS	QT1com/groupbyinc/flux/common/jboss/netty/util/TimerV
newTimeout?(Lcom/groupbyinc/flux/common/jboss/netty/util/TimerTask;JLjava/util/concurrent/TimeUnit;)Lcom/groupbyinc/flux/common/jboss/netty/util/Timeout;XYWZ&'	\thisGLcom/groupbyinc/flux/common/jboss/netty/handler/traffic/TrafficCounter;stopresetAccountinga>
bTcom/groupbyinc/flux/common/jboss/netty/handler/traffic/AbstractTrafficShapingHandlerddoAccountingJ(Lcom/groupbyinc/flux/common/jboss/netty/handler/traffic/TrafficCounter;)Vfg
eh3com/groupbyinc/flux/common/jboss/netty/util/Timeoutjcancell4km	getAndSet(J)Jop
<q
	s	u	w	y?	}		?	?	?	?java/lang/Math?max(JJ)J??
??	?	?newLastTimeinterval?(Lcom/groupbyinc/flux/common/jboss/netty/handler/traffic/AbstractTrafficShapingHandler;Lcom/groupbyinc/flux/common/jboss/netty/util/Timer;Ljava/lang/String;J)VJ4
?
<?	?	?J>
<?"java/lang/IllegalArgumentException?&TrafficShapingHandler must not be null?(Ljava/lang/String;)VJ?
??	?currentTimeMillis?+
-?	?	configure?>
?
`4
?34
?newcheckIntervalnewIntervalbytesRecvFlowControl	addAndGet?p
<?recvbytesWriteFlowControlwritebytesRealWriteFlowControlgetCheckIntervalgetLastReadThroughputgetLastWriteThroughputgetLastReadBytesgetLastWrittenBytesgetCurrentReadBytesgetCurrentWrittenBytesgetLastTimegetCumulativeWrittenBytesgetCumulativeReadBytesgetLastCumulativeTimegetRealWrittenBytes*()Ljava/util/concurrent/atomic/AtomicLong;getRealWriteThroughputresetCumulativeTimereadTimeToWait(JJJ)JLjava/lang/Deprecated;(JJJJ)J??
?sizelimitTrafficmaxTime?>
?	
	?=com/groupbyinc/flux/common/jboss/netty/logging/InternalLogger?isDebugEnabled()Z????java/lang/StringBuilder?
??Time: ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??(J)Ljava/lang/StringBuilder;??
??(C)Ljava/lang/StringBuilder;??
??toString()Ljava/lang/String;??
??debug????timenow
lastTimeChecksumlocalReadingTimelastRB	pastDelaylastsumlastintervalwriteTimeToWait?
?>
lastWBlocalWritingTimegetName(I)VJ	
?
Monitor  Current Speed Read:  KB/s, 
Asked Write: Real Write: Current Read:  KB, Current asked Write: Current real Write:  KBDcom/groupbyinc/flux/common/jboss/netty/logging/InternalLoggerFactory!getInstanceR(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/jboss/netty/logging/InternalLogger;#$
"%CodeLineNumberTableLocalVariableTable
DeprecatedRuntimeVisibleAnnotations
SourceFileInnerClasses!	

BBBB !"#$%@&'@()	*+' ?01m?(+34'?V*?6??*?8?:?@*?B?E	??:*?G?3*?6*?Y*?I*?M?O**?G*?O*?B?E?U?[?]?)V^_("????%?*?:?U?`4'~4*?6??*?6*?:?c*?I?*?I*?i*?]?*?]?n?)4^_(&	???
???#?*?3?a>'?w*?8?reB!	???**?t	?r?v**?x	?r?z**?v{i!m?~**?z{i!m??**??	?r{i!m??**??*??????**??*???????) w^_w?l?(.?????*?8?F?X?g?v?J?'<?*??*?'?3?m?iB*?B!?r!??!	??*??*?8?:?@?*???) 3^_3?
)?(
 !"!$.'2*?>'O*?t??X*????X?)^_?(3	45?>'O*?x??X*????X?)^_?(>	?@?>'B
*????X?)
^_
?(
I	J?+'2*?B?E?)^_(Q?+'/*?~?)^_(X?+'/*???)^_(_?+'/*?v?)^_(f?+'/*?z?)^_(m?+'2*?t?E?)^_(t?+'2*?x?E?)^_({?+'2*?8?E?)^_(??+'2*???E?)^_(??+'2*???E?)^_(??+'/*???)^_(???'/*???)^_(??+'/*???)^_(??4'N*????*??	?@*??	?@?)^_(??????'T	*!?:?ԭ)*^_???(?*+???'??*??	??	!	??	?*?8?E7	*?t?E7*??7
*?v7	e7*??	e	??7????{i!mea?m?i7???s?۹??=?ۻ?Y??????:????:????:??????????a
e??7*
a?????*
????	?a7*?B?Ea7{i!mea?m?i7???s?۹??=?ۻ?Y??????:????:????:??????????a
e??7*
a?????*
????	?)?f???^_??????????	%x?+r?
1l?8e?EX????????(? ?????%?+?1?8?E?N?f?o?z???????????????????? ?+?e?{?????????'T	*!?:??)*^_???(*+??'??*?	??	!	??	?*?8?E7	*?x?E7*?z7
*??7*??	e	??7	e7????{i!mea?m?i7???s?۹??=?ۻ?Y??????:????:????:??????????ae??7*a?????*????	?
a7*?B?Ea7{i!mea?m?i7???s?۹??=?ۻ?Y??????:????:????:??????????ae??7*a?????*????	?)?f???^_??????????	%x?+r
1l>_?EX????????(? !"%#+$1%>&E'N)f*o+z,?.?/?1?2?4?5?8?9?:; <+=e?{@B?C?E?F?'/*???)^_(M??'????Y??
??*??????*?~
{??????*??
{??????*??
{??????*?t?E
{??????*?x?E
{??????*???E
{??????)?^_(U 4'!	?&?۱(%,-





© 2015 - 2025 Weber Informatics LLC | Privacy Policy