/** * Set the parent directory where this replica is located * @param dir the parent directory where the replica is located */ public void setDir(File dir) { setDirInternal(dir); }
/** * Set the parent directory where this replica is located * @param dir the parent directory where the replica is located */ public void setDir(File dir) { setDirInternal(dir); }
/** * Constructor * @param blockId block id * @param len replica length * @param genStamp replica generation stamp * @param vol volume where replica is located * @param dir directory path where block and meta files are located */ ReplicaInfo(long blockId, long len, long genStamp, FsVolumeSpi vol, File dir) { super(blockId, len, genStamp); this.volume = vol; setDirInternal(dir); }
/** * Constructor * @param blockId block id * @param len replica length * @param genStamp replica generation stamp * @param vol volume where replica is located * @param dir directory path where block and meta files are located */ ReplicaInfo(long blockId, long len, long genStamp, FsVolumeSpi vol, File dir) { super(blockId, len, genStamp); this.volume = vol; setDirInternal(dir); }