Class: Kaltura::KalturaSchedulerWorker
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaSchedulerWorker
- Defined in:
- lib/kaltura_types.rb
Instance Attribute Summary collapse
-
#avg_wait ⇒ Object
Avarage time between creation and queue time.
-
#avg_work ⇒ Object
Avarage time between queue time end finish time.
-
#configs ⇒ Object
Array of the last configs.
-
#configured_id ⇒ Object
The id as configured in the batch config.
-
#id ⇒ Object
The id of the Worker.
-
#last_status ⇒ Object
last status time.
-
#last_status_str ⇒ Object
last status formated.
-
#locked_jobs ⇒ Object
Array of jobs that locked to this worker.
-
#name ⇒ Object
The scheduler name.
-
#scheduler_configured_id ⇒ Object
The id of the scheduler as configured in the batch config.
-
#scheduler_id ⇒ Object
The id of the Scheduler.
-
#statuses ⇒ Object
Array of the last statuses.
-
#type ⇒ Object
The worker type.
-
#type_name ⇒ Object
The friendly name of the type.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#avg_wait ⇒ Object
Avarage time between creation and queue time
5640 5641 5642 |
# File 'lib/kaltura_types.rb', line 5640 def avg_wait @avg_wait end |
#avg_work ⇒ Object
Avarage time between queue time end finish time
5642 5643 5644 |
# File 'lib/kaltura_types.rb', line 5642 def avg_work @avg_work end |
#configs ⇒ Object
Array of the last configs
5636 5637 5638 |
# File 'lib/kaltura_types.rb', line 5636 def configs @configs end |
#configured_id ⇒ Object
The id as configured in the batch config
5622 5623 5624 |
# File 'lib/kaltura_types.rb', line 5622 def configured_id @configured_id end |
#id ⇒ Object
The id of the Worker
5620 5621 5622 |
# File 'lib/kaltura_types.rb', line 5620 def id @id end |
#last_status ⇒ Object
last status time
5644 5645 5646 |
# File 'lib/kaltura_types.rb', line 5644 def last_status @last_status end |
#last_status_str ⇒ Object
last status formated
5646 5647 5648 |
# File 'lib/kaltura_types.rb', line 5646 def last_status_str @last_status_str end |
#locked_jobs ⇒ Object
Array of jobs that locked to this worker
5638 5639 5640 |
# File 'lib/kaltura_types.rb', line 5638 def locked_jobs @locked_jobs end |
#name ⇒ Object
The scheduler name
5632 5633 5634 |
# File 'lib/kaltura_types.rb', line 5632 def name @name end |
#scheduler_configured_id ⇒ Object
The id of the scheduler as configured in the batch config
5626 5627 5628 |
# File 'lib/kaltura_types.rb', line 5626 def scheduler_configured_id @scheduler_configured_id end |
#scheduler_id ⇒ Object
The id of the Scheduler
5624 5625 5626 |
# File 'lib/kaltura_types.rb', line 5624 def scheduler_id @scheduler_id end |
#statuses ⇒ Object
Array of the last statuses
5634 5635 5636 |
# File 'lib/kaltura_types.rb', line 5634 def statuses @statuses end |
#type ⇒ Object
The worker type
5628 5629 5630 |
# File 'lib/kaltura_types.rb', line 5628 def type @type end |
#type_name ⇒ Object
The friendly name of the type
5630 5631 5632 |
# File 'lib/kaltura_types.rb', line 5630 def type_name @type_name end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 |
# File 'lib/kaltura_types.rb', line 5670 def from_xml(xml_element) super if xml_element.elements['id'] != nil self.id = xml_element.elements['id'].text end if xml_element.elements['configuredId'] != nil self.configured_id = xml_element.elements['configuredId'].text end if xml_element.elements['schedulerId'] != nil self.scheduler_id = xml_element.elements['schedulerId'].text end if xml_element.elements['schedulerConfiguredId'] != nil self.scheduler_configured_id = xml_element.elements['schedulerConfiguredId'].text end if xml_element.elements['type'] != nil self.type = xml_element.elements['type'].text end if xml_element.elements['typeName'] != nil self.type_name = xml_element.elements['typeName'].text end if xml_element.elements['name'] != nil self.name = xml_element.elements['name'].text end if xml_element.elements['statuses'] != nil self.statuses = KalturaClientBase.object_from_xml(xml_element.elements['statuses'], 'KalturaSchedulerStatus') end if xml_element.elements['configs'] != nil self.configs = KalturaClientBase.object_from_xml(xml_element.elements['configs'], 'KalturaSchedulerConfig') end if xml_element.elements['lockedJobs'] != nil self.locked_jobs = KalturaClientBase.object_from_xml(xml_element.elements['lockedJobs'], 'KalturaBatchJob') end if xml_element.elements['avgWait'] != nil self.avg_wait = xml_element.elements['avgWait'].text end if xml_element.elements['avgWork'] != nil self.avg_work = xml_element.elements['avgWork'].text end if xml_element.elements['lastStatus'] != nil self.last_status = xml_element.elements['lastStatus'].text end if xml_element.elements['lastStatusStr'] != nil self.last_status_str = xml_element.elements['lastStatusStr'].text end end |