private void justWait(Facility facility, ExecService execService) { // we are gonna wait... log.debug( " ExecService to be put to sleep in schedulingPool: execService [" + execService.getId() + "]"); schedulingPool.addToPool(new Pair<ExecService, Facility>(execService, facility)); }
private void scheduleItAndWait(ExecService dependency, Facility facility, ExecService execService) throws InternalErrorException { // We are gonna propagate this dependency... propagateService(dependency, new Date(System.currentTimeMillis()), facility); // ...and wait... log.debug( " ExecService to be put to sleep in schedulingPool: execService [" + execService.getId() + "]"); schedulingPool.addToPool(new Pair<ExecService, Facility>(execService, facility)); }