Class: OvirtSDK4::GlusterHookService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#disable(opts = {}) ⇒ Object
Resolves status conflict of hook among servers in cluster by disabling Gluster hook in all servers of the cluster.
-
#enable(opts = {}) ⇒ Object
Resolves status conflict of hook among servers in cluster by disabling Gluster hook in all servers of the cluster.
-
#get(opts = {}) ⇒ GlusterHook
Returns the representation of the object managed by this service.
-
#remove(opts = {}) ⇒ Object
Removes the this Gluster hook from all servers in cluster and deletes it from the database.
-
#resolve(opts = {}) ⇒ Object
Resolves missing hook conflict depending on the resolution type.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#disable(opts = {}) ⇒ Object
Resolves status conflict of hook among servers in cluster by disabling Gluster hook in all servers of the
cluster. This updates the hook status to DISABLED in database.
11288 11289 11290 |
# File 'lib/ovirtsdk4/services.rb', line 11288 def disable(opts = {}) internal_action(:disable, nil, DISABLE, opts) end |
#enable(opts = {}) ⇒ Object
Resolves status conflict of hook among servers in cluster by disabling Gluster hook in all servers of the
cluster. This updates the hook status to DISABLED in database.
11315 11316 11317 |
# File 'lib/ovirtsdk4/services.rb', line 11315 def enable(opts = {}) internal_action(:enable, nil, ENABLE, opts) end |
#get(opts = {}) ⇒ GlusterHook
Returns the representation of the object managed by this service.
11344 11345 11346 |
# File 'lib/ovirtsdk4/services.rb', line 11344 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Removes the this Gluster hook from all servers in cluster and deletes it from the database.
11369 11370 11371 |
# File 'lib/ovirtsdk4/services.rb', line 11369 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#resolve(opts = {}) ⇒ Object
Resolves missing hook conflict depending on the resolution type.
For ADD resolves by copying hook stored in engine database to all servers where the hook is missing. The
engine maintains a list of all servers where hook is missing.
For COPY resolves conflict in hook content by copying hook stored in engine database to all servers where
the hook is missing. The engine maintains a list of all servers where the content is conflicting. If a host
id is passed as parameter, the hook content from the server is used as the master to copy to other servers
in cluster.
11409 11410 11411 |
# File 'lib/ovirtsdk4/services.rb', line 11409 def resolve(opts = {}) internal_action(:resolve, nil, RESOLVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
11420 11421 11422 11423 11424 11425 |
# File 'lib/ovirtsdk4/services.rb', line 11420 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |