/** * @param inc How much to add to requests. */ public void incrementRequests(final long inc) { masterSource.incRequests(inc); }
public MetricsMaster(MetricsMasterWrapper masterWrapper) { masterSource = CompatibilitySingletonFactory.getInstance(MetricsMasterSourceFactory.class).create(masterWrapper); masterProcSource = CompatibilitySingletonFactory.getInstance(MetricsMasterProcSourceFactory.class).create(masterWrapper); masterQuotaSource = CompatibilitySingletonFactory.getInstance(MetricsMasterQuotaSourceFactory.class).create(masterWrapper); serverCrashProcMetrics = convertToProcedureMetrics(masterSource.getServerCrashMetrics()); }
/** * @param inc How much to add to requests. */ public void incrementRequests(final long inc) { masterSource.incRequests(inc); } }