Class: Kaltura::KalturaSystemService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaSystemService
- Defined in:
- lib/kaltura_client.rb
Overview
System service is used for internal system helpers & to retrieve system level information
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
- #get_time ⇒ int
- #get_version ⇒ string
-
#initialize(client) ⇒ KalturaSystemService
constructor
A new instance of KalturaSystemService.
- #ping ⇒ bool
- #ping_database ⇒ bool
Constructor Details
#initialize(client) ⇒ KalturaSystemService
Returns a new instance of KalturaSystemService.
4632 4633 4634 |
# File 'lib/kaltura_client.rb', line 4632 def initialize(client) super(client) end |
Instance Method Details
#get_time ⇒ int
4637 4638 4639 4640 4641 4642 4643 4644 |
# File 'lib/kaltura_client.rb', line 4637 def get_time() kparams = {} client.queue_service_action_call('system', 'getTime', 'int', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get_version ⇒ string
4647 4648 4649 4650 4651 4652 4653 4654 |
# File 'lib/kaltura_client.rb', line 4647 def get_version() kparams = {} client.queue_service_action_call('system', 'getVersion', 'string', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#ping ⇒ bool
4657 4658 4659 4660 4661 4662 4663 4664 |
# File 'lib/kaltura_client.rb', line 4657 def ping() kparams = {} client.queue_service_action_call('system', 'ping', 'bool', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#ping_database ⇒ bool
4667 4668 4669 4670 4671 4672 4673 4674 |
# File 'lib/kaltura_client.rb', line 4667 def ping_database() kparams = {} client.queue_service_action_call('system', 'pingDatabase', 'bool', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |