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
5395 5396 5397 |
# File 'lib/kaltura_types.rb', line 5395 def avg_wait @avg_wait end |
#avg_work ⇒ Object
Avarage time between queue time end finish time
5397 5398 5399 |
# File 'lib/kaltura_types.rb', line 5397 def avg_work @avg_work end |
#configs ⇒ Object
Array of the last configs
5391 5392 5393 |
# File 'lib/kaltura_types.rb', line 5391 def configs @configs end |
#configured_id ⇒ Object
The id as configured in the batch config
5377 5378 5379 |
# File 'lib/kaltura_types.rb', line 5377 def configured_id @configured_id end |
#id ⇒ Object
The id of the Worker
5375 5376 5377 |
# File 'lib/kaltura_types.rb', line 5375 def id @id end |
#last_status ⇒ Object
last status time
5399 5400 5401 |
# File 'lib/kaltura_types.rb', line 5399 def last_status @last_status end |
#last_status_str ⇒ Object
last status formated
5401 5402 5403 |
# File 'lib/kaltura_types.rb', line 5401 def last_status_str @last_status_str end |
#locked_jobs ⇒ Object
Array of jobs that locked to this worker
5393 5394 5395 |
# File 'lib/kaltura_types.rb', line 5393 def locked_jobs @locked_jobs end |
#name ⇒ Object
The scheduler name
5387 5388 5389 |
# File 'lib/kaltura_types.rb', line 5387 def name @name end |
#scheduler_configured_id ⇒ Object
The id of the scheduler as configured in the batch config
5381 5382 5383 |
# File 'lib/kaltura_types.rb', line 5381 def scheduler_configured_id @scheduler_configured_id end |
#scheduler_id ⇒ Object
The id of the Scheduler
5379 5380 5381 |
# File 'lib/kaltura_types.rb', line 5379 def scheduler_id @scheduler_id end |
#statuses ⇒ Object
Array of the last statuses
5389 5390 5391 |
# File 'lib/kaltura_types.rb', line 5389 def statuses @statuses end |
#type ⇒ Object
The worker type
5383 5384 5385 |
# File 'lib/kaltura_types.rb', line 5383 def type @type end |
#type_name ⇒ Object
The friendly name of the type
5385 5386 5387 |
# File 'lib/kaltura_types.rb', line 5385 def type_name @type_name end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 |
# File 'lib/kaltura_types.rb', line 5425 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 |