src/app/tasks/model/task-execution.ts
Properties |
|
Methods |
|
constructor(executionId: number, exitCode: number, taskName: string, startTime: DateTime, endTime: DateTime, exitMessage: string, args: string[], jobExecutionIds: number[], errorMessage: string, externalExecutionId: string)
|
Defined in src/app/tasks/model/task-execution.ts:15
|
Static fromJSON | ||||||||
fromJSON(jsonItem: )
|
||||||||
Defined in src/app/tasks/model/task-execution.ts:39
|
||||||||
Parameters :
Returns :
TaskExecution
|
Static pageFromJSON | ||||||||
pageFromJSON(input: )
|
||||||||
Defined in src/app/tasks/model/task-execution.ts:53
|
||||||||
Parameters :
Returns :
Page<TaskExecution>
|
Public arguments |
arguments:
|
Type : string[]
|
Defined in src/app/tasks/model/task-execution.ts:12
|
Public endTime |
endTime:
|
Type : DateTime
|
Defined in src/app/tasks/model/task-execution.ts:10
|
Public errorMessage |
errorMessage:
|
Type : string
|
Defined in src/app/tasks/model/task-execution.ts:14
|
Public executionId |
executionId:
|
Type : number
|
Defined in src/app/tasks/model/task-execution.ts:6
|
Public exitCode |
exitCode:
|
Type : number
|
Defined in src/app/tasks/model/task-execution.ts:7
|
Public exitMessage |
exitMessage:
|
Type : string
|
Defined in src/app/tasks/model/task-execution.ts:11
|
Public externalExecutionId |
externalExecutionId:
|
Type : string
|
Defined in src/app/tasks/model/task-execution.ts:15
|
Public jobExecutionIds |
jobExecutionIds:
|
Type : number[]
|
Defined in src/app/tasks/model/task-execution.ts:13
|
Public startTime |
startTime:
|
Type : DateTime
|
Defined in src/app/tasks/model/task-execution.ts:9
|
Public taskName |
taskName:
|
Type : string
|
Defined in src/app/tasks/model/task-execution.ts:8
|
import { Page } from '../../shared/model/page';
import { DateTime } from 'luxon';
export class TaskExecution {
public executionId: number;
public exitCode: number;
public taskName: string;
public startTime: DateTime;
public endTime: DateTime;
public exitMessage: string;
public arguments: string[];
public jobExecutionIds: number[];
public errorMessage: string;
public externalExecutionId: string;
constructor(executionId: number,
exitCode: number,
taskName: string,
startTime: DateTime,
endTime: DateTime,
exitMessage: string,
args: string[], // arguments would be restricted name
jobExecutionIds: number[],
errorMessage: string,
externalExecutionId: string) {
this.executionId = executionId;
this.exitCode = exitCode;
this.taskName = taskName;
this.startTime = startTime;
this.endTime = endTime;
this.exitMessage = exitMessage;
this.arguments = args;
this.jobExecutionIds = jobExecutionIds;
this.errorMessage = errorMessage;
this.externalExecutionId = externalExecutionId;
}
static fromJSON(jsonItem): TaskExecution {
return new TaskExecution(
jsonItem.executionId,
jsonItem.exitCode,
jsonItem.taskName,
jsonItem.startTime ? DateTime.fromISO(jsonItem.startTime) : null,
jsonItem.endTime ? DateTime.fromISO(jsonItem.endTime) : null,
jsonItem.exitMessage,
jsonItem.arguments,
jsonItem.jobExecutionIds,
jsonItem.errorMessage,
jsonItem.externalExecutionId);
}
static pageFromJSON(input): Page<TaskExecution> {
const page = Page.fromJSON<TaskExecution>(input);
if (input && input._embedded && input._embedded.taskExecutionResourceList) {
page.items = input._embedded.taskExecutionResourceList.map(TaskExecution.fromJSON);
}
return page;
}
}