#### /hazelcast/src/main/java/com/hazelcast/monitor/LocalMapOperationStats.java

Java | 88 lines | 12 code | 11 blank | 65 comment | 0 complexity | 03a613b4954a028fe0223e152d12e954 MD5 | raw file

1/* 2 * Copyright (c) 2008-2013, Hazelcast, Inc. All Rights Reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package com.hazelcast.monitor; 18 19/** 20 * Local Map Operation Statistics returns number of map operations in bounded period. The period 21 * has start and end times. Given the number of operations in that period, one can calculate the number of 22 * operations per second. 23 */ 24public interface LocalMapOperationStats extends LocalInstanceOperationStats { 25 26 /** 27 * Returns the number of put operations 28 * 29 * @return number of put operations 30 */ 31 public long getNumberOfPuts(); 32 33 /** 34 * Returns the number of get operations 35 * 36 * @return number of get operations 37 */ 38 public long getNumberOfGets(); 39 40 /** 41 * Returns the total latency of put operations in this period. To get the average latency, divide to number of puts 42 * 43 * @return 44 */ 45 public long getTotalPutLatency(); 46 47 /** 48 * Returns the total latency of get operations in this period. To get the average latency, divide to number of gets 49 * 50 * @return 51 */ 52 public long getTotalGetLatency(); 53 54 /** 55 * Returns the total latency of remove operations in this period. To get the average latency, divide to number of gets 56 * 57 * @return 58 */ 59 public long getTotalRemoveLatency(); 60 61 /** 62 * Returns the number of Remove operations 63 * 64 * @return number of remove operations 65 */ 66 public long getNumberOfRemoves(); 67 68 /** 69 * Returns the number of Events Received 70 * 71 * @return number of events received 72 */ 73 public long getNumberOfEvents(); 74 75 /** 76 * Returns the total number of Other Operations 77 * 78 * @return number of other operations 79 */ 80 public long getNumberOfOtherOperations(); 81 82 /** 83 * Returns the total number of total operations 84 * 85 * @return number of total operations 86 */ 87 public long total(); 88}