Class: Pazuzu::Control::SocketServer

Inherits:
Object
  • Object
show all
Includes:
Utility::Runnable
Defined in:
lib/pazuzu/control/socket_server.rb

Instance Attribute Summary collapse

Attributes included from Utility::Runnable

#started_at, #stopped_at

Instance Method Summary collapse

Methods included from Utility::Runnable

#run_state, #start!, #stop!, #wait_for_state_change!

Constructor Details

#initialize(supervisor, path) ⇒ SocketServer

Returns a new instance of SocketServer.



8
9
10
11
12
13
14
# File 'lib/pazuzu/control/socket_server.rb', line 8

def initialize(supervisor, path)
  @supervisor = supervisor
  @path = path
  @logger = Utility::AnnotatedLogger.new(
    supervisor.logger, 'Command socket server')
  super()
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



16
17
18
# File 'lib/pazuzu/control/socket_server.rb', line 16

def path
  @path
end

#supervisorObject (readonly)

Returns the value of attribute supervisor.



17
18
19
# File 'lib/pazuzu/control/socket_server.rb', line 17

def supervisor
  @supervisor
end