Module: NewRelic::Agent::PipeChannelManager

Extended by:
PipeChannelManager
Included in:
PipeChannelManager
Defined in:
lib/new_relic/agent/pipe_channel_manager.rb

Overview

– Manages the registering and servicing of pipes used by child processes to report data to their parent, rather than directly to the collector.

Defined Under Namespace

Classes: Listener, Pipe

Instance Method Summary collapse

Instance Method Details

#channelsObject



17
18
19
# File 'lib/new_relic/agent/pipe_channel_manager.rb', line 17

def channels
  listener.pipes
end

#listenerObject



21
22
23
# File 'lib/new_relic/agent/pipe_channel_manager.rb', line 21

def listener
  @listener ||= Listener.new
end

#register_report_channel(id) ⇒ Object



13
14
15
# File 'lib/new_relic/agent/pipe_channel_manager.rb', line 13

def register_report_channel(id)
  listener.register_pipe(id)
end