Class: Baykit::BayServer::Protocol::PacketStore::AgentListener

Inherits:
Object
  • Object
show all
Includes:
Agent::LifecycleListener
Defined in:
lib/baykit/bayserver/protocol/packet_store.rb

Instance Method Summary collapse

Instance Method Details

#add(agt_id) ⇒ Object



18
19
20
21
22
# File 'lib/baykit/bayserver/protocol/packet_store.rb', line 18

def add(agt_id)
  PacketStore.proto_map.values().each do |ifo|
   ifo.add_agent(agt_id);
  end
end

#remove(agt_id) ⇒ Object



24
25
26
27
28
# File 'lib/baykit/bayserver/protocol/packet_store.rb', line 24

def remove(agt_id)
  PacketStore.proto_map.values().each do |ifo|
    ifo.remove_agent(agt_id);
  end
end