Class: Shared::LiveConfiguration Abstract
- Inherits:
-
Configuration
- Object
- Resource
- Configuration
- Shared::LiveConfiguration
- Defined in:
- lib/vas/shared/live_configuration.rb
Overview
This class is abstract.
A live configuration file in an instance
Direct Known Subclasses
Gemfire::AgentLiveConfiguration, Gemfire::CacheServerLiveConfiguration, Gemfire::LocatorLiveConfiguration, RabbitMq::LiveConfiguration, Sqlfire::AgentLiveConfiguration, Sqlfire::LocatorLiveConfiguration, Sqlfire::ServerLiveConfiguration, TcServer::LiveConfiguration, WebServer::LiveConfiguration
Instance Attribute Summary
Attributes inherited from Configuration
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(location, client, instance_type, instance_class, node_live_configuration_class) ⇒ LiveConfiguration
constructor
A new instance of LiveConfiguration.
-
#node_configurations ⇒ NodeLiveConfiguration[]
The configuration’s node configurations.
-
#reload ⇒ Object
Reloads the live configuration’s details from the server.
Methods inherited from Configuration
Constructor Details
#initialize(location, client, instance_type, instance_class, node_live_configuration_class) ⇒ LiveConfiguration
Returns a new instance of LiveConfiguration.
23 24 25 26 |
# File 'lib/vas/shared/live_configuration.rb', line 23 def initialize(location, client, instance_type, instance_class, node_live_configuration_class) super(location, client, instance_type, instance_class) @node_live_configuration_class = node_live_configuration_class end |
Instance Method Details
#node_configurations ⇒ NodeLiveConfiguration[]
Returns the configuration’s node configurations.
35 36 37 38 |
# File 'lib/vas/shared/live_configuration.rb', line 35 def node_configurations @node_live_configurations ||= create_resources_from_links('node-live-configuration', @node_live_configuration_class) end |
#reload ⇒ Object
Reloads the live configuration’s details from the server
29 30 31 32 |
# File 'lib/vas/shared/live_configuration.rb', line 29 def reload super @node_live_configurations = nil end |