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

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

#peerBoolean

Returns true if the locator will act as a peer, false if it will not.

Returns:

  • (Boolean)

    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

#portInteger

Returns the port that the locator will listen on.

Returns:

  • (Integer)

    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

#serverBoolean

Returns true if the locator will act as a server, false if it will not.

Returns:

  • (Boolean)

    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