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 */
018package org.apache.hadoop.hbase.ipc;
019
020public class MetricsHBaseServerWrapperStub implements MetricsHBaseServerWrapper {
021  @Override
022  public long getTotalQueueSize() {
023    return 101;
024  }
025
026  @Override
027  public int getGeneralQueueLength() {
028    return 102;
029  }
030
031  @Override
032  public int getReplicationQueueLength() {
033    return 103;
034  }
035
036  @Override
037  public int getBulkLoadQueueLength() {
038    return 109;
039  }
040
041  @Override
042  public int getPriorityQueueLength() {
043    return 104;
044  }
045
046  @Override
047  public int getNumOpenConnections() {
048    return 105;
049  }
050
051  @Override
052  public int getActiveRpcHandlerCount() {
053    return 106;
054  }
055
056  @Override
057  public int getActiveGeneralRpcHandlerCount() {
058    return 201;
059  }
060
061  @Override
062  public int getActivePriorityRpcHandlerCount() {
063    return 202;
064  }
065
066  @Override
067  public int getActiveReplicationRpcHandlerCount() {
068    return 203;
069  }
070
071  @Override
072  public int getActiveBulkLoadRpcHandlerCount() {
073    return 204;
074  }
075
076  @Override
077  public long getNumGeneralCallsDropped() {
078    return 3;
079  }
080
081  @Override
082  public long getNumLifoModeSwitches() {
083    return 5;
084  }
085
086  @Override
087  public int getWriteQueueLength() {
088    return 50;
089  }
090
091  @Override
092  public int getReadQueueLength() {
093    return 50;
094  }
095
096  @Override
097  public int getScanQueueLength() {
098    return 2;
099  }
100
101  @Override
102  public int getActiveWriteRpcHandlerCount() {
103    return 50;
104  }
105
106  @Override
107  public int getActiveReadRpcHandlerCount() {
108    return 50;
109  }
110
111  @Override
112  public int getActiveScanRpcHandlerCount() {
113    return 6;
114  }
115
116  @Override
117  public long getNettyDmUsage() {
118    return 100L;
119  }
120
121  @Override
122  public int getMetaPriorityQueueLength() {
123    return 1;
124  }
125
126  @Override
127  public int getActiveMetaPriorityRpcHandlerCount() {
128    return 1;
129  }
130}