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



5362
5363
5364
# File 'lib/kaltura_types.rb', line 5362

def avg_wait
  @avg_wait
end

#avg_workObject

Avarage time between queue time end finish time



5365
5366
5367
# File 'lib/kaltura_types.rb', line 5365

def avg_work
  @avg_work
end

#configsObject

Array of the last configs



5356
5357
5358
# File 'lib/kaltura_types.rb', line 5356

def configs
  @configs
end

#configured_idObject

The id as configured in the batch config



5335
5336
5337
# File 'lib/kaltura_types.rb', line 5335

def configured_id
  @configured_id
end

#idObject

The id of the Worker



5332
5333
5334
# File 'lib/kaltura_types.rb', line 5332

def id
  @id
end

#last_statusObject

last status time



5368
5369
5370
# File 'lib/kaltura_types.rb', line 5368

def last_status
  @last_status
end

#last_status_strObject

last status formated



5371
5372
5373
# File 'lib/kaltura_types.rb', line 5371

def last_status_str
  @last_status_str
end

#locked_jobsObject

Array of jobs that locked to this worker



5359
5360
5361
# File 'lib/kaltura_types.rb', line 5359

def locked_jobs
  @locked_jobs
end

#nameObject

The scheduler name



5350
5351
5352
# File 'lib/kaltura_types.rb', line 5350

def name
  @name
end

#scheduler_configured_idObject

The id of the scheduler as configured in the batch config



5341
5342
5343
# File 'lib/kaltura_types.rb', line 5341

def scheduler_configured_id
  @scheduler_configured_id
end

#scheduler_idObject

The id of the Scheduler



5338
5339
5340
# File 'lib/kaltura_types.rb', line 5338

def scheduler_id
  @scheduler_id
end

#statusesObject

Array of the last statuses



5353
5354
5355
# File 'lib/kaltura_types.rb', line 5353

def statuses
  @statuses
end

#typeObject

The worker type



5344
5345
5346
# File 'lib/kaltura_types.rb', line 5344

def type
  @type
end

#type_nameObject

The friendly name of the type



5347
5348
5349
# File 'lib/kaltura_types.rb', line 5347

def type_name
  @type_name
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
# File 'lib/kaltura_types.rb', line 5395

def from_xml(xml_element)
	super
	self.id = xml_element.elements['id'].text
	self.configured_id = xml_element.elements['configuredId'].text
	self.scheduler_id = xml_element.elements['schedulerId'].text
	self.scheduler_configured_id = xml_element.elements['schedulerConfiguredId'].text
	self.type = xml_element.elements['type'].text
	self.type_name = xml_element.elements['typeName'].text
	self.name = xml_element.elements['name'].text
	self.statuses = KalturaClientBase.object_from_xml(xml_element.elements['statuses'], 'KalturaSchedulerStatus')
	self.configs = KalturaClientBase.object_from_xml(xml_element.elements['configs'], 'KalturaSchedulerConfig')
	self.locked_jobs = KalturaClientBase.object_from_xml(xml_element.elements['lockedJobs'], 'KalturaBatchJob')
	self.avg_wait = xml_element.elements['avgWait'].text
	self.avg_work = xml_element.elements['avgWork'].text
	self.last_status = xml_element.elements['lastStatus'].text
	self.last_status_str = xml_element.elements['lastStatusStr'].text
end