/** * @param objectName a name of object * @return true if the object with the given name is replicated * @throws IllegalArgumentException if none object has the given name */ public boolean isReplicated(final String objectName) throws IllegalArgumentException { try { return clusterViewManager.isReplicated(objectName); } catch (ObjectNotFoundException e) { LOGGER.error("Object not found: {0}", objectName, e); throw new IllegalArgumentException("Object not found: " + objectName + "\n" + e.getMessage()); } }
if(!clusterViewManager.hasState(objectName) && !clusterViewManager.isReplicated(objectName)) {