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