@Override public Request<RunnerStatus> stop(ProjectReference projectReference,long processId){
  List<DummyRunnerStatus> statuses=availableRunnerStatuses.get(projectReference.name());
  DummyRunnerStatus found=null;
  if (statuses != null && !statuses.isEmpty()) {
    for (    DummyRunnerStatus runnerStatus : statuses) {
      if (processId == runnerStatus.processId()) {
        found=runnerStatus;
      }
    }
  }
  if (found != null) {
    found.setStatus(RunnerState.STOPPED);
    List<DummyRunnerStatus> currents=currentRunnerStatuses.get(projectReference.name());
    if (currents != null) {
      currents.remove(found);
    }
  }
  return new DummyRequest<RunnerStatus>(found);
}

@ Override public Request < RunnerStatus > stop ( ProjectReference projectReference , long processId ) { List < DummyRunnerStatus > statuses = availableRunnerStatuses . get ( projectReference . name ( ) ) ; DummyRunnerStatus found = null ; if ( statuses != null && ! statuses . isEmpty ( ) ) { for ( DummyRunnerStatus runnerStatus : statuses ) { if ( processId == runnerStatus . processId ( ) ) { found = runnerStatus ; } } } if ( found != null ) { found . setStatus ( RunnerState . STOPPED ) ; List < DummyRunnerStatus > currents = currentRunnerStatuses . get ( projectReference . name ( ) ) ; if ( currents != null ) { currents . remove ( found ) ; } } return new DummyRequest < RunnerStatus > ( found ) ; }
stops the project runner with the given process id .
