
io.vertigo.orchestra.services.report.ExecutionSummary 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;
public final class ExecutionSummary implements Serializable {
/** SerialVersionUID. */
private static final long serialVersionUID = 1L;
private final Long proId;
private final String processName;
private final String processLabel;
private final Instant lastExecutionTime;
private final Instant nextExecutionTime;
private final Integer errorsCount;
private final Integer misfiredCount;
private final Integer successfulCount;
private final Integer runningCount;
private final Integer averageExecutionTime;
private final String health;
/**
* Constructor.
* @param proId id of process
* @param processName name of process
* @param processLabel label of process
* @param lastExecutionTime time of last execution
* @param nextExecutionTime time of next planification
* @param errorsCount number of errors
* @param misfiredCount number of misfired planifications
* @param successfulCount number of success
* @param runningCount number of running
* @param averageExecutionTime average execution time in seconds
* @param health health status of the process
*/
public ExecutionSummary(
final Long proId,
final String processName,
final String processLabel,
final Instant lastExecutionTime,
final Instant nextExecutionTime,
final Integer errorsCount,
final Integer misfiredCount,
final Integer successfulCount,
final Integer runningCount,
final Integer averageExecutionTime,
final String health) {
this.proId = proId;
Assertion.check()
.isNotNull(proId)
.isNotNull(processName);
// ---
this.processName = processName;
this.processLabel = processLabel;
this.lastExecutionTime = lastExecutionTime;
this.nextExecutionTime = nextExecutionTime;
this.errorsCount = errorsCount;
this.misfiredCount = misfiredCount;
this.successfulCount = successfulCount;
this.runningCount = runningCount;
this.averageExecutionTime = averageExecutionTime;
this.health = health;
}
public Long getProId() {
return proId;
}
public String getProcessName() {
return processName;
}
public String getProcessLabel() {
return processLabel;
}
public Instant getLastExecutionTime() {
return lastExecutionTime;
}
public Instant getNextExecutionTime() {
return nextExecutionTime;
}
public Integer getErrorsCount() {
return errorsCount;
}
public Integer getMisfiredCount() {
return misfiredCount;
}
public Integer getSuccessfulCount() {
return successfulCount;
}
public Integer getRunningCount() {
return runningCount;
}
public Integer getAverageExecutionTime() {
return averageExecutionTime;
}
public String getHealth() {
return health;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy