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



5302
5303
5304
# File 'lib/kaltura_types.rb', line 5302

def avg_wait
  @avg_wait
end

#avg_workObject

Avarage time between queue time end finish time



5304
5305
5306
# File 'lib/kaltura_types.rb', line 5304

def avg_work
  @avg_work
end

#configsObject

Array of the last configs



5298
5299
5300
# File 'lib/kaltura_types.rb', line 5298

def configs
  @configs
end

#configured_idObject

The id as configured in the batch config



5284
5285
5286
# File 'lib/kaltura_types.rb', line 5284

def configured_id
  @configured_id
end

#idObject

The id of the Worker



5282
5283
5284
# File 'lib/kaltura_types.rb', line 5282

def id
  @id
end

#last_statusObject

last status time



5306
5307
5308
# File 'lib/kaltura_types.rb', line 5306

def last_status
  @last_status
end

#last_status_strObject

last status formated



5308
5309
5310
# File 'lib/kaltura_types.rb', line 5308

def last_status_str
  @last_status_str
end

#locked_jobsObject

Array of jobs that locked to this worker



5300
5301
5302
# File 'lib/kaltura_types.rb', line 5300

def locked_jobs
  @locked_jobs
end

#nameObject

The scheduler name



5294
5295
5296
# File 'lib/kaltura_types.rb', line 5294

def name
  @name
end

#scheduler_configured_idObject

The id of the scheduler as configured in the batch config



5288
5289
5290
# File 'lib/kaltura_types.rb', line 5288

def scheduler_configured_id
  @scheduler_configured_id
end

#scheduler_idObject

The id of the Scheduler



5286
5287
5288
# File 'lib/kaltura_types.rb', line 5286

def scheduler_id
  @scheduler_id
end

#statusesObject

Array of the last statuses



5296
5297
5298
# File 'lib/kaltura_types.rb', line 5296

def statuses
  @statuses
end

#typeObject

The worker type



5290
5291
5292
# File 'lib/kaltura_types.rb', line 5290

def type
  @type
end

#type_nameObject

The friendly name of the type



5292
5293
5294
# File 'lib/kaltura_types.rb', line 5292

def type_name
  @type_name
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
# File 'lib/kaltura_types.rb', line 5332

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