@Override public Future<ActionFuture> execute() throws CouldNotPerformException { try { if (JPService.getProperty(JPResourceAllocation.class).getValue()) { return internalExecute().getTaskExecutor().getFuture(); } else { return internalExecuteWithoutResourceAllocation(); } } catch (JPNotAvailableException ex) { throw new CouldNotPerformException("Cold not execute action", ex); } }
return unitAllocation.getTaskExecutor().getFuture();
unitAllocation.getTaskExecutor().getRemote().addSchedulerListener((allocation) -> { try { LOGGER.info("Update Allocation - Scope:[" + ScopeGenerator.generateStringRep(unit.getScope()) + "] State: [" + allocation.getState() + "]");