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.ipc; 020 021public class MetricsHBaseServerWrapperStub implements MetricsHBaseServerWrapper{ 022 @Override 023 public long getTotalQueueSize() { 024 return 101; 025 } 026 027 @Override 028 public int getGeneralQueueLength() { 029 return 102; 030 } 031 032 @Override 033 public int getReplicationQueueLength() { 034 return 103; 035 } 036 037 @Override 038 public int getPriorityQueueLength() { 039 return 104; 040 } 041 042 @Override 043 public int getNumOpenConnections() { 044 return 105; 045 } 046 047 @Override 048 public int getActiveRpcHandlerCount() { 049 return 106; 050 } 051 052 @Override 053 public long getNumGeneralCallsDropped() { 054 return 3; 055 } 056 057 @Override 058 public long getNumLifoModeSwitches() { 059 return 5; 060 } 061 062 @Override 063 public int getWriteQueueLength() { 064 return 50; 065 } 066 067 @Override 068 public int getReadQueueLength() { 069 return 50; 070 } 071 072 @Override 073 public int getScanQueueLength() { 074 return 2; 075 } 076 077 @Override 078 public int getActiveWriteRpcHandlerCount() { 079 return 50; 080 } 081 082 @Override 083 public int getActiveReadRpcHandlerCount() { 084 return 50; 085 } 086 087 @Override 088 public int getActiveScanRpcHandlerCount() { 089 return 6; 090 } 091 092 @Override 093 public int getMetaPriorityQueueLength() { 094 return 1; 095 } 096 097}