@Override void fromXml(Stanza st) throws InvalidXmlException { this.path = st.getValue("PATH"); this.clientName = st.getValue("CLIENT_NAME"); this.clientMachine = st.getValue("CLIENT_MACHINE"); this.newBlock = Boolean.parseBoolean(st.getValue("NEWBLOCK")); readRpcIdsFromXml(st); } }
inst.put(OP_REMOVE_XATTR, new RemoveXAttrOp()); inst.put(OP_SET_STORAGE_POLICY, new SetStoragePolicyOp()); inst.put(OP_APPEND, new AppendOp()); inst.put(OP_SET_QUOTA_BY_STORAGETYPE, new SetQuotaByStorageTypeOp());
inst.put(OP_REMOVE_XATTR, new RemoveXAttrOp()); inst.put(OP_SET_STORAGE_POLICY, new SetStoragePolicyOp()); inst.put(OP_APPEND, new AppendOp()); inst.put(OP_SET_QUOTA_BY_STORAGETYPE, new SetQuotaByStorageTypeOp());
public void logAppendFile(String path, INodeFile file, boolean newBlock, boolean toLogRpcIds) { FileUnderConstructionFeature uc = file.getFileUnderConstructionFeature(); assert uc != null; AppendOp op = AppendOp.getInstance(cache.get()).setPath(path) .setClientName(uc.getClientName()) .setClientMachine(uc.getClientMachine()) .setNewBlock(newBlock); logRpcIds(op, toLogRpcIds); logEdit(op); }
public void logAppendFile(String path, INodeFile file, boolean newBlock, boolean toLogRpcIds) { FileUnderConstructionFeature uc = file.getFileUnderConstructionFeature(); assert uc != null; AppendOp op = AppendOp.getInstance(cache.get()).setPath(path) .setClientName(uc.getClientName()) .setClientMachine(uc.getClientMachine()) .setNewBlock(newBlock); logRpcIds(op, toLogRpcIds); logEdit(op); }
@Override void fromXml(Stanza st) throws InvalidXmlException { this.path = st.getValue("PATH"); this.clientName = st.getValue("CLIENT_NAME"); this.clientMachine = st.getValue("CLIENT_MACHINE"); this.newBlock = Boolean.parseBoolean(st.getValue("NEWBLOCK")); readRpcIdsFromXml(st); } }
@Override void readFields(DataInputStream in, int logVersion) throws IOException { this.path = FSImageSerialization.readString(in); this.clientName = FSImageSerialization.readString(in); this.clientMachine = FSImageSerialization.readString(in); this.newBlock = FSImageSerialization.readBoolean(in); readRpcIds(in, logVersion); }
@Override void readFields(DataInputStream in, int logVersion) throws IOException { this.path = FSImageSerialization.readString(in); this.clientName = FSImageSerialization.readString(in); this.clientMachine = FSImageSerialization.readString(in); this.newBlock = FSImageSerialization.readBoolean(in); readRpcIds(in, logVersion); }
@Override void fromXml(Stanza st) throws InvalidXmlException { this.path = st.getValue("PATH"); this.clientName = st.getValue("CLIENT_NAME"); this.clientMachine = st.getValue("CLIENT_MACHINE"); this.newBlock = Boolean.parseBoolean(st.getValue("NEWBLOCK")); readRpcIdsFromXml(st); } }
@Override void readFields(DataInputStream in, int logVersion) throws IOException { this.path = FSImageSerialization.readString(in); this.clientName = FSImageSerialization.readString(in); this.clientMachine = FSImageSerialization.readString(in); this.newBlock = FSImageSerialization.readBoolean(in); readRpcIds(in, logVersion); }
public void logAppendFile(String path, INodeFile file, boolean newBlock, boolean toLogRpcIds) { FileUnderConstructionFeature uc = file.getFileUnderConstructionFeature(); assert uc != null; AppendOp op = AppendOp.getInstance(cache.get()).setPath(path) .setClientName(uc.getClientName()) .setClientMachine(uc.getClientMachine()) .setNewBlock(newBlock); logRpcIds(op, toLogRpcIds); logEdit(op); }