protected void submit ( final double value , final boolean isIncrement ) { MetricCollector collector = MetricManager . getCollector ( ) ; if ( collector != null ) { Metric . Builder builder = Metric . newBuilder ( ) ; builder . identity ( identity ) ; builder . value ( value ) ; builder . isIncrement ( isIncrement ) ; Metric metric = builder . build ( ) ; collector . submit ( metric ) ; } }
Submits a metric to the collector