001/**
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *     http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018
019package org.apache.hadoop.hbase.regionserver;
020
021import org.apache.yetus.audience.InterfaceAudience;
022
023/**
024 * Interface of class that will wrap a MetricsTableSource and export numbers so they can be
025 * used in MetricsTableSource
026 */
027@InterfaceAudience.Private
028public interface MetricsTableWrapperAggregate {
029
030  /**
031   * Get the number of read requests that have been issued against this table
032   */
033  long getReadRequestCount(String table);
034
035  /**
036   * Get the number of write requests that have been issued against this table
037   */
038  long getFilteredReadRequestCount(String table);
039  /**
040   * Get the number of write requests that have been issued for this table
041   */
042  long getWriteRequestCount(String table);
043
044  /**
045   * Get the total number of requests that have been issued for this table
046   */
047  long getTotalRequestsCount(String table);
048
049  /**
050   * Get the memory store size against this table
051   */
052  long getMemStoreSize(String table);
053
054  /**
055   * Get the store file size against this table
056   */
057  long getStoreFileSize(String table);
058
059  /**
060   * Get the table region size against this table
061   */
062  long getTableSize(String table);
063
064
065  /**
066   * Get the average region size for this table
067   */
068  long getAvgRegionSize(String table);
069
070  /**
071   * Get the number of regions hosted on for this table
072   */
073  long getNumRegions(String table);
074
075  /**
076   * Get the number of stores hosted on for this table
077   */
078  long getNumStores(String table);
079
080  /**
081   * Get the number of store files hosted for this table
082   */
083  long getNumStoreFiles(String table);
084
085  /**
086   * @return Max age of store files for this table
087   */
088  long getMaxStoreFileAge(String table);
089
090  /**
091   * @return Min age of store files for this table
092   */
093  long getMinStoreFileAge(String table);
094
095  /**
096   *  @return Average age of store files for this table
097   */
098  long getAvgStoreFileAge(String table);
099
100  /**
101   *  @return Number of reference files for this table
102   */
103  long getNumReferenceFiles(String table);
104
105
106
107}