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() |
Map<WorkerSlot,Collection<ExecutorDetails>> |
getSchedulingResultMap() |
SchedulingStatus |
getStatus() |
boolean |
isFailure() |
boolean |
isSuccess() |
boolean |
isValid() |
static SchedulingResult |
success(Map<WorkerSlot,Collection<ExecutorDetails>> schedulingResultMap) |
static SchedulingResult |
successWithMsg(Map<WorkerSlot,Collection<ExecutorDetails>> schedulingResultMap,
String message) |
String |
toString() |
public static SchedulingResult failure(SchedulingStatus status, String errorMessage)
public static SchedulingResult success(Map<WorkerSlot,Collection<ExecutorDetails>> schedulingResultMap)
public static SchedulingResult successWithMsg(Map<WorkerSlot,Collection<ExecutorDetails>> schedulingResultMap, String message)
public SchedulingStatus getStatus()
public String getMessage()
public String getErrorMessage()
public Map<WorkerSlot,Collection<ExecutorDetails>> getSchedulingResultMap()
public boolean isSuccess()
public boolean isFailure()
public boolean isValid()
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.