Class: Quark::MdkDiscovery::ReplaceCluster
- Inherits:
-
DatawireQuarkCore::QuarkObject
- Object
- DatawireQuarkCore::QuarkObject
- Quark::MdkDiscovery::ReplaceCluster
- Extended by:
- DatawireQuarkCore::Static
- Defined in:
- lib/mdk_discovery.rb
Overview
Message from DiscoverySource: replace all nodes in a particular Cluster.
Constant Summary
Constants included from DatawireQuarkCore::Static
DatawireQuarkCore::Static::Unassigned
Instance Attribute Summary collapse
-
#cluster ⇒ Object
Returns the value of attribute cluster.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#nodes ⇒ Object
Returns the value of attribute nodes.
Instance Method Summary collapse
- #__init_fields__ ⇒ Object
- #_getClass ⇒ Object
- #_getField(name) ⇒ Object
- #_setField(name, value) ⇒ Object
-
#initialize(cluster, environment, nodes) ⇒ ReplaceCluster
constructor
A new instance of ReplaceCluster.
Methods included from DatawireQuarkCore::Static
_lazy_statics, static, unlazy_statics
Methods inherited from DatawireQuarkCore::QuarkObject
Constructor Details
#initialize(cluster, environment, nodes) ⇒ ReplaceCluster
Returns a new instance of ReplaceCluster.
150 151 152 153 154 155 156 157 158 |
# File 'lib/mdk_discovery.rb', line 150 def initialize(cluster, environment, nodes) self.__init_fields__ (self).nodes = nodes (self).cluster = cluster (self).environment = environment nil end |
Instance Attribute Details
#cluster ⇒ Object
Returns the value of attribute cluster.
143 144 145 |
# File 'lib/mdk_discovery.rb', line 143 def cluster @cluster end |
#environment ⇒ Object
Returns the value of attribute environment.
143 144 145 |
# File 'lib/mdk_discovery.rb', line 143 def environment @environment end |
#nodes ⇒ Object
Returns the value of attribute nodes.
143 144 145 |
# File 'lib/mdk_discovery.rb', line 143 def nodes @nodes end |
Instance Method Details
#__init_fields__ ⇒ Object
201 202 203 204 205 206 207 208 |
# File 'lib/mdk_discovery.rb', line 201 def __init_fields__() self.nodes = nil self.cluster = nil self.environment = ::Quark.mdk_protocol.OperationalEnvironment.new() nil end |
#_getClass ⇒ Object
163 164 165 166 167 168 |
# File 'lib/mdk_discovery.rb', line 163 def _getClass() return "mdk_discovery.ReplaceCluster" nil end |
#_getField(name) ⇒ Object
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 |
# File 'lib/mdk_discovery.rb', line 170 def _getField(name) if ((name) == ("nodes")) return (self).nodes end if ((name) == ("cluster")) return (self).cluster end if ((name) == ("environment")) return (self).environment end return nil nil end |
#_setField(name, value) ⇒ Object
186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/mdk_discovery.rb', line 186 def _setField(name, value) if ((name) == ("nodes")) (self).nodes = ::DatawireQuarkCore.cast(value) { ::DatawireQuarkCore::List } end if ((name) == ("cluster")) (self).cluster = ::DatawireQuarkCore.cast(value) { ::String } end if ((name) == ("environment")) (self).environment = ::DatawireQuarkCore.cast(value) { ::Quark.mdk_protocol.OperationalEnvironment } end nil end |