private static List<SessionStatus> getEndStates() {
    List<SessionStatus> endStatesRet = new ArrayList<SessionStatus>();
    for (SessionStatus s : SessionStatus.values()) {
      if (s != SessionStatus.RUNNING) {
        endStatesRet.add(s);
      }
    }
    return endStatesRet;
  }
private static List < SessionStatus > getEndStates ( ) { List < SessionStatus > endStatesRet = new ArrayList < SessionStatus > ( ) ; for ( SessionStatus s : SessionStatus . values ( ) ) { if ( s != SessionStatus . RUNNING ) { endStatesRet . add ( s ) ; } } return endStatesRet ; }
Get all the possible end states (non running) of the session
@return The list of session status that are the non-running state