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)); }
@Override public boolean isExecServiceDeniedOnDestination(ExecService execService, int destination) throws InternalErrorException { return execServiceDenialDao.isExecServiceDeniedOnDestination(execService.getId(), destination); }
@Override public boolean isExecServiceDeniedOnFacility(ExecService execService, Facility facility) throws InternalErrorException { return execServiceDenialDao.isExecServiceDeniedOnFacility( execService.getId(), facility.getId()); }