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 collapse

Attributes inherited from Shared::NodeInstance

#name

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::NodeInstance

#group_instance, #live_configurations, #logs, #node

Methods inherited from Shared::StateResource

#start, #state, #stop

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

#addressString? (readonly)



35
36
37
# File 'lib/vas/gemfire/locator_node_instances.rb', line 35

def address
  @address
end

#peerBoolean (readonly)



41
42
43
# File 'lib/vas/gemfire/locator_node_instances.rb', line 41

def peer
  @peer
end

#portInteger (readonly)



38
39
40
# File 'lib/vas/gemfire/locator_node_instances.rb', line 38

def port
  @port
end

#serverBoolean (readonly)



44
45
46
# File 'lib/vas/gemfire/locator_node_instances.rb', line 44

def server
  @server
end

Instance Method Details

#reloadvoid

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_sString



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