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
:nodoc:.
-
#peer ⇒ Object
true
if the locator will act as a peer,false
if it will not. -
#port ⇒ Object
The port that the locator will listen on.
-
#server ⇒ Object
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
:nodoc:
32 33 34 |
# File 'lib/vas/gemfire/locator_node_instances.rb', line 32 def initialize(location, client) #:nodoc: super(location, client, Node, LocatorLogs, LocatorInstance, 'locator-group-instance') end |
Instance Method Details
#peer ⇒ Object
true
if the locator will act as a peer, false
if it will not
42 43 44 |
# File 'lib/vas/gemfire/locator_node_instances.rb', line 42 def peer client.get(location)['peer'] end |
#port ⇒ Object
The port that the locator will listen on
37 38 39 |
# File 'lib/vas/gemfire/locator_node_instances.rb', line 37 def port client.get(location)['port'] end |
#server ⇒ Object
true
if the locator will act as a server, false
if it will not
47 48 49 |
# File 'lib/vas/gemfire/locator_node_instances.rb', line 47 def server client.get(location)['server'] end |