Class: Kaltura::KalturaBatchJob

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

#abortObject

Returns the value of attribute abort.



1550
1551
1552
# File 'lib/kaltura_types.rb', line 1550

def abort
  @abort
end

#batch_indexObject

Returns the value of attribute batch_index.



1573
1574
1575
# File 'lib/kaltura_types.rb', line 1573

def batch_index
  @batch_index
end

#batch_versionObject

Returns the value of attribute batch_version.



1558
1559
1560
# File 'lib/kaltura_types.rb', line 1558

def batch_version
  @batch_version
end

#bulk_job_idObject

The id of the bulk upload job that initiated this job



1557
1558
1559
# File 'lib/kaltura_types.rb', line 1557

def bulk_job_id
  @bulk_job_id
end

#check_again_timeoutObject

Returns the value of attribute check_again_timeout.



1551
1552
1553
# File 'lib/kaltura_types.rb', line 1551

def check_again_timeout
  @check_again_timeout
end

#created_atObject

Returns the value of attribute created_at.



1538
1539
1540
# File 'lib/kaltura_types.rb', line 1538

def created_at
  @created_at
end

#dataObject

Returns the value of attribute data.



1548
1549
1550
# File 'lib/kaltura_types.rb', line 1548

def data
  @data
end

#dcObject

Returns the value of attribute dc.



1576
1577
1578
# File 'lib/kaltura_types.rb', line 1576

def dc
  @dc
end

#deleted_atObject

Returns the value of attribute deleted_at.



1540
1541
1542
# File 'lib/kaltura_types.rb', line 1540

def deleted_at
  @deleted_at
end

#descriptionObject

Returns the value of attribute description.



1553
1554
1555
# File 'lib/kaltura_types.rb', line 1553

def description
  @description
end

#entry_idObject

Returns the value of attribute entry_id.



1544
1545
1546
# File 'lib/kaltura_types.rb', line 1544

def entry_id
  @entry_id
end

#entry_nameObject

Returns the value of attribute entry_name.



1545
1546
1547
# File 'lib/kaltura_types.rb', line 1545

def entry_name
  @entry_name
end

#err_numberObject

Returns the value of attribute err_number.



1568
1569
1570
# File 'lib/kaltura_types.rb', line 1568

def err_number
  @err_number
end

#err_typeObject

Returns the value of attribute err_type.



1567
1568
1569
# File 'lib/kaltura_types.rb', line 1567

def err_type
  @err_type
end

#estimated_effortObject

Returns the value of attribute estimated_effort.



1569
1570
1571
# File 'lib/kaltura_types.rb', line 1569

def estimated_effort
  @estimated_effort
end

#execution_attemptsObject

Returns the value of attribute execution_attempts.



1542
1543
1544
# File 'lib/kaltura_types.rb', line 1542

def execution_attempts
  @execution_attempts
end

#finish_timeObject

The time that the job was finished or closed as failed



1566
1567
1568
# File 'lib/kaltura_types.rb', line 1566

def finish_time
  @finish_time
end

#historyObject

Returns the value of attribute history.



1555
1556
1557
# File 'lib/kaltura_types.rb', line 1555

def history
  @history
end

#idObject

Returns the value of attribute id.



1536
1537
1538
# File 'lib/kaltura_types.rb', line 1536

def id
  @id
end

#job_object_idObject

Returns the value of attribute job_object_id.



1577
1578
1579
# File 'lib/kaltura_types.rb', line 1577

def job_object_id
  @job_object_id
end

#job_object_typeObject

Returns the value of attribute job_object_type.



1578
1579
1580
# File 'lib/kaltura_types.rb', line 1578

def job_object_type
  @job_object_type
end

#job_sub_typeObject

Returns the value of attribute job_sub_type.



1547
1548
1549
# File 'lib/kaltura_types.rb', line 1547

def job_sub_type
  @job_sub_type
end

#job_typeObject

Returns the value of attribute job_type.



1546
1547
1548
# File 'lib/kaltura_types.rb', line 1546

def job_type
  @job_type
end

#last_scheduler_idObject

Returns the value of attribute last_scheduler_id.



1574
1575
1576
# File 'lib/kaltura_types.rb', line 1574

def last_scheduler_id
  @last_scheduler_id
end

#last_worker_idObject

Returns the value of attribute last_worker_id.



1575
1576
1577
# File 'lib/kaltura_types.rb', line 1575

def last_worker_id
  @last_worker_id
end

#lock_expirationObject

Returns the value of attribute lock_expiration.



1541
1542
1543
# File 'lib/kaltura_types.rb', line 1541

def lock_expiration
  @lock_expiration
end

#lock_versionObject

Returns the value of attribute lock_version.



1543
1544
1545
# File 'lib/kaltura_types.rb', line 1543

def lock_version
  @lock_version
end

#messageObject

Returns the value of attribute message.



1552
1553
1554
# File 'lib/kaltura_types.rb', line 1552

def message
  @message
end

#parent_job_idObject

When one job creates another - the parent should set this parentJobId to be its own id.



1560
1561
1562
# File 'lib/kaltura_types.rb', line 1560

def parent_job_id
  @parent_job_id
end

#partner_idObject

Returns the value of attribute partner_id.



1537
1538
1539
# File 'lib/kaltura_types.rb', line 1537

def partner_id
  @partner_id
end

#priorityObject

Returns the value of attribute priority.



1554
1555
1556
# File 'lib/kaltura_types.rb', line 1554

def priority
  @priority
end

#queue_timeObject

The time that the job was pulled from the queue



1564
1565
1566
# File 'lib/kaltura_types.rb', line 1564

def queue_time
  @queue_time
end

#root_job_idObject

The id of the root parent job



1562
1563
1564
# File 'lib/kaltura_types.rb', line 1562

def root_job_id
  @root_job_id
end

#scheduler_idObject

Returns the value of attribute scheduler_id.



1571
1572
1573
# File 'lib/kaltura_types.rb', line 1571

def scheduler_id
  @scheduler_id
end

#statusObject

Returns the value of attribute status.



1549
1550
1551
# File 'lib/kaltura_types.rb', line 1549

def status
  @status
end

#updated_atObject

Returns the value of attribute updated_at.



1539
1540
1541
# File 'lib/kaltura_types.rb', line 1539

def updated_at
  @updated_at
end

#urgencyObject

Returns the value of attribute urgency.



1570
1571
1572
# File 'lib/kaltura_types.rb', line 1570

def urgency
  @urgency
end

#worker_idObject

Returns the value of attribute worker_id.



1572
1573
1574
# File 'lib/kaltura_types.rb', line 1572

def worker_id
  @worker_id
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
# File 'lib/kaltura_types.rb', line 1671

def from_xml(xml_element)
	super
	if xml_element.elements['id'] != nil
		self.id = xml_element.elements['id'].text
	end
	if xml_element.elements['partnerId'] != nil
		self.partner_id = xml_element.elements['partnerId'].text
	end
	if xml_element.elements['createdAt'] != nil
		self.created_at = xml_element.elements['createdAt'].text
	end
	if xml_element.elements['updatedAt'] != nil
		self.updated_at = xml_element.elements['updatedAt'].text
	end
	if xml_element.elements['deletedAt'] != nil
		self.deleted_at = xml_element.elements['deletedAt'].text
	end
	if xml_element.elements['lockExpiration'] != nil
		self.lock_expiration = xml_element.elements['lockExpiration'].text
	end
	if xml_element.elements['executionAttempts'] != nil
		self.execution_attempts = xml_element.elements['executionAttempts'].text
	end
	if xml_element.elements['lockVersion'] != nil
		self.lock_version = xml_element.elements['lockVersion'].text
	end
	if xml_element.elements['entryId'] != nil
		self.entry_id = xml_element.elements['entryId'].text
	end
	if xml_element.elements['entryName'] != nil
		self.entry_name = xml_element.elements['entryName'].text
	end
	if xml_element.elements['jobType'] != nil
		self.job_type = xml_element.elements['jobType'].text
	end
	if xml_element.elements['jobSubType'] != nil
		self.job_sub_type = xml_element.elements['jobSubType'].text
	end
	if xml_element.elements['data'] != nil
		self.data = KalturaClientBase.object_from_xml(xml_element.elements['data'], 'KalturaJobData')
	end
	if xml_element.elements['status'] != nil
		self.status = xml_element.elements['status'].text
	end
	if xml_element.elements['abort'] != nil
		self.abort = xml_element.elements['abort'].text
	end
	if xml_element.elements['checkAgainTimeout'] != nil
		self.check_again_timeout = xml_element.elements['checkAgainTimeout'].text
	end
	if xml_element.elements['message'] != nil
		self.message = xml_element.elements['message'].text
	end
	if xml_element.elements['description'] != nil
		self.description = xml_element.elements['description'].text
	end
	if xml_element.elements['priority'] != nil
		self.priority = xml_element.elements['priority'].text
	end
	if xml_element.elements['history'] != nil
		self.history = KalturaClientBase.object_from_xml(xml_element.elements['history'], 'KalturaBatchHistoryData')
	end
	if xml_element.elements['bulkJobId'] != nil
		self.bulk_job_id = xml_element.elements['bulkJobId'].text
	end
	if xml_element.elements['batchVersion'] != nil
		self.batch_version = xml_element.elements['batchVersion'].text
	end
	if xml_element.elements['parentJobId'] != nil
		self.parent_job_id = xml_element.elements['parentJobId'].text
	end
	if xml_element.elements['rootJobId'] != nil
		self.root_job_id = xml_element.elements['rootJobId'].text
	end
	if xml_element.elements['queueTime'] != nil
		self.queue_time = xml_element.elements['queueTime'].text
	end
	if xml_element.elements['finishTime'] != nil
		self.finish_time = xml_element.elements['finishTime'].text
	end
	if xml_element.elements['errType'] != nil
		self.err_type = xml_element.elements['errType'].text
	end
	if xml_element.elements['errNumber'] != nil
		self.err_number = xml_element.elements['errNumber'].text
	end
	if xml_element.elements['estimatedEffort'] != nil
		self.estimated_effort = xml_element.elements['estimatedEffort'].text
	end
	if xml_element.elements['urgency'] != nil
		self.urgency = xml_element.elements['urgency'].text
	end
	if xml_element.elements['schedulerId'] != nil
		self.scheduler_id = xml_element.elements['schedulerId'].text
	end
	if xml_element.elements['workerId'] != nil
		self.worker_id = xml_element.elements['workerId'].text
	end
	if xml_element.elements['batchIndex'] != nil
		self.batch_index = xml_element.elements['batchIndex'].text
	end
	if xml_element.elements['lastSchedulerId'] != nil
		self.last_scheduler_id = xml_element.elements['lastSchedulerId'].text
	end
	if xml_element.elements['lastWorkerId'] != nil
		self.last_worker_id = xml_element.elements['lastWorkerId'].text
	end
	if xml_element.elements['dc'] != nil
		self.dc = xml_element.elements['dc'].text
	end
	if xml_element.elements['jobObjectId'] != nil
		self.job_object_id = xml_element.elements['jobObjectId'].text
	end
	if xml_element.elements['jobObjectType'] != nil
		self.job_object_type = xml_element.elements['jobObjectType'].text
	end
end