Class: Gemfire::LocatorNodeInstance
- Inherits:
-
Shared::NodeInstance
- Object
- Shared::Resource
- Shared::StateResource
- Shared::NodeInstance
- Gemfire::LocatorNodeInstance
- Defined in:
- lib/vas/gemfire/locator_node_instances.rb
Overview
A locator node instance
Instance Attribute Summary collapse
-
#address ⇒ String?
readonly
The property in a node’s metadata used to determine the address of the network card on which the locator will listen.
-
#peer ⇒ Boolean
readonly
trueif the locator will act as a peer,falseif it will not. -
#port ⇒ Integer
readonly
The port that the locator will listen on.
-
#server ⇒ Boolean
readonly
trueif the locator will act as a server,falseif it will not.
Attributes inherited from Shared::NodeInstance
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ LocatorNodeInstance
constructor
A new instance of LocatorNodeInstance.
-
#reload ⇒ void
Reloads the instance’s details from the server.
-
#to_s ⇒ String
A string representation of the instance.
Methods inherited from Shared::NodeInstance
#group_instance, #live_configurations, #logs, #node
Methods inherited from Shared::StateResource
Constructor Details
#initialize(location, client) ⇒ LocatorNodeInstance
47 48 49 |
# File 'lib/vas/gemfire/locator_node_instances.rb', line 47 def initialize(location, client) super(location, client, Node, LocatorLogs, LocatorInstance, 'locator-group-instance', LocatorNodeLiveConfigurations) end |
Instance Attribute Details
#address ⇒ String? (readonly)
35 36 37 |
# File 'lib/vas/gemfire/locator_node_instances.rb', line 35 def address @address end |
#peer ⇒ Boolean (readonly)
41 42 43 |
# File 'lib/vas/gemfire/locator_node_instances.rb', line 41 def peer @peer end |
#port ⇒ Integer (readonly)
38 39 40 |
# File 'lib/vas/gemfire/locator_node_instances.rb', line 38 def port @port end |
#server ⇒ Boolean (readonly)
44 45 46 |
# File 'lib/vas/gemfire/locator_node_instances.rb', line 44 def server @server end |
Instance Method Details
#reload ⇒ void
This method returns an undefined value.
Reloads the instance’s details from the server
53 54 55 56 57 58 59 |
# File 'lib/vas/gemfire/locator_node_instances.rb', line 53 def reload super @port = details['port'] @peer = details['peer'] @server = details['server'] @address = details['address'] end |
#to_s ⇒ String
62 63 64 |
# File 'lib/vas/gemfire/locator_node_instances.rb', line 62 def to_s "#<#{self.class} name=#{name} address='#@address' port='#@port' peer='#@peer' server='#@server'>" end |