Class: Drnbench::ProtocolAdapter
- Inherits:
-
Object
- Object
- Drnbench::ProtocolAdapter
- Defined in:
- lib/drnbench/server/protocol-adapter.rb
Instance Attribute Summary collapse
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
- #application_file ⇒ Object
-
#initialize(config) ⇒ ProtocolAdapter
constructor
A new instance of ProtocolAdapter.
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(config) ⇒ ProtocolAdapter
Returns a new instance of ProtocolAdapter.
22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/drnbench/server/protocol-adapter.rb', line 22 def initialize(config) @config = config @host = @config.host @port = @config.port @receive_port = @config.receive_port @default_dataset = @config.default_dataset @application_dir = Pathname(@config.application_dir) @node = @config.node @node_options = @config. end |
Instance Attribute Details
#port ⇒ Object (readonly)
Returns the value of attribute port.
20 21 22 |
# File 'lib/drnbench/server/protocol-adapter.rb', line 20 def port @port end |
Instance Method Details
#application_file ⇒ Object
43 44 45 |
# File 'lib/drnbench/server/protocol-adapter.rb', line 43 def application_file @application_dir + "application.js" end |
#start ⇒ Object
35 36 37 |
# File 'lib/drnbench/server/protocol-adapter.rb', line 35 def start setup end |
#stop ⇒ Object
39 40 41 |
# File 'lib/drnbench/server/protocol-adapter.rb', line 39 def stop teardown end |