Class: Kaltura::KalturaServerNodeService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_client.rb

Overview

Server Node service

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaServerNodeService



4177
4178
4179
# File 'lib/kaltura_client.rb', line 4177

def initialize(client)
  super(client)
end

Instance Method Details

#add(server_node) ⇒ KalturaServerNode

Adds a server node to the Kaltura DB.



4183
4184
4185
4186
4187
4188
4189
4190
4191
# File 'lib/kaltura_client.rb', line 4183

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



4195
4196
4197
4198
4199
4200
4201
4202
4203
# File 'lib/kaltura_client.rb', line 4195

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



4207
4208
4209
4210
4211
4212
4213
4214
4215
# File 'lib/kaltura_client.rb', line 4207

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



4219
4220
4221
4222
4223
4224
4225
4226
4227
# File 'lib/kaltura_client.rb', line 4219

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



4231
4232
4233
4234
4235
4236
4237
4238
4239
# File 'lib/kaltura_client.rb', line 4231

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



4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
# File 'lib/kaltura_client.rb', line 4243

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



4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
# File 'lib/kaltura_client.rb', line 4257

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



4270
4271
4272
4273
4274
4275
4276
4277
4278
# File 'lib/kaltura_client.rb', line 4270

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



4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
# File 'lib/kaltura_client.rb', line 4282

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



4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
# File 'lib/kaltura_client.rb', line 4296

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