@kaltura-ng/kaltura-client
Version:
Kaltura Typescript client
54 lines • 2.7 kB
JavaScript
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { KalturaTypesFactory } from '../kaltura-types-factory';
import { KalturaBatchJobType } from './KalturaBatchJobType';
import { KalturaSchedulerStatus } from './KalturaSchedulerStatus';
import { KalturaSchedulerConfig } from './KalturaSchedulerConfig';
import { KalturaBatchJob } from './KalturaBatchJob';
import { KalturaObjectBase } from '../kaltura-object-base';
var KalturaSchedulerWorker = (function (_super) {
__extends(KalturaSchedulerWorker, _super);
function KalturaSchedulerWorker(data) {
var _this = _super.call(this, data) || this;
if (typeof _this.statuses === 'undefined')
_this.statuses = [];
if (typeof _this.configs === 'undefined')
_this.configs = [];
if (typeof _this.lockedJobs === 'undefined')
_this.lockedJobs = [];
return _this;
}
KalturaSchedulerWorker.prototype._getMetadata = function () {
var result = _super.prototype._getMetadata.call(this);
Object.assign(result.properties, {
objectType: { type: 'c', default: 'KalturaSchedulerWorker' },
id: { type: 'n', readOnly: true },
configuredId: { type: 'n' },
schedulerId: { type: 'n' },
schedulerConfiguredId: { type: 'n' },
type: { type: 'es', subTypeConstructor: KalturaBatchJobType, subType: 'KalturaBatchJobType' },
typeName: { type: 's' },
name: { type: 's' },
statuses: { type: 'a', subTypeConstructor: KalturaSchedulerStatus, subType: 'KalturaSchedulerStatus' },
configs: { type: 'a', subTypeConstructor: KalturaSchedulerConfig, subType: 'KalturaSchedulerConfig' },
lockedJobs: { type: 'a', subTypeConstructor: KalturaBatchJob, subType: 'KalturaBatchJob' },
avgWait: { type: 'n' },
avgWork: { type: 'n' },
lastStatus: { type: 'n' },
lastStatusStr: { type: 's' }
});
return result;
};
return KalturaSchedulerWorker;
}(KalturaObjectBase));
export { KalturaSchedulerWorker };
KalturaTypesFactory.registerType('KalturaSchedulerWorker', KalturaSchedulerWorker);
//# sourceMappingURL=KalturaSchedulerWorker.js.map