public void registerAll ( Metric2Set metrics ) throws IllegalArgumentException { for ( Map . Entry < MetricName , Metric > entry : metrics . getMetrics ( ) . entrySet ( ) ) { register ( entry . getKey ( ) , entry . getValue ( ) ) ; } }
Given a metric set registers them .