JavaNCSS Metric Results

[ package ] [ object ] [ method ] [ explanation ]

The following document contains the results of a JavaNCSS metric analysis, using JavaNCSS version 32.53.
JavaNCSS web site.

Packages

[ package ] [ object ] [ method ] [ explanation ]

Packages sorted by NCSS.

PackageClassesMethodsNCSSJavadocsJavadoc linesSingle lines commentMulti lines comment
brooklyn.policy.loadbalancing18129931189716910
brooklyn.policy.followthesun14105690429447
brooklyn.policy.autoscaling2210164712816827
brooklyn.policy.ha1545381430225
brooklyn.enricher10473261976133
brooklyn.entity.brooklyn35531410
Classes totalMethods totalNCSS totalJavadocsJavadoc linesSingle lines commentMulti lines comment
8243230285831731752

Objects

[ package ] [ object ] [ method ] [ explanation ]

TOP 30 classes containing the most NCSS.

ObjectNCSSMethodsClassesJavadocs
brooklyn.policy.autoscaling.AutoScalerPolicy48646156
brooklyn.policy.loadbalancing.BalancingStrategy2391102
brooklyn.policy.loadbalancing.LoadBalancingPolicy1691521
brooklyn.policy.followthesun.DefaultFollowTheSunModel1603411
brooklyn.policy.followthesun.FollowTheSunPolicy1571530
brooklyn.policy.loadbalancing.DefaultBalanceablePoolModel1433402
brooklyn.enricher.HttpLatencyDetector1009311
brooklyn.policy.loadbalancing.BalanceableWorkerPoolImpl911411
brooklyn.policy.ha.MemberFailureDetectionPolicy90941
brooklyn.policy.followthesun.FollowTheSunPoolImpl861310
brooklyn.policy.followthesun.FollowTheSunStrategy86300
brooklyn.policy.autoscaling.AutoScalerPolicy.Builder852200
brooklyn.policy.ha.ServiceFailureDetector79821
brooklyn.policy.loadbalancing.ItemsInContainersGroupImpl701121
brooklyn.policy.autoscaling.SizeHistory63715
brooklyn.policy.ha.ServiceReplacer61921
brooklyn.enricher.RollingTimeWindowMeanEnricher51713
brooklyn.policy.autoscaling.MaxPoolSizeReachedEvent50810
brooklyn.policy.ha.ServiceRestarter41711
brooklyn.enricher.TimeWeightedDeltaEnricher39601
brooklyn.policy.loadbalancing.PolicyUtilForPool38403
brooklyn.policy.followthesun.FollowTheSunParameters37600
brooklyn.enricher.HttpLatencyDetector.Builder351009
brooklyn.enricher.TimeFractionDeltaEnricher35501
brooklyn.policy.followthesun.FollowTheSunPoolImpl.SensorEventListener34100
brooklyn.policy.loadbalancing.BalanceableWorkerPoolImpl.SensorEventListener34100
brooklyn.policy.followthesun.WeightedObject30701
brooklyn.policy.loadbalancing.LoadBalancingPolicy.Runnable30100
brooklyn.policy.followthesun.FollowTheSunPolicy.SensorEventListener27100
brooklyn.entity.brooklyn.BrooklynMetricsImpl26411

TOP 30 classes containing the most methods.

ObjectNCSSMethodsClassesJavadocs
brooklyn.policy.autoscaling.AutoScalerPolicy48646156
brooklyn.policy.followthesun.DefaultFollowTheSunModel1603411
brooklyn.policy.loadbalancing.DefaultBalanceablePoolModel1433402
brooklyn.policy.loadbalancing.BalanceablePoolModel252402
brooklyn.policy.autoscaling.AutoScalerPolicy.Builder852200
brooklyn.policy.followthesun.FollowTheSunModel191801
brooklyn.policy.followthesun.FollowTheSunPolicy1571530
brooklyn.policy.loadbalancing.LoadBalancingPolicy1691521
brooklyn.policy.loadbalancing.BalanceableWorkerPoolImpl911411
brooklyn.policy.followthesun.FollowTheSunPoolImpl861310
brooklyn.policy.loadbalancing.BalancingStrategy2391102
brooklyn.policy.loadbalancing.ItemsInContainersGroupImpl701121
brooklyn.enricher.HttpLatencyDetector.Builder351009
brooklyn.enricher.HttpLatencyDetector1009311
brooklyn.policy.ha.MemberFailureDetectionPolicy90941
brooklyn.policy.ha.ServiceReplacer61921
brooklyn.policy.autoscaling.MaxPoolSizeReachedEvent50810
brooklyn.policy.ha.ServiceFailureDetector79821
brooklyn.enricher.RollingTimeWindowMeanEnricher51713
brooklyn.policy.autoscaling.SizeHistory63715
brooklyn.policy.followthesun.WeightedObject30701
brooklyn.policy.ha.ServiceRestarter41711
brooklyn.enricher.TimeWeightedDeltaEnricher39601
brooklyn.policy.autoscaling.MaxPoolSizeReachedEvent.Builder23600
brooklyn.policy.followthesun.FollowTheSunParameters37600
brooklyn.enricher.RollingMeanEnricher21502
brooklyn.enricher.TimeFractionDeltaEnricher35501
brooklyn.entity.brooklyn.BrooklynMetricsImpl26411
brooklyn.policy.loadbalancing.BalanceableWorkerPool19412
brooklyn.policy.loadbalancing.PolicyUtilForPool38403

Averages.

NCSS averageProgram NCSSClasses averageMethods averageJavadocs average
37.283,028.000.555.270.82

Methods

[ package ] [ object ] [ method ] [ explanation ]

TOP 30 Methods containing the most NCSS.

MethodsNCSSCCNJavadocs
brooklyn.policy.loadbalancing.BalancingStrategy.balanceItemsOnColdNode(NodeType,double,boolean)81340
brooklyn.policy.followthesun.FollowTheSunStrategy.rebalance()75250
brooklyn.policy.loadbalancing.BalancingStrategy.balanceItemsOnHotNode(NodeType,double,boolean)67260
brooklyn.policy.loadbalancing.BalancingStrategy.findBestItemToMove(Double,double,double,double,ItemType,Location)49271
brooklyn.policy.autoscaling.AutoScalerPolicy.onMetricChanged(Number)47160
brooklyn.policy.loadbalancing.LoadBalancingPolicy.scheduleRebalance()3530
brooklyn.policy.followthesun.FollowTheSunPoolImpl.SensorEventListener.onEvent(Object)34140
brooklyn.policy.ha.ServiceFailureDetector.checkHealth()34270
brooklyn.policy.loadbalancing.BalanceableWorkerPoolImpl.SensorEventListener.onEvent(Object)34140
brooklyn.policy.loadbalancing.LoadBalancingPolicy.Runnable.run()30120
brooklyn.policy.followthesun.FollowTheSunPolicy.SensorEventListener.onEvent(Object)2790
brooklyn.policy.ha.MemberFailureDetectionPolicy.checkMemberHealth(Entity)27190
brooklyn.policy.autoscaling.AutoScalerPolicy.doReconfigureConfig(T,T)26120
brooklyn.policy.loadbalancing.LoadBalancingPolicy.SensorEventListener.onEvent(Object)2680
brooklyn.policy.ha.MemberFailureDetectionPolicy.setEntity(EntityLocal)2540
brooklyn.policy.autoscaling.AutoScalerPolicy.notifyMaxReachedIfRequiredNow()2481
brooklyn.policy.autoscaling.AutoScalerPolicy.calculateDesiredPoolSize(long)2351
brooklyn.enricher.RollingTimeWindowMeanEnricher.getAverage(long)2280
brooklyn.enricher.TimeFractionDeltaEnricher.onEvent(T,long)2190
brooklyn.enricher.TimeWeightedDeltaEnricher.onEvent(T,long)2190
brooklyn.policy.autoscaling.AutoScalerPolicy.onPoolSizeLimitsChanged(int,int)2141
brooklyn.policy.autoscaling.AutoScalerPolicy.scheduleResize()2150
brooklyn.policy.followthesun.DefaultFollowTheSunModel.getDirectSendsToItemByLocation()2180
brooklyn.policy.autoscaling.AutoScalerPolicy.onPoolCold(String)1750
brooklyn.policy.autoscaling.AutoScalerPolicy.onPoolHot(String)1750
brooklyn.policy.ha.ServiceReplacer.onDetectedFailure(Object)1750
brooklyn.policy.loadbalancing.PolicyUtilForPool.findColdestContainer(ContainerType,LocationConstraint)1781
brooklyn.policy.autoscaling.AutoScalerPolicy.Runnable.run()1680
brooklyn.policy.autoscaling.AutoScalerPolicy.resizeNow()1670
brooklyn.policy.followthesun.DefaultFollowTheSunModel.dumpItemDistribution(PrintStream)1660

Averages.

Program NCSSNCSS averageCCN averageJavadocs average
3,028.005.512.430.07

Explanations

[ package ] [ object ] [ method ] [ explanation ]

Non Commenting Source Statements (NCSS)

Statements for JavaNCSS are not statements as specified in the Java Language Specification but include all kinds of declarations too. Roughly spoken, NCSS is approximately equivalent to counting ';' and '{' characters in Java source files.

Not counted are empty statements, empty blocks or semicolons after closing brackets. Of course, comments don't get counted too. Closing brackets also never get counted, the same applies to blocks in general.