Class: Kaltura::KalturaServerNodeService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaServerNodeService
- Defined in:
- lib/kaltura_client.rb
Overview
Server Node service
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(server_node) ⇒ KalturaServerNode
Adds a server node to the Kaltura DB.
-
#delete(server_node_id) ⇒ Object
delete server node by id.
-
#disable(server_node_id) ⇒ KalturaServerNode
Disable server node by id.
-
#enable(server_node_id) ⇒ KalturaServerNode
Enable server node by id.
-
#get(server_node_id) ⇒ KalturaServerNode
Get server node by id.
-
#get_full_path(host_name, protocol = 'http', delivery_format = KalturaNotImplemented, delivery_type = KalturaNotImplemented) ⇒ string
Get the edge server node full path.
-
#initialize(client) ⇒ KalturaServerNodeService
constructor
A new instance of KalturaServerNodeService.
- #list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaServerNodeListResponse
-
#mark_offline(server_node_id) ⇒ KalturaServerNode
Mark server node offline.
-
#report_status(host_name, server_node = KalturaNotImplemented, server_node_status = 1) ⇒ KalturaServerNode
Update server node status.
-
#update(server_node_id, server_node) ⇒ KalturaServerNode
Update server node by id.
Constructor Details
#initialize(client) ⇒ KalturaServerNodeService
Returns a new instance of KalturaServerNodeService.
4215 4216 4217 |
# File 'lib/kaltura_client.rb', line 4215 def initialize(client) super(client) end |
Instance Method Details
#add(server_node) ⇒ KalturaServerNode
Adds a server node to the Kaltura DB.
4221 4222 4223 4224 4225 4226 4227 4228 4229 |
# File 'lib/kaltura_client.rb', line 4221 def add(server_node) kparams = {} client.add_param(kparams, 'serverNode', server_node) client.queue_service_action_call('servernode', 'add', 'KalturaServerNode', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#delete(server_node_id) ⇒ Object
delete server node by id
4233 4234 4235 4236 4237 4238 4239 4240 4241 |
# File 'lib/kaltura_client.rb', line 4233 def delete(server_node_id) kparams = {} client.add_param(kparams, 'serverNodeId', server_node_id) client.queue_service_action_call('servernode', 'delete', '', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#disable(server_node_id) ⇒ KalturaServerNode
Disable server node by id
4245 4246 4247 4248 4249 4250 4251 4252 4253 |
# File 'lib/kaltura_client.rb', line 4245 def disable(server_node_id) kparams = {} client.add_param(kparams, 'serverNodeId', server_node_id) client.queue_service_action_call('servernode', 'disable', 'KalturaServerNode', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#enable(server_node_id) ⇒ KalturaServerNode
Enable server node by id
4257 4258 4259 4260 4261 4262 4263 4264 4265 |
# File 'lib/kaltura_client.rb', line 4257 def enable(server_node_id) kparams = {} client.add_param(kparams, 'serverNodeId', server_node_id) client.queue_service_action_call('servernode', 'enable', 'KalturaServerNode', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get(server_node_id) ⇒ KalturaServerNode
Get server node by id
4269 4270 4271 4272 4273 4274 4275 4276 4277 |
# File 'lib/kaltura_client.rb', line 4269 def get(server_node_id) kparams = {} client.add_param(kparams, 'serverNodeId', server_node_id) client.queue_service_action_call('servernode', 'get', 'KalturaServerNode', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get_full_path(host_name, protocol = 'http', delivery_format = KalturaNotImplemented, delivery_type = KalturaNotImplemented) ⇒ string
Get the edge server node full path
4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 |
# File 'lib/kaltura_client.rb', line 4281 def get_full_path(host_name, protocol='http', delivery_format=KalturaNotImplemented, delivery_type=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'hostName', host_name) client.add_param(kparams, 'protocol', protocol) client.add_param(kparams, 'deliveryFormat', delivery_format) client.add_param(kparams, 'deliveryType', delivery_type) client.queue_service_action_call('servernode', 'getFullPath', 'string', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaServerNodeListResponse
4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 |
# File 'lib/kaltura_client.rb', line 4295 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('servernode', 'list', 'KalturaServerNodeListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#mark_offline(server_node_id) ⇒ KalturaServerNode
Mark server node offline
4308 4309 4310 4311 4312 4313 4314 4315 4316 |
# File 'lib/kaltura_client.rb', line 4308 def mark_offline(server_node_id) kparams = {} client.add_param(kparams, 'serverNodeId', server_node_id) client.queue_service_action_call('servernode', 'markOffline', 'KalturaServerNode', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#report_status(host_name, server_node = KalturaNotImplemented, server_node_status = 1) ⇒ KalturaServerNode
Update server node status
4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 |
# File 'lib/kaltura_client.rb', line 4320 def report_status(host_name, server_node=KalturaNotImplemented, server_node_status=1) kparams = {} client.add_param(kparams, 'hostName', host_name) client.add_param(kparams, 'serverNode', server_node) client.add_param(kparams, 'serverNodeStatus', server_node_status) client.queue_service_action_call('servernode', 'reportStatus', 'KalturaServerNode', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update(server_node_id, server_node) ⇒ KalturaServerNode
Update server node by id
4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 |
# File 'lib/kaltura_client.rb', line 4334 def update(server_node_id, server_node) kparams = {} client.add_param(kparams, 'serverNodeId', server_node_id) client.add_param(kparams, 'serverNode', server_node) client.queue_service_action_call('servernode', 'update', 'KalturaServerNode', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |