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.
4634 4635 4636 |
# File 'lib/kaltura_client.rb', line 4634 def initialize(client) super(client) end |
Instance Method Details
#get_time ⇒ int
4639 4640 4641 4642 4643 4644 4645 4646 |
# File 'lib/kaltura_client.rb', line 4639 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
4649 4650 4651 4652 4653 4654 4655 4656 |
# File 'lib/kaltura_client.rb', line 4649 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
4659 4660 4661 4662 4663 4664 4665 4666 |
# File 'lib/kaltura_client.rb', line 4659 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
4669 4670 4671 4672 4673 4674 4675 4676 |
# File 'lib/kaltura_client.rb', line 4669 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 |