Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Kill unused classes GaugeExporter, CounterMetricJMXExporter, GaugeMXB…
Browse files Browse the repository at this point in the history
…ean, MutableGauge (#491)
  • Loading branch information
Philip Liew authored and GitHub Enterprise committed Jun 21, 2019
1 parent e1cf4b1 commit f44aefd
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 307 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ public class DefaultMonitorService extends DefaultJPAService implements MonitorS
private final DashboardService _dashboardService;
private final MetricService _metricService;
private final MailService _mailService;
private final GaugeExporter _gaugeExporter;
private final Map<Metric, GaugeMetric> _metrics;
private final Map<Metric, MetricMXBean> _registeredMetrics;
private final PrincipalUser _adminUser;
Expand All @@ -144,7 +143,7 @@ public class DefaultMonitorService extends DefaultJPAService implements MonitorS
@Inject
public DefaultMonitorService(TSDBService tsdbService, UserService userService, AlertService alertService,
ServiceManagementService serviceManagementService, DashboardService dashboardService, MetricService metricService, MailService mailService,
GaugeExporter gaugeExporter, SystemConfiguration sysConfig) {
SystemConfiguration sysConfig) {
super(null, sysConfig);
requireArgument(tsdbService != null, "TSDB service cannot be null.");
requireArgument(userService != null, "User service cannot be null.");
Expand All @@ -160,7 +159,6 @@ public DefaultMonitorService(TSDBService tsdbService, UserService userService, A
_metricService = metricService;
_mailService = mailService;
_adminUser = _userService.findAdminUser();
_gaugeExporter = gaugeExporter;
_mbeanServer = ManagementFactory.getPlatformMBeanServer();
_metrics = new ConcurrentHashMap<>();
_registeredMetrics = new ConcurrentHashMap<>();
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@
import com.salesforce.dva.argus.service.jpa.DefaultServiceManagementService;
import com.salesforce.dva.argus.service.management.DefaultManagementService;
import com.salesforce.dva.argus.service.metric.AsyncMetricService;
import com.salesforce.dva.argus.service.monitor.CounterMetricJMXExporter;
import com.salesforce.dva.argus.service.monitor.DefaultMonitorService;
import com.salesforce.dva.argus.service.monitor.GaugeExporter;
import com.salesforce.dva.argus.service.oauth.DefaultOAuthAuthorizationCodeService;
import com.salesforce.dva.argus.service.schema.DefaultDiscoveryService;
import com.salesforce.dva.argus.service.tsdb.CachedTSDBService;
Expand Down Expand Up @@ -229,7 +227,6 @@ private void configureLogging() {
}

private void configureServices() {
bindConcreteClass(CounterMetricJMXExporter.class, GaugeExporter.class);
bindConcreteClass(Property.CACHE_SERVICE_IMPL_CLASS, CacheService.class);
bindConcreteClass(Property.MQ_SERVICE_IMPL_CLASS, MQService.class);
bindConcreteClass(Property.ALERT_SERVICE_IMPL_CLASS, AlertService.class);
Expand Down

0 comments on commit f44aefd

Please sign in to comment.