Module: Qmore
- Defined in:
- lib/qmore.rb,
lib/qmore/server.rb,
lib/qmore/version.rb,
lib/qmore/reservers.rb,
lib/qmore/attributes.rb,
lib/qmore/configuration.rb
Defined Under Namespace
Modules: Attributes, Persistence, Reservers, Server
Classes: Configuration, LegacyConfiguration
Constant Summary
collapse
- VERSION =
"0.7.0"
Class Method Summary
collapse
Class Method Details
.client ⇒ Object
14
15
16
|
# File 'lib/qmore.rb', line 14
def self.client
@client ||= Qless::Client.new
end
|
.client=(client) ⇒ Object
10
11
12
|
# File 'lib/qmore.rb', line 10
def self.client=(client)
@client = client
end
|
.configuration ⇒ Object
18
19
20
|
# File 'lib/qmore.rb', line 18
def self.configuration
@configuration ||= Qmore::LegacyConfiguration.new(Qmore.persistence)
end
|
.configuration=(configuration) ⇒ Object
22
23
24
|
# File 'lib/qmore.rb', line 22
def self.configuration=(configuration)
@configuration = configuration
end
|
.monitor ⇒ Object
34
35
36
|
# File 'lib/qmore.rb', line 34
def self.monitor
@monitor ||= Qmore::Persistence::Monitor.new(self.persistence, 120)
end
|
.monitor=(monitor) ⇒ Object
38
39
40
|
# File 'lib/qmore.rb', line 38
def self.monitor=(monitor)
@monitor = monitor
end
|
.persistence ⇒ Object
26
27
28
|
# File 'lib/qmore.rb', line 26
def self.persistence
@persistence ||= Qmore::Persistence::Redis.new(self.client.redis)
end
|
.persistence=(manager) ⇒ Object
30
31
32
|
# File 'lib/qmore.rb', line 30
def self.persistence=(manager)
@persistence = manager
end
|