// log.info("All networks have been successfully scanned and its assets detected. Now managing this information...\n");
// Long systemDelay = sendAssetService.sendAssets(false, vlan);//, "scan");
//
// boolean flag = true;
// if(systemDelay == null){
// flag = false;
// }else {
// flag = !Long.toString(systemDelay).equals(Long.toString(vlan.get(0).getDelay()));
// }
// if( flag ){
//
// futureTask.cancel(false);
// prevSystemDelay = vlan.get(0).getDelay();
//
//
// log.info("ATTENTION, a new execution delay has been set for this scanning process.\n--Previous: {} seconds.\n--New: {} seconds.\nNext iterations will use this new delay.\n", vlan.get(0).getDelay(), systemDelay);
//
// vlan.get(0).setDelay(systemDelay); // PONERSELO A TODOS
//
// /* At this point in the execution, it is guaranteed that the futureTask's thread has finished, so it is safely cancelled and we can schedule a new futureTask. */
log.info("ATTENTION, a new execution delay has been set for this scanning process.\n--Previous: {} seconds.\n--New: {} seconds.\nNext iterations will use this new delay.\n",vlan.get(0).getDelay(),systemDelay);
vlan.get(0).setDelay(systemDelay);// PONERSELO A TODOS
/* At this point in the execution, it is guaranteed that the futureTask's thread has finished, so it is safely cancelled and we can schedule a new futureTask. */