Class: Kaltura::KalturaMediaServerService

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

Overview

Manage media servers

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaMediaServerService

Returns a new instance of KalturaMediaServerService.



11383
11384
11385
# File 'lib/kaltura_client.rb', line 11383

def initialize(client)
	super(client)
end

Instance Method Details

#get(hostname) ⇒ Object

Get media server by hostname



11389
11390
11391
11392
11393
11394
11395
11396
11397
# File 'lib/kaltura_client.rb', line 11389

def get(hostname)
	kparams = {}
	client.add_param(kparams, 'hostname', hostname);
	client.queue_service_action_call('mediaserver', 'get', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#report_status(hostname, media_server_status) ⇒ Object

Update media server status



11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
# File 'lib/kaltura_client.rb', line 11401

def report_status(hostname, media_server_status)
	kparams = {}
	client.add_param(kparams, 'hostname', hostname);
	client.add_param(kparams, 'mediaServerStatus', media_server_status);
	client.queue_service_action_call('mediaserver', 'reportStatus', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end