/** * Set the hosts hosting this block */ public void setHosts(String[] hosts) throws IOException { if (hosts == null) { this.hosts = EMPTY_STR_ARRAY; } else { this.hosts = StringInterner.internStringsInArray(hosts); } }
/** * Set the hosts hosting a cached replica of this block */ public void setCachedHosts(String[] cachedHosts) { if (cachedHosts == null) { this.cachedHosts = EMPTY_STR_ARRAY; } else { this.cachedHosts = StringInterner.internStringsInArray(cachedHosts); } }
/** * Set the names (host:port) hosting this block */ public void setNames(String[] names) throws IOException { if (names == null) { this.names = EMPTY_STR_ARRAY; } else { this.names = StringInterner.internStringsInArray(names); } }
/** * Set the network topology paths of the hosts */ public void setTopologyPaths(String[] topologyPaths) throws IOException { if (topologyPaths == null) { this.topologyPaths = EMPTY_STR_ARRAY; } else { this.topologyPaths = StringInterner.internStringsInArray(topologyPaths); } }
public void setStorageIds(String[] storageIds) { if (storageIds == null) { this.storageIds = EMPTY_STR_ARRAY; } else { this.storageIds = StringInterner.internStringsInArray(storageIds); } }
this.names = EMPTY_STR_ARRAY; } else { this.names = StringInterner.internStringsInArray(names); this.hosts = StringInterner.internStringsInArray(hosts); this.cachedHosts = StringInterner.internStringsInArray(cachedHosts); this.topologyPaths = StringInterner.internStringsInArray(topologyPaths); this.storageIds = StringInterner.internStringsInArray(storageIds);