/hazelcast/src/main/java/com/hazelcast/impl/ascii/memcache/Stats.java

https://bitbucket.org/gabral6_gmailcom/hazelcast · Java · 44 lines · 25 code · 4 blank · 15 comment · 0 complexity · e752897774bd0e52967a564283e1ef4a 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.impl.ascii.memcache;
  17. public class Stats {
  18. public int waiting_requests;
  19. public int threads;
  20. public int uptime; //seconds
  21. public long get_hits;
  22. public long get_misses;
  23. public long cmd_get;
  24. public long cmd_set;
  25. public long cmd_delete;
  26. public long bytes;
  27. public int curr_connections;
  28. public int total_connections;
  29. public Stats(int uptime, int threads, long get_misses, long get_hits, long cmd_set, long cmd_get, long bytes) {
  30. this.uptime = uptime;
  31. this.threads = threads;
  32. this.get_misses = get_misses;
  33. this.get_hits = get_hits;
  34. this.cmd_set = cmd_set;
  35. this.cmd_get = cmd_get;
  36. this.bytes = bytes;
  37. }
  38. public Stats() {
  39. }
  40. }