Search in sources :

Example 6 with ExtendedTaskState

use of com.hubspot.singularity.ExtendedTaskState in project Singularity by HubSpot.

the class MesosUtils method fromTaskState.

public static ExtendedTaskState fromTaskState(TaskState taskState) {
    ExtendedTaskState extendedTaskState = map.get(taskState);
    Preconditions.checkArgument(extendedTaskState != null, "No ExtendedTaskState for TaskState %s", taskState);
    return extendedTaskState;
}
Also used : ExtendedTaskState(com.hubspot.singularity.ExtendedTaskState)

Aggregations

ExtendedTaskState (com.hubspot.singularity.ExtendedTaskState)6 SingularityTask (com.hubspot.singularity.SingularityTask)2 OrderDirection (com.hubspot.singularity.OrderDirection)1 SingularityCreateResult (com.hubspot.singularity.SingularityCreateResult)1 SingularityPendingDeploy (com.hubspot.singularity.SingularityPendingDeploy)1 SingularityRequestWithState (com.hubspot.singularity.SingularityRequestWithState)1 SingularityTaskHistoryQuery (com.hubspot.singularity.SingularityTaskHistoryQuery)1 SingularityTaskHistoryUpdate (com.hubspot.singularity.SingularityTaskHistoryUpdate)1 SingularityTaskIdHistory (com.hubspot.singularity.SingularityTaskIdHistory)1 SingularityTaskStatusHolder (com.hubspot.singularity.SingularityTaskStatusHolder)1 ApiOperation (com.wordnik.swagger.annotations.ApiOperation)1 Date (java.util.Date)1 HashSet (java.util.HashSet)1 List (java.util.List)1 GET (javax.ws.rs.GET)1 Path (javax.ws.rs.Path)1