Class: Drnbench::Server::ProtocolAdapterConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/drnbench/server/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProtocolAdapterConfiguration

Returns a new instance of ProtocolAdapterConfiguration.


47
48
49
50
51
52
53
54
55
56
# File 'lib/drnbench/server/configuration.rb', line 47

def initialize
  @application_dir = Pathname(Dir.pwd)
  @host            = "localhost"
  @port            = 80
  @receive_port    = 14224
  @default_dataset = "Droonga"
  @node            = "node"
  @node_options    = []
  @engine          = nil
end

Instance Attribute Details

#application_dirObject

Returns the value of attribute application_dir


43
44
45
# File 'lib/drnbench/server/configuration.rb', line 43

def application_dir
  @application_dir
end

#default_datasetObject

Returns the value of attribute default_dataset


43
44
45
# File 'lib/drnbench/server/configuration.rb', line 43

def default_dataset
  @default_dataset
end

#engineObject

Returns the value of attribute engine


45
46
47
# File 'lib/drnbench/server/configuration.rb', line 45

def engine
  @engine
end

#hostObject

Returns the value of attribute host


43
44
45
# File 'lib/drnbench/server/configuration.rb', line 43

def host
  @host
end

#nodeObject

Returns the value of attribute node


44
45
46
# File 'lib/drnbench/server/configuration.rb', line 44

def node
  @node
end

#node_optionsObject

Returns the value of attribute node_options


44
45
46
# File 'lib/drnbench/server/configuration.rb', line 44

def node_options
  @node_options
end

#portObject

Returns the value of attribute port


43
44
45
# File 'lib/drnbench/server/configuration.rb', line 43

def port
  @port
end

#receive_portObject

Returns the value of attribute receive_port


43
44
45
# File 'lib/drnbench/server/configuration.rb', line 43

def receive_port
  @receive_port
end