/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ package org.opensearch.ad.model; import java.util.List; import com.google.common.collect.ImmutableList; /** * AD task states. * */ public enum ADTaskState { CREATED, INIT, RUNNING, FAILED, STOPPED, FINISHED; public static List NOT_ENDED_STATES = ImmutableList .of(ADTaskState.CREATED.name(), ADTaskState.INIT.name(), ADTaskState.RUNNING.name()); }