Class: Kaltura::KalturaSchedulerWorker

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_types.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#avg_waitObject

Avarage time between creation and queue time



5614
5615
5616
# File 'lib/kaltura_types.rb', line 5614

def avg_wait
  @avg_wait
end

#avg_workObject

Avarage time between queue time end finish time



5616
5617
5618
# File 'lib/kaltura_types.rb', line 5616

def avg_work
  @avg_work
end

#configsObject

Array of the last configs



5610
5611
5612
# File 'lib/kaltura_types.rb', line 5610

def configs
  @configs
end

#configured_idObject

The id as configured in the batch config



5596
5597
5598
# File 'lib/kaltura_types.rb', line 5596

def configured_id
  @configured_id
end

#idObject

The id of the Worker



5594
5595
5596
# File 'lib/kaltura_types.rb', line 5594

def id
  @id
end

#last_statusObject

last status time



5618
5619
5620
# File 'lib/kaltura_types.rb', line 5618

def last_status
  @last_status
end

#last_status_strObject

last status formated



5620
5621
5622
# File 'lib/kaltura_types.rb', line 5620

def last_status_str
  @last_status_str
end

#locked_jobsObject

Array of jobs that locked to this worker



5612
5613
5614
# File 'lib/kaltura_types.rb', line 5612

def locked_jobs
  @locked_jobs
end

#nameObject

The scheduler name



5606
5607
5608
# File 'lib/kaltura_types.rb', line 5606

def name
  @name
end

#scheduler_configured_idObject

The id of the scheduler as configured in the batch config



5600
5601
5602
# File 'lib/kaltura_types.rb', line 5600

def scheduler_configured_id
  @scheduler_configured_id
end

#scheduler_idObject

The id of the Scheduler



5598
5599
5600
# File 'lib/kaltura_types.rb', line 5598

def scheduler_id
  @scheduler_id
end

#statusesObject

Array of the last statuses



5608
5609
5610
# File 'lib/kaltura_types.rb', line 5608

def statuses
  @statuses
end

#typeObject

The worker type



5602
5603
5604
# File 'lib/kaltura_types.rb', line 5602

def type
  @type
end

#type_nameObject

The friendly name of the type



5604
5605
5606
# File 'lib/kaltura_types.rb', line 5604

def type_name
  @type_name
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
# File 'lib/kaltura_types.rb', line 5644

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