public MetricRegistration collectResourceMetrics ( final Resource resource , ImmutableManagementResourceRegistration managementResourceRegistration , Function < PathAddress , PathAddress > resourceAddressResolver ) { MetricRegistration registration = new MetricRegistration ( ) ; collectResourceMetrics0 ( resource , managementResourceRegistration , EMPTY_ADDRESS , resourceAddressResolver , registration ) ; return registration ; }
collect metrics from the resources