com.farao_community.farao.gridcapa.task_manager.api.TaskStatus Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2021, RTE (http://www.rte-france.com)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package com.farao_community.farao.gridcapa.task_manager.api;
/**
* @author Joris Mancini {@literal }
*/
public enum TaskStatus {
NOT_CREATED,
CREATED,
READY,
PENDING,
RUNNING,
INTERRUPTED,
SUCCESS,
STOPPING,
ERROR;
public boolean isOver() {
return this == SUCCESS || this == ERROR || this == INTERRUPTED;
}
}