2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 package org
.apache
.hadoop
.hbase
.regionserver
;
21 import java
.util
.HashMap
;
24 public class MetricsRegionWrapperStub
implements MetricsRegionWrapper
{
30 public MetricsRegionWrapperStub() {
37 public MetricsRegionWrapperStub(int replicaid
) {
38 this.replicaid
= replicaid
;
42 public String
getTableName() {
43 return "MetricsRegionWrapperStub";
47 public String
getNamespace() {
52 public String
getRegionName() {
57 public long getNumStores() {
62 public long getNumStoreFiles() {
67 public long getStoreRefCount() {
72 public long getMaxCompactedStoreFileRefCount() {
77 public long getMemStoreSize() {
82 public long getStoreFileSize() {
87 public long getReadRequestCount() {
92 public long getFilteredReadRequestCount() {
97 public long getMaxStoreFileAge() {
102 public long getMinStoreFileAge() {
107 public long getAvgStoreFileAge() {
112 public long getNumReferenceFiles() {
117 public long getCpRequestCount() {
122 public long getWriteRequestCount() {
127 public long getNumFilesCompacted() {
132 public long getNumBytesCompacted() {
137 public long getNumCompactionsCompleted() {
142 public long getLastMajorCompactionAge() {
147 public long getNumCompactionsFailed() {
152 public int getRegionHashCode() {
157 * Get the replica id of this region.
160 public int getReplicaId() {
165 public long getNumCompactionsQueued() {
170 public long getNumFlushesQueued() {
175 public long getMaxCompactionQueueSize() {
180 public long getMaxFlushQueueSize() {
185 public long getTotalRequestCount() {
190 public Map
<String
, Long
> getMemstoreOnlyRowReadsCount() {
191 Map
<String
, Long
> map
= new HashMap
<>();
197 public Map
<String
, Long
> getMixedRowReadsCount() {
198 Map
<String
, Long
> map
= new HashMap
<>();