Package org.apache.storm.scheduler.resource

## Class SchedulingResult

- java.lang.Object
- - org.apache.storm.scheduler.resource.SchedulingResult

-     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.

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | 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()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### failure

          public static SchedulingResult failure​(SchedulingStatus status,
                                                 String errorMessage)

    - #### success

          public static SchedulingResult success()

    - #### success

          public static SchedulingResult success​(String message)

    - #### getStatus

          public SchedulingStatus getStatus()

    - #### getMessage

          public String getMessage()

    - #### getErrorMessage

          public String getErrorMessage()

    - #### isSuccess

          public boolean isSuccess()

    - #### isFailure

          public boolean isFailure()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`