Class: Gemfire::LocatorNodeInstance

Inherits:
Shared::NodeInstance show all
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

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::NodeInstance

#to_s

Methods inherited from Shared::StateResource

#start, #state, #stop

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

#peerObject

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

#portObject

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

#serverObject

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