PageRenderTime 21ms CodeModel.GetById 15ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/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
17package com.hazelcast.impl.ascii.memcache;
18
19public class Stats {
20    public int waiting_requests;
21    public int threads;
22    public int uptime; //seconds
23    public long get_hits;
24    public long get_misses;
25    public long cmd_get;
26    public long cmd_set;
27    public long cmd_delete;
28    public long bytes;
29    public int curr_connections;
30    public int total_connections;
31
32    public Stats(int uptime, int threads, long get_misses, long get_hits, long cmd_set, long cmd_get, long bytes) {
33        this.uptime = uptime;
34        this.threads = threads;
35        this.get_misses = get_misses;
36        this.get_hits = get_hits;
37        this.cmd_set = cmd_set;
38        this.cmd_get = cmd_get;
39        this.bytes = bytes;
40    }
41
42    public Stats() {
43    }
44}