9949959969979989991000100110021003100410051006
if (info.getPool() != null) { b.setPool(info.getPool()); } Expiration expiry = info.getExpiration(); if (expiry != null) { assert (!expiry.isRelative()); b.setExpiration(PBHelper.convert(expiry)); } directives.add(b.build()); }
152153154155156157158159160161162
return limit; } private static Expiration parseExpirationString(String ttlString) throws IOException { Expiration ex = null; if (ttlString != null) { if (ttlString.equalsIgnoreCase("never")) { ex = CacheDirectiveInfo.Expiration.NEVER; } else { long ttl = DFSUtil.parseRelativeTime(ttlString);
234235236237238239240241242243244
builder.setReplication(replication); } String ttlString = StringUtils.popOptionWithArgument("-ttl", args); try { Expiration ex = parseExpirationString(ttlString); if (ex != null) { builder.setExpiration(ex); } } catch (IOException e) { System.err.println(
393394395396397398399400401402403
builder.setPool(poolName); modified = true; } String ttlString = StringUtils.popOptionWithArgument("-ttl", args); try { Expiration ex = parseExpirationString(ttlString); if (ex != null) { builder.setExpiration(ex); modified = true; } } catch (IOException e) {