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

https://bitbucket.org/gabral6_gmailcom/hazelcast · Java · 86 lines · 11 code · 10 blank · 65 comment · 0 complexity · 037f7d0000815a69894bb71040aa21ca 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. public interface LocalCountDownLatchOperationStats extends LocalInstanceOperationStats {
  18. /**
  19. * Returns the number of countDown operations in this period.
  20. *
  21. * @return number of acquire operations
  22. */
  23. public long getNumberOfCountDowns();
  24. /**
  25. * Returns the number of await operations in this period.
  26. *
  27. * @return number of await operations
  28. */
  29. public long getNumberOfAwaits();
  30. /**
  31. * Returns the number of operations other than await or countDown
  32. * in this period.
  33. *
  34. * @return number of await operations
  35. */
  36. public long getNumberOfOthers();
  37. /**
  38. * Returns the total latency of await operations in this period.
  39. * <p>To get the average latency, divide by the number of awaits.
  40. * </p>
  41. *
  42. * @return total latency of all await operations
  43. */
  44. public long getTotalAwaitLatency();
  45. /**
  46. * Returns the total latency of countdown operations in this period.
  47. * <p>To get the average latency, divide by the number of countdowns.
  48. * </p>
  49. *
  50. * @return total latency of all countdown operations
  51. */
  52. public long getTotalCountDownLatency();
  53. /**
  54. * Returns the total latency of operations other than await or
  55. * countdown in this period.
  56. * <p>To get the average latency, divide by the number of others.
  57. * </p>
  58. *
  59. * @return total latency of all await operations
  60. */
  61. public long getTotalOtherLatency();
  62. /**
  63. * Returns the number of times the count reached zero from a countdown
  64. * operation in this period.
  65. *
  66. * @return number of attach operations
  67. */
  68. public long getNumberOfGatesOpened();
  69. /**
  70. * Returns the number of awaits released in this period from gate
  71. * openings.
  72. *
  73. * @return number of awaits released
  74. */
  75. public long getNumberOfAwaitsReleased();
  76. }