Class: Drnbench::Server::EngineConfiguration
- Inherits:
-
Object
- Object
- Drnbench::Server::EngineConfiguration
- Defined in:
- lib/drnbench/server/configuration.rb
Instance Attribute Summary collapse
-
#base_path ⇒ Object
Returns the value of attribute base_path.
-
#engine_config_path ⇒ Object
Returns the value of attribute engine_config_path.
-
#fluentd ⇒ Object
Returns the value of attribute fluentd.
-
#fluentd_options ⇒ Object
Returns the value of attribute fluentd_options.
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize ⇒ EngineConfiguration
constructor
A new instance of EngineConfiguration.
Constructor Details
#initialize ⇒ EngineConfiguration
Returns a new instance of EngineConfiguration.
23 24 25 26 27 28 29 30 |
# File 'lib/drnbench/server/configuration.rb', line 23 def initialize @port = 24224 @host = "localhost" @tag = "droonga" @base_path = Pathname(Dir.pwd) @fluentd = "fluentd" @fluentd_options = [] end |
Instance Attribute Details
#base_path ⇒ Object
Returns the value of attribute base_path.
20 21 22 |
# File 'lib/drnbench/server/configuration.rb', line 20 def base_path @base_path end |
#engine_config_path ⇒ Object
Returns the value of attribute engine_config_path.
20 21 22 |
# File 'lib/drnbench/server/configuration.rb', line 20 def engine_config_path @engine_config_path end |
#fluentd ⇒ Object
Returns the value of attribute fluentd.
21 22 23 |
# File 'lib/drnbench/server/configuration.rb', line 21 def fluentd @fluentd end |
#fluentd_options ⇒ Object
Returns the value of attribute fluentd_options.
21 22 23 |
# File 'lib/drnbench/server/configuration.rb', line 21 def @fluentd_options end |
#host ⇒ Object
Returns the value of attribute host.
19 20 21 |
# File 'lib/drnbench/server/configuration.rb', line 19 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
19 20 21 |
# File 'lib/drnbench/server/configuration.rb', line 19 def port @port end |
#tag ⇒ Object
Returns the value of attribute tag.
19 20 21 |
# File 'lib/drnbench/server/configuration.rb', line 19 def tag @tag end |