Class: MemcacheStat
- Inherits:
-
Object
- Object
- MemcacheStat
- Defined in:
- lib/memcache_stat.rb
Instance Attribute Summary collapse
-
#bytes ⇒ Object
Hostname to connect with.
-
#bytes_read ⇒ Object
Hostname to connect with.
-
#bytes_written ⇒ Object
Hostname to connect with.
-
#cmd_get ⇒ Object
Hostname to connect with.
-
#cmd_set ⇒ Object
Hostname to connect with.
-
#connection_structures ⇒ Object
Hostname to connect with.
-
#curr_connections ⇒ Object
Hostname to connect with.
-
#curr_items ⇒ Object
Hostname to connect with.
-
#evictions ⇒ Object
Hostname to connect with.
-
#get_hits ⇒ Object
Hostname to connect with.
-
#get_misses ⇒ Object
Hostname to connect with.
-
#hostname ⇒ Object
Hostname to connect with.
-
#limit_maxbytes ⇒ Object
Hostname to connect with.
-
#pid ⇒ Object
Hostname to connect with.
-
#pointer_size ⇒ Object
Hostname to connect with.
-
#port ⇒ Object
Hostname to connect with.
-
#raw ⇒ Object
Hostname to connect with.
-
#rusage_system ⇒ Object
Hostname to connect with.
-
#rusage_user ⇒ Object
Hostname to connect with.
-
#threads ⇒ Object
Hostname to connect with.
-
#time ⇒ Object
Hostname to connect with.
-
#total_connections ⇒ Object
Hostname to connect with.
-
#total_items ⇒ Object
Hostname to connect with.
-
#uptime ⇒ Object
Hostname to connect with.
-
#version ⇒ Object
Hostname to connect with.
Instance Method Summary collapse
-
#initialize(hostname = "localhost", port = "11211") ⇒ MemcacheStat
constructor
A new instance of MemcacheStat.
- #refresh! ⇒ Object
Constructor Details
#initialize(hostname = "localhost", port = "11211") ⇒ MemcacheStat
Returns a new instance of MemcacheStat.
31 32 33 34 35 |
# File 'lib/memcache_stat.rb', line 31 def initialize(hostname="localhost", port="11211") @hostname, @port = hostname, port refresh_raw_stats! parse_stats(@raw) end |
Instance Attribute Details
#bytes ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def bytes @bytes end |
#bytes_read ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def bytes_read @bytes_read end |
#bytes_written ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def bytes_written @bytes_written end |
#cmd_get ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def cmd_get @cmd_get end |
#cmd_set ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def cmd_set @cmd_set end |
#connection_structures ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def connection_structures @connection_structures end |
#curr_connections ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def curr_connections @curr_connections end |
#curr_items ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def curr_items @curr_items end |
#evictions ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def evictions @evictions end |
#get_hits ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def get_hits @get_hits end |
#get_misses ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def get_misses @get_misses end |
#hostname ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def hostname @hostname end |
#limit_maxbytes ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def limit_maxbytes @limit_maxbytes end |
#pid ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def pid @pid end |
#pointer_size ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def pointer_size @pointer_size end |
#port ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def port @port end |
#raw ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def raw @raw end |
#rusage_system ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def rusage_system @rusage_system end |
#rusage_user ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def rusage_user @rusage_user end |
#threads ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def threads @threads end |
#time ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def time @time end |
#total_connections ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def total_connections @total_connections end |
#total_items ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def total_items @total_items end |
#uptime ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def uptime @uptime end |
#version ⇒ Object
Hostname to connect with
5 6 7 |
# File 'lib/memcache_stat.rb', line 5 def version @version end |
Instance Method Details
#refresh! ⇒ Object
37 38 39 40 41 |
# File 'lib/memcache_stat.rb', line 37 def refresh! refresh_raw_stats! parse_stats(@raw) true end |