/** * Log a CacheDirectiveInfo returned from * {@link CacheManager#addDirective(CacheDirectiveInfo, FSPermissionChecker)} */ void logAddCacheDirectiveInfo(CacheDirectiveInfo directive, boolean toLogRpcIds) { AddCacheDirectiveInfoOp op = AddCacheDirectiveInfoOp.getInstance(cache.get()) .setDirective(directive); logRpcIds(op, toLogRpcIds); logEdit(op); }
inst.put(OP_ADD_BLOCK, new AddBlockOp()); inst.put(OP_ADD_CACHE_DIRECTIVE, new AddCacheDirectiveInfoOp()); inst.put(OP_MODIFY_CACHE_DIRECTIVE, new ModifyCacheDirectiveInfoOp());
inst.put(OP_ADD_BLOCK, new AddBlockOp()); inst.put(OP_ADD_CACHE_DIRECTIVE, new AddCacheDirectiveInfoOp()); inst.put(OP_MODIFY_CACHE_DIRECTIVE, new ModifyCacheDirectiveInfoOp());
@Override void readFields(DataInputStream in, int logVersion) throws IOException { directive = FSImageSerialization.readCacheDirectiveInfo(in); readRpcIds(in, logVersion); }
@Override void readFields(DataInputStream in, int logVersion) throws IOException { directive = FSImageSerialization.readCacheDirectiveInfo(in); readRpcIds(in, logVersion); }
@Override void fromXml(Stanza st) throws InvalidXmlException { directive = FSImageSerialization.readCacheDirectiveInfo(st); readRpcIdsFromXml(st); }
@Override void fromXml(Stanza st) throws InvalidXmlException { directive = FSImageSerialization.readCacheDirectiveInfo(st); readRpcIdsFromXml(st); }
/** * Log a CacheDirectiveInfo returned from * {@link CacheManager#addDirective(CacheDirectiveInfo, FSPermissionChecker)} */ void logAddCacheDirectiveInfo(CacheDirectiveInfo directive, boolean toLogRpcIds) { AddCacheDirectiveInfoOp op = AddCacheDirectiveInfoOp.getInstance(cache.get()) .setDirective(directive); logRpcIds(op, toLogRpcIds); logEdit(op); }
@Override void fromXml(Stanza st) throws InvalidXmlException { directive = FSImageSerialization.readCacheDirectiveInfo(st); readRpcIdsFromXml(st); }
@Override void readFields(DataInputStream in, int logVersion) throws IOException { directive = FSImageSerialization.readCacheDirectiveInfo(in); readRpcIds(in, logVersion); }
/** * Log a CacheDirectiveInfo returned from * {@link CacheManager#addDirective(CacheDirectiveInfo, FSPermissionChecker)} */ void logAddCacheDirectiveInfo(CacheDirectiveInfo directive, boolean toLogRpcIds) { AddCacheDirectiveInfoOp op = AddCacheDirectiveInfoOp.getInstance(cache.get()) .setDirective(directive); logRpcIds(op, toLogRpcIds); logEdit(op); }