/** * Returns the name of cluster for the object with the given name. * @param objectName a name of object * @return the name of cluster for a object with the given name * @throws IllegalArgumentException if none object has the given name */ public String getClusterName(final String objectName) throws IllegalArgumentException { try { return clusterViewManager.getClusterName(objectName); } catch (ObjectNotFoundException e) { LOGGER.error("Object not found: {0}", objectName, e); throw new IllegalArgumentException("Object not found: " + objectName + "\n" + e.getMessage()); } }