001/**
002 * Copyright The Apache Software Foundation
003 *
004 * Licensed to the Apache Software Foundation (ASF) under one or more
005 * contributor license agreements. See the NOTICE file distributed with this
006 * work for additional information regarding copyright ownership. The ASF
007 * licenses this file to you under the Apache License, Version 2.0 (the
008 * "License"); you may not use this file except in compliance with the License.
009 * You may obtain a copy of the License at
010 *
011 * http://www.apache.org/licenses/LICENSE-2.0
012 *
013 * Unless required by applicable law or agreed to in writing, software
014 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
015 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
016 * License for the specific language governing permissions and limitations
017 * under the License.
018 */
019package org.apache.hadoop.hbase.regionserver;
020
021import org.apache.hadoop.hbase.CompatibilitySingletonFactory;
022import org.apache.yetus.audience.InterfaceAudience;
023
024@InterfaceAudience.Private
025public class MetricsTable {
026  private final MetricsTableAggregateSource tableSourceAgg;
027  private MetricsTableWrapperAggregate tableWrapperAgg;
028
029  public MetricsTable(final MetricsTableWrapperAggregate wrapper) {
030    tableSourceAgg = CompatibilitySingletonFactory.getInstance(MetricsRegionServerSourceFactory.class)
031                                             .getTableAggregate();
032    this.tableWrapperAgg = wrapper;
033  }
034
035  public MetricsTableWrapperAggregate getTableWrapperAgg() {
036    return tableWrapperAgg;
037  }
038
039  public MetricsTableAggregateSource getTableSourceAgg() {
040    return tableSourceAgg;
041  }
042}