Class: UU::CloudRuntime::Host
- Inherits:
-
RuntimeBaseClass
- Object
- RuntimeBaseClass
- UU::CloudRuntime::Host
- Defined in:
- lib/uu/cloud_runtime/host.rb
Overview
Host class.
Class Method Summary collapse
-
.get_status(host_uri) ⇒ Hash
Returns general info about a target host and info about running containers on the host.
-
.reinit(host_uri, parameters = {}) ⇒ UU::OS::Lang::Future
Synchronize a target host with the metadata in the Operation Registry:.
Instance Method Summary collapse
-
#get_status(host_uri) ⇒ Hash
Returns general info about a target host and info about running containers on the host.
-
#initialize(session = nil) ⇒ Host
constructor
Creates a new instance of
Host
. -
#reinit(host_uri, parameters = {}) ⇒ UU::OS::Lang::Future
Synchronize a target host with the metadata in the Operation Registry:.
Constructor Details
Class Method Details
.get_status(host_uri) ⇒ Hash
get_status is not allowed for SWARM hosts.
Returns general info about a target host and info about running containers on the host.
150 151 152 |
# File 'lib/uu/cloud_runtime/host.rb', line 150 def self.get_status(host_uri) self.new(UU::OS::Security::Session.current_session).get_status(host_uri) end |
.reinit(host_uri, parameters = {}) ⇒ UU::OS::Lang::Future
reinit is only allowed for hosts with reinitStrategy set to “SUPPORTED”
Synchronize a target host with the metadata in the Operation Registry:
* Run containers that are supposed to be running (according do the Operation Registry)
* Restart running containers if requested - see parameter +restartRunningContainers+
* Delete containers that are not supposed to be running if requested - see parameter
+stopUnknownContainers+
234 235 236 |
# File 'lib/uu/cloud_runtime/host.rb', line 234 def self.reinit(host_uri, parameters = {}) self.new(UU::OS::Security::Session.current_session).reinit(host_uri, parameters) end |
Instance Method Details
#get_status(host_uri) ⇒ Hash
get_status is not allowed for SWARM hosts.
Returns general info about a target host and info about running containers on the host.
28 29 30 |
# File 'lib/uu/cloud_runtime/host.rb', line 28 def get_status(host_uri) @client.invoke(:getStatus, host_uri) end |
#reinit(host_uri, parameters = {}) ⇒ UU::OS::Lang::Future
reinit is only allowed for hosts with reinitStrategy set to “SUPPORTED”
Synchronize a target host with the metadata in the Operation Registry:
* Run containers that are supposed to be running (according do the Operation Registry)
* Restart running containers (if requested - see parameter +restartRunningContainers+)
* Delete containers that are not supposed to be running (if requested - see parameter
+stopUnknownContainers+)
179 180 181 |
# File 'lib/uu/cloud_runtime/host.rb', line 179 def reinit(host_uri, parameters = {}) @client.invoke(:reinit, host_uri, parameters: parameters) end |