/** * Updates a policy of load-balancing for a object with the given name. * @param objectName a name of object * @throws ObjectNotFoundException if none object has the given name * @throws PolicyFactoryException if the policy cannot be updated */ protected final void updatePolicy(final String objectName) throws ObjectNotFoundException, PolicyFactoryException { LOGGER.debug("Updating policy for {0}", objectName); PolicyFactory<CMIReference> policyFactory = new PolicyFactory<CMIReference>(this); IPolicy<CMIReference> policy = policyFactory.getPolicy(objectName); setPolicy(objectName, policy); }