Class: Dcmgr::VNet::Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/dcmgr/vnet.rb

Overview

Abstract class for a Cache implementation to extend

Direct Known Subclasses

Netfilter::NetfilterCache

Instance Method Summary collapse

Instance Method Details

#add_instance(inst_map) ⇒ Object

Adds a newly started instance to the existing cache

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/dcmgr/vnet.rb', line 25

def remove_instance(inst_id)
  raise NotImplementedError
end

#updateObject

Makes a call to the database and updates the Cache

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/dcmgr/vnet.rb', line 9

def update
  raise NotImplementedError
end