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