Module: LogjamAgent::Forwarders

Extended by:
Forwarders
Included in:
Forwarders
Defined in:
lib/logjam_agent/forwarders.rb

Constant Summary collapse

@@forwarders =
{}

Instance Method Summary collapse

Instance Method Details

#add(f) ⇒ Object



7
8
9
# File 'lib/logjam_agent/forwarders.rb', line 7

def add(f)
  @@forwarders["#{f.app}-#{f.env}"] = f
end

#get(app, env) ⇒ Object



11
12
13
# File 'lib/logjam_agent/forwarders.rb', line 11

def get(app, env)
  @@forwarders["#{app}-#{env}"]
end

#inspectObject



22
23
24
# File 'lib/logjam_agent/forwarders.rb', line 22

def inspect
  super + ": #{@@forwarders.inspect}"
end

#resetObject



15
16
17
# File 'lib/logjam_agent/forwarders.rb', line 15

def reset
  @@forwarders.each_value {|f| f.reset}
end