Class: Shared::NodeInstance
- Inherits:
-
StateResource
- Object
- Resource
- StateResource
- Shared::NodeInstance
- Defined in:
- lib/vas/shared/node_instances.rb
Direct Known Subclasses
Gemfire::AgentNodeInstance, Gemfire::CacheServerNodeInstance, Gemfire::LocatorNodeInstance, RabbitMq::NodeInstance, TcServer::NodeInstance
Instance Attribute Summary collapse
-
#group_instance ⇒ Object
readonly
The node instance’s group instance.
-
#logs ⇒ Object
readonly
The instance’s Logs.
-
#name ⇒ Object
readonly
The instance’s name.
-
#node ⇒ Object
readonly
The node that contains this instance.
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(location, client, node_class, logs_class, group_instance_class, group_instance_type) ⇒ NodeInstance
constructor
:nodoc:.
-
#to_s ⇒ Object
:nodoc:.
Methods inherited from StateResource
Constructor Details
#initialize(location, client, node_class, logs_class, group_instance_class, group_instance_type) ⇒ NodeInstance
:nodoc:
42 43 44 45 46 47 48 49 50 |
# File 'lib/vas/shared/node_instances.rb', line 42 def initialize(location, client, node_class, logs_class, group_instance_class, group_instance_type) #:nodoc: super(location, client) @name = details["name"] @node = node_class.new(Util::LinkUtils.get_link_href(details, "node"), client) @logs = logs_class.new(Util::LinkUtils.get_link_href(details, "logs"), client) @group_instance = group_instance_class.new(Util::LinkUtils.get_link_href(details, group_instance_type), client) end |
Instance Attribute Details
#group_instance ⇒ Object (readonly)
The node instance’s group instance
40 41 42 |
# File 'lib/vas/shared/node_instances.rb', line 40 def group_instance @group_instance end |
#logs ⇒ Object (readonly)
The instance’s Logs
37 38 39 |
# File 'lib/vas/shared/node_instances.rb', line 37 def logs @logs end |
#name ⇒ Object (readonly)
The instance’s name
31 32 33 |
# File 'lib/vas/shared/node_instances.rb', line 31 def name @name end |
#node ⇒ Object (readonly)
The node that contains this instance
34 35 36 |
# File 'lib/vas/shared/node_instances.rb', line 34 def node @node end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
52 53 54 |
# File 'lib/vas/shared/node_instances.rb', line 52 def to_s #:nodoc: "#<#{self.class} name='#@name'>" end |