Class: Dcmgr::VNet::Cache
- Inherits:
-
Object
- Object
- Dcmgr::VNet::Cache
- Defined in:
- lib/dcmgr/vnet.rb
Overview
Abstract class for a Cache implementation to extend
Direct Known Subclasses
Instance Method Summary collapse
-
#add_instance(inst_map) ⇒ Object
Adds a newly started instance to the existing cache.
-
#get(force_update = false) ⇒ Object
Returns the cache if force_update is set to true, the cache will be updated from the database.
-
#remove_instance(inst_id) ⇒ Object
Removes a terminated instance from the existing cache.
-
#update ⇒ Object
Makes a call to the database and updates the Cache.
Instance Method Details
#add_instance(inst_map) ⇒ Object
Adds a newly started instance to the existing cache
20 21 22 |
# File 'lib/dcmgr/vnet.rb', line 20 def add_instance(inst_map) raise NotImplementedError end |
#get(force_update = false) ⇒ Object
Returns the cache if force_update is set to true, the cache will be updated from the database
15 16 17 |
# File 'lib/dcmgr/vnet.rb', line 15 def get(force_update = false) raise NotImplementedError end |
#remove_instance(inst_id) ⇒ Object
Removes a terminated instance from the existing cache
25 26 27 |
# File 'lib/dcmgr/vnet.rb', line 25 def remove_instance(inst_id) raise NotImplementedError end |
#update ⇒ Object
Makes a call to the database and updates the Cache
9 10 11 |
# File 'lib/dcmgr/vnet.rb', line 9 def update raise NotImplementedError end |