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 getPriorityQueueLength() {
038    return 104;
039  }
040
041  @Override
042  public int getNumOpenConnections() {
043    return 105;
044  }
045
046  @Override
047  public int getActiveRpcHandlerCount() {
048    return 106;
049  }
050
051  @Override
052  public int getActiveGeneralRpcHandlerCount() {
053    return 201;
054  }
055
056  @Override
057  public int getActivePriorityRpcHandlerCount() {
058    return 202;
059  }
060
061  @Override
062  public int getActiveReplicationRpcHandlerCount() {
063    return 203;
064  }
065
066  @Override
067  public long getNumGeneralCallsDropped() {
068    return 3;
069  }
070
071  @Override
072  public long getNumLifoModeSwitches() {
073    return 5;
074  }
075
076  @Override
077  public int getWriteQueueLength() {
078    return 50;
079  }
080
081  @Override
082  public int getReadQueueLength() {
083    return 50;
084  }
085
086  @Override
087  public int getScanQueueLength() {
088    return 2;
089  }
090
091  @Override
092  public int getActiveWriteRpcHandlerCount() {
093    return 50;
094  }
095
096  @Override
097  public int getActiveReadRpcHandlerCount() {
098    return 50;
099  }
100
101  @Override
102  public int getActiveScanRpcHandlerCount() {
103    return 6;
104  }
105
106  @Override
107  public long getNettyDmUsage() {
108    return 100L;
109  }
110
111  @Override
112  public int getMetaPriorityQueueLength() {
113    return 1;
114  }
115
116  @Override
117  public int getActiveMetaPriorityRpcHandlerCount() {
118    return 1;
119  }
120}