Module: PhantomProxy::StatusInfo
- Defined in:
- lib/phantom_proxy/helper/status_info.rb
Class Method Summary collapse
- .boot_up ⇒ Object
- .cache_access ⇒ Object
- .cache_access=(obj) ⇒ Object
- .cache_error ⇒ Object
- .cache_error=(obj) ⇒ Object
- .cache_hit ⇒ Object
- .cache_hit=(obj) ⇒ Object
- .cache_miss ⇒ Object
- .cache_miss=(obj) ⇒ Object
- .connections ⇒ Object
- .connections=(obj) ⇒ Object
- .uptime ⇒ Object
Class Method Details
.boot_up ⇒ Object
3 4 5 |
# File 'lib/phantom_proxy/helper/status_info.rb', line 3 def self.boot_up @start_time=Time.now end |
.cache_access ⇒ Object
29 30 31 |
# File 'lib/phantom_proxy/helper/status_info.rb', line 29 def self.cache_access @cache_access||=0 end |
.cache_access=(obj) ⇒ Object
32 33 34 |
# File 'lib/phantom_proxy/helper/status_info.rb', line 32 def self.cache_access=(obj) @cache_access=obj end |
.cache_error ⇒ Object
23 24 25 |
# File 'lib/phantom_proxy/helper/status_info.rb', line 23 def self.cache_error @cache_error||=0 end |
.cache_error=(obj) ⇒ Object
26 27 28 |
# File 'lib/phantom_proxy/helper/status_info.rb', line 26 def self.cache_error=(obj) @cache_error=obj end |
.cache_hit ⇒ Object
11 12 13 |
# File 'lib/phantom_proxy/helper/status_info.rb', line 11 def self.cache_hit @cache_hit||=0 end |
.cache_hit=(obj) ⇒ Object
14 15 16 |
# File 'lib/phantom_proxy/helper/status_info.rb', line 14 def self.cache_hit=(obj) @cache_hit=obj end |
.cache_miss ⇒ Object
17 18 19 |
# File 'lib/phantom_proxy/helper/status_info.rb', line 17 def self.cache_miss @cache_miss||=0 end |
.cache_miss=(obj) ⇒ Object
20 21 22 |
# File 'lib/phantom_proxy/helper/status_info.rb', line 20 def self.cache_miss=(obj) @cache_miss=obj end |
.connections ⇒ Object
35 36 37 |
# File 'lib/phantom_proxy/helper/status_info.rb', line 35 def self.connections @connections||=0 end |
.connections=(obj) ⇒ Object
38 39 40 |
# File 'lib/phantom_proxy/helper/status_info.rb', line 38 def self.connections=(obj) @connections=obj end |
.uptime ⇒ Object
8 9 10 |
# File 'lib/phantom_proxy/helper/status_info.rb', line 8 def self.uptime Time.now-@start_time end |