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

https://bitbucket.org/gabral6_gmailcom/hazelcast · 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. package com.hazelcast.monitor;
  17. /**
  18. * Local Map Operation Statistics returns number of map operations in bounded period. The period
  19. * has start and end times. Given the number of operations in that period, one can calculate the number of
  20. * operations per second.
  21. */
  22. public interface LocalMapOperationStats extends LocalInstanceOperationStats {
  23. /**
  24. * Returns the number of put operations
  25. *
  26. * @return number of put operations
  27. */
  28. public long getNumberOfPuts();
  29. /**
  30. * Returns the number of get operations
  31. *
  32. * @return number of get operations
  33. */
  34. public long getNumberOfGets();
  35. /**
  36. * Returns the total latency of put operations in this period. To get the average latency, divide to number of puts
  37. *
  38. * @return
  39. */
  40. public long getTotalPutLatency();
  41. /**
  42. * Returns the total latency of get operations in this period. To get the average latency, divide to number of gets
  43. *
  44. * @return
  45. */
  46. public long getTotalGetLatency();
  47. /**
  48. * Returns the total latency of remove operations in this period. To get the average latency, divide to number of gets
  49. *
  50. * @return
  51. */
  52. public long getTotalRemoveLatency();
  53. /**
  54. * Returns the number of Remove operations
  55. *
  56. * @return number of remove operations
  57. */
  58. public long getNumberOfRemoves();
  59. /**
  60. * Returns the number of Events Received
  61. *
  62. * @return number of events received
  63. */
  64. public long getNumberOfEvents();
  65. /**
  66. * Returns the total number of Other Operations
  67. *
  68. * @return number of other operations
  69. */
  70. public long getNumberOfOtherOperations();
  71. /**
  72. * Returns the total number of total operations
  73. *
  74. * @return number of total operations
  75. */
  76. public long total();
  77. }