Class: Gemfire::CacheServerInstance
- Inherits:
-
Shared::Instance
- Object
- Shared::Resource
- Shared::StateResource
- Shared::Instance
- Gemfire::CacheServerInstance
- Defined in:
- lib/vas/gemfire/cache_server_instances.rb
Overview
A cache server instance
Instance Attribute Summary collapse
-
#live_application_code ⇒ LiveApplicationCodes
readonly
The instance’s live application code.
-
#pending_application_code ⇒ PendingApplicationCodes
readonly
The instance’s pending application code.
Attributes inherited from Shared::Instance
#group, #live_configurations, #name, #pending_configurations
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ CacheServerInstance
constructor
A new instance of CacheServerInstance.
-
#update(installation) ⇒ void
Updates the instance to use a different installation.
Methods inherited from Shared::Instance
#installation, #node_instances, #to_s
Methods inherited from Shared::StateResource
Constructor Details
#initialize(location, client) ⇒ CacheServerInstance
Returns a new instance of CacheServerInstance.
50 51 52 53 54 |
# File 'lib/vas/gemfire/cache_server_instances.rb', line 50 def initialize(location, client) super(location, client, Group, Installation, CacheServerLiveConfigurations, CacheServerPendingConfigurations, CacheServerNodeInstance, 'cache-server-node-instance') @live_application_code = LiveApplicationCodes.new(Util::LinkUtils.get_link_href(details, 'live-application-code'), client) @pending_application_code = PendingApplicationCodes.new(Util::LinkUtils.get_link_href(details, 'pending-application-code'), client) end |
Instance Attribute Details
#live_application_code ⇒ LiveApplicationCodes (readonly)
Returns the instance’s live application code.
44 45 46 |
# File 'lib/vas/gemfire/cache_server_instances.rb', line 44 def live_application_code @live_application_code end |
#pending_application_code ⇒ PendingApplicationCodes (readonly)
Returns the instance’s pending application code.
47 48 49 |
# File 'lib/vas/gemfire/cache_server_instances.rb', line 47 def pending_application_code @pending_application_code end |
Instance Method Details
#update(installation) ⇒ void
This method returns an undefined value.
Updates the instance to use a different installation
61 62 63 |
# File 'lib/vas/gemfire/cache_server_instances.rb', line 61 def update(installation) client.post(location, { :installation => installation.location }); end |