Class: Baykit::BayServer::Common::InboundShipStore
- Inherits:
-
Util::ObjectStore
- Object
- Util::ObjectStore
- Baykit::BayServer::Common::InboundShipStore
- Defined in:
- lib/baykit/bayserver/common/inbound_ship_store.rb
Defined Under Namespace
Classes: AgentListener
Class Attribute Summary collapse
-
.stores ⇒ Object
readonly
Agent id => InboundShipStore.
Attributes inherited from Util::ObjectStore
#active_list, #factory, #free_list
Class Method Summary collapse
- .get_store(agent_id) ⇒ Object
-
.init ⇒ Object
class methods.
Instance Method Summary collapse
-
#initialize ⇒ InboundShipStore
constructor
A new instance of InboundShipStore.
-
#print_usage(indent) ⇒ Object
print memory usage.
Methods inherited from Util::ObjectStore
Methods included from Util::Reusable
Constructor Details
#initialize ⇒ InboundShipStore
Returns a new instance of InboundShipStore.
35 36 37 38 |
# File 'lib/baykit/bayserver/common/inbound_ship_store.rb', line 35 def initialize() super @factory = -> { InboundShip.new() } end |
Class Attribute Details
.stores ⇒ Object (readonly)
Agent id => InboundShipStore
31 32 33 |
# File 'lib/baykit/bayserver/common/inbound_ship_store.rb', line 31 def stores @stores end |
Class Method Details
.get_store(agent_id) ⇒ Object
56 57 58 |
# File 'lib/baykit/bayserver/common/inbound_ship_store.rb', line 56 def self.get_store(agent_id) return @stores[agent_id] end |
.init ⇒ Object
class methods
52 53 54 |
# File 'lib/baykit/bayserver/common/inbound_ship_store.rb', line 52 def self.init() GrandAgent.add_lifecycle_listener(AgentListener.new()) end |
Instance Method Details
#print_usage(indent) ⇒ Object
print memory usage
43 44 45 46 |
# File 'lib/baykit/bayserver/common/inbound_ship_store.rb', line 43 def print_usage(indent) BayLog.info("%sInboundShipStore Usage:", StringUtil.indent(indent)); super(indent+1); end |