All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.scattersphere.util.thread.JobExecutionResult Maven / Gradle / Ivy

The newest version!
/*
 * Scattersphere
 * Copyright 2014-2015, Scattersphere Project.
 *
 * 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 net.scattersphere.util.thread;

/**
 * This enumeration class identifies the result of a job during and after execution.  This is used as a way of identifying
 * the status of a job.
 *
 * Created by kenji on 12/28/14.
 */
public enum JobExecutionResult {

    /** Indicates that a job is available for execution. */
    AVAILABLE,

    /** Indicates that a job is current queued, and is dormant. */
    QUEUED,

    /** Indicates that a job is currently running. */
    RUNNING,

    /** Indicates that a job has completed. */
    COMPLETED,

    /** Indicates that a job was forcibly stopped. */
    STOPPED,

    /** Indicates that a job failed to complete. */
    FAILED

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy