
io.vertigo.orchestra.services.report.ActivityExecution Maven / Gradle / Ivy
/**
* vertigo - application development platform
*
* Copyright (C) 2013-2023, Vertigo.io, [email protected]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.vertigo.orchestra.services.report;
import java.io.Serializable;
import java.time.Instant;
import io.vertigo.core.lang.Assertion;
/**
* Representation of an activityExecution
* @author mlaroche
*
*/
public final class ActivityExecution implements Serializable {
/** SerialVersionUID. */
private static final long serialVersionUID = 1L;
private final Long aceId;
private final String label;
private final Instant beginTime;
private final Instant endTime;
private final Integer executionTime;
private final String status;
private final String workspaceIn;
private final String workspaceOut;
private final Boolean hasLogFile;
private final Boolean hasTechnicalLog;
/**
* Constructor.
* @param aceId if of activity execution
* @param label label of activity
* @param beginTime begin tume
* @param endTime end time
* @param executionTime execution time in seconds
* @param status status of activity
* @param workspaceIn the workspace as input parameter
* @param workspaceOut the workspace as output parameter
* @param hasLogFile if the activity has a logfile
* @param hasTechnicalLog of the activity has a technical logfile
*/
public ActivityExecution(
final Long aceId,
final String label,
final Instant beginTime,
final Instant endTime,
final Integer executionTime,
final String status,
final String workspaceIn,
final String workspaceOut,
final Boolean hasLogFile,
final Boolean hasTechnicalLog) {
Assertion.check().isNotNull(aceId);
// ---
this.aceId = aceId;
this.label = label;
this.beginTime = beginTime;
this.endTime = endTime;
this.executionTime = executionTime;
this.status = status;
this.workspaceIn = workspaceIn;
this.workspaceOut = workspaceOut;
this.hasLogFile = hasLogFile;
this.hasTechnicalLog = hasTechnicalLog;
}
public Long getAceId() {
return aceId;
}
public String getLabel() {
return label;
}
public Instant getBeginTime() {
return beginTime;
}
public Instant getEndTime() {
return endTime;
}
public Integer getExecutionTime() {
return executionTime;
}
public String getStatus() {
return status;
}
public String getWorkspaceIn() {
return workspaceIn;
}
public String getWorkspaceOut() {
return workspaceOut;
}
public Boolean getHasLogFile() {
return hasLogFile;
}
public Boolean getHasTechnicalLog() {
return hasTechnicalLog;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy