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
Attributes inherited from Shared::NodeInstance
#group_instance, #logs, #name, #node
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ LocatorNodeInstance
constructor
A new instance of LocatorNodeInstance.
-
#peer ⇒ Boolean
true
if the locator will act as a peer,false
if it will not. -
#port ⇒ Integer
The port that the locator will listen on.
-
#server ⇒ Boolean
true
if the locator will act as a server,false
if it will not.
Methods inherited from Shared::NodeInstance
Methods inherited from Shared::StateResource
Constructor Details
#initialize(location, client) ⇒ LocatorNodeInstance
Returns a new instance of LocatorNodeInstance.
33 34 35 |
# File 'lib/vas/gemfire/locator_node_instances.rb', line 33 def initialize(location, client) #:nodoc: super(location, client, Node, LocatorLogs, LocatorInstance, 'locator-group-instance') end |
Instance Method Details
#peer ⇒ Boolean
Returns true
if the locator will act as a peer, false
if it will not.
43 44 45 |
# File 'lib/vas/gemfire/locator_node_instances.rb', line 43 def peer client.get(location)['peer'] end |
#port ⇒ Integer
Returns the port that the locator will listen on.
38 39 40 |
# File 'lib/vas/gemfire/locator_node_instances.rb', line 38 def port client.get(location)['port'] end |
#server ⇒ Boolean
Returns true
if the locator will act as a server, false
if it will not.
48 49 50 |
# File 'lib/vas/gemfire/locator_node_instances.rb', line 48 def server client.get(location)['server'] end |