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



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

def channels
  listener.pipes
end

#listenerObject



25
26
27
# File 'lib/new_relic/agent/pipe_channel_manager.rb', line 25

def listener
  @listener ||= Listener.new
end

#register_report_channel(id) ⇒ Object



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

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