public final class StatusFactory extends Object
Modifier and Type | Method and Description |
---|---|
static Status |
cancelled(long lastActivity,
long duration) |
static Status |
disabled() |
static Status |
failed(long lastActivity,
long duration,
boolean promoted,
List<PromotionStatus> promotions) |
static Status |
idle() |
static Status |
notBuilt(long lastActivity,
long duration) |
static Status |
queued(long lastActivity) |
static Status |
running(int percentage,
long lastActivity,
long duration) |
static Status |
success(long lastActivity,
long duration,
boolean promoted,
List<PromotionStatus> promotions) |
static Status |
unstable(long lastActivity,
long duration) |
public static Status idle()
public static Status running(int percentage, long lastActivity, long duration)
public static Status queued(long lastActivity)
public static Status success(long lastActivity, long duration, boolean promoted, List<PromotionStatus> promotions)
public static Status failed(long lastActivity, long duration, boolean promoted, List<PromotionStatus> promotions)
public static Status unstable(long lastActivity, long duration)
public static Status cancelled(long lastActivity, long duration)
public static Status notBuilt(long lastActivity, long duration)
public static Status disabled()
Copyright © 2016–2020 Diabol AB. All rights reserved.