public class SchedulingResult extends Object
This class serves as a mechanism to return results and messages from a scheduling strategy to the Resource Aware Scheduler.
Modifier and Type | Method and Description |
---|---|
static SchedulingResult |
failure(SchedulingStatus status,
String errorMessage) |
String |
getErrorMessage() |
String |
getMessage() |
SchedulingStatus |
getStatus() |
boolean |
isFailure() |
boolean |
isSuccess() |
static SchedulingResult |
success() |
static SchedulingResult |
success(String message) |
String |
toString() |
public static SchedulingResult failure(SchedulingStatus status, String errorMessage)
public static SchedulingResult success()
public static SchedulingResult success(String message)
public SchedulingStatus getStatus()
public String getMessage()
public String getErrorMessage()
public boolean isSuccess()
public boolean isFailure()
Copyright © 2022 The Apache Software Foundation. All rights reserved.