//ugh.
e.printStackTrace();
}
List addresses = parseAddresses(properties.getProperty("discoveryAddress", "localhost:12345"));
//is now parsed, create and populate the CacheAttributes.
CacheAttributes attributes = CacheAttributes.getDefaultCacheAttributes();
if (!distribute) {
attributes.setLocal();
}
attributes.setDefaultLogFileName(logFileName);
attributes.setCleanInterval(cleanInterval);
attributes.setDiskCacheSize(diskSize);
attributes.setDiskPath(diskPath);
attributes.setMaxObjects(maxObjects);
attributes.setMemoryCacheSize(maxSize);
this.version = version;
attributes.setLogger(logger);
Iterator iter = addresses.iterator();
while (iter.hasNext()) {
URL url = (URL) iter.next();
attributes.addCacheAddr(InetAddress.getByName(url.getHost()), url.getPort());
}
init(attributes);
}
}
} catch (IOException e) {