Class: Proxy::DHCP::KeaApi::SubnetService::Staging

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_proxy_dhcp_kea_api/dhcp_kea_api_subnet_service.rb

Overview

Holds the data fetched during a reload before it is atomically swapped into the live cache. Wraps a throwaway parent SubnetService (for its thread-safe stores and lookup helpers) plus the Kea-specific maps, so the loaders can populate it exactly as they would the live object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializevoid



29
30
31
32
33
# File 'lib/smart_proxy_dhcp_kea_api/dhcp_kea_api_subnet_service.rb', line 29

def initialize
  @service = ::Proxy::DHCP::SubnetService.initialized_instance
  @kea_id_map = {}
  @subnet_options = {}
end

Instance Attribute Details

#kea_id_mapObject (readonly)

Returns the value of attribute kea_id_map.



26
27
28
# File 'lib/smart_proxy_dhcp_kea_api/dhcp_kea_api_subnet_service.rb', line 26

def kea_id_map
  @kea_id_map
end

#serviceObject (readonly)

Returns the value of attribute service.



26
27
28
# File 'lib/smart_proxy_dhcp_kea_api/dhcp_kea_api_subnet_service.rb', line 26

def service
  @service
end

#subnet_optionsObject (readonly)

Returns the value of attribute subnet_options.



26
27
28
# File 'lib/smart_proxy_dhcp_kea_api/dhcp_kea_api_subnet_service.rb', line 26

def subnet_options
  @subnet_options
end