795796797798799800801802803804805
} if (!entry.isVacant()) { logger.info("Refusing to update VMM node "+ hostname+ " memory max while VMs are running"); throw new NodeInUseException(); } availMemory = memory; } boolean updated = this.db.updateResourcepoolEntry(hostname,
839840841842843844845846847848849
if (entry == null) { return false; } if (!entry.isVacant()) { throw new NodeInUseException("The VMM node "+ hostname + " is in use and cannot be removed from the pool"); } result = this.db.removeResourcepoolEntry(hostname);