@Override public final void setAccessTime(long accessTime) { referred.setAccessTime(accessTime); }
/** * Set last access time of inode. */ public final INode setAccessTime(long accessTime, int latestSnapshotId, boolean skipCaptureAccessTimeOnlyChangeInSnapshot) { if (!skipCaptureAccessTimeOnlyChangeInSnapshot) { recordModification(latestSnapshotId); } setAccessTime(accessTime); return this; }
@Override public final void setAccessTime(long accessTime) { referred.setAccessTime(accessTime); }
@Override public final void setAccessTime(long accessTime) { referred.setAccessTime(accessTime); }
static boolean unprotectedSetTimes( FSDirectory fsd, INodesInPath iip, long mtime, long atime, boolean force) throws QuotaExceededException { assert fsd.hasWriteLock(); boolean status = false; INode inode = iip.getLastINode(); int latest = iip.getLatestSnapshotId(); if (mtime != -1) { inode = inode.setModificationTime(mtime, latest); status = true; } // if the last access time update was within the last precision interval, // then no need to store access time if (atime != -1 && (status || force || atime > inode.getAccessTime() + fsd.getAccessTimePrecision())) { inode.setAccessTime(atime, latest, fsd.getFSNamesystem().getSnapshotManager(). getSkipCaptureAccessTimeOnlyChange()); status = true; } return status; } }
protected void updateINode(PermissionStatus permissions, long mTime, long atime) { this.modificationTime = mTime; setAccessTime(atime); setPermissionStatus(permissions); }
/** * Set last access time of inode. */ public final INode setAccessTime(long accessTime, int latestSnapshotId) { recordModification(latestSnapshotId); setAccessTime(accessTime); return this; }
/** * Set last access time of inode. */ public final INode setAccessTime(long accessTime, int latestSnapshotId) { recordModification(latestSnapshotId); setAccessTime(accessTime); return this; }
INode(PermissionStatus permissions, long mTime, long atime) { this.name = null; this.parent = null; this.modificationTime = mTime; setAccessTime(atime); setPermissionStatus(permissions); }
INode(PermissionStatus permissions, long mTime, long atime) { this.name = null; this.parent = null; this.modificationTime = mTime; setAccessTime(atime); setPermissionStatus(permissions); }
private static boolean unprotectedSetTimes( FSDirectory fsd, INode inode, long mtime, long atime, boolean force, int latest) throws QuotaExceededException { assert fsd.hasWriteLock(); boolean status = false; if (mtime != -1) { inode = inode.setModificationTime(mtime, latest); status = true; } // if the last access time update was within the last precision interval, // then no need to store access time if (atime != -1 && (status || force || atime > inode.getAccessTime() + fsd.getFSNamesystem().getAccessTimePrecision())) { inode.setAccessTime(atime, latest); status = true; } return status; } }
private static boolean unprotectedSetTimes( FSDirectory fsd, INode inode, long mtime, long atime, boolean force, int latest) throws QuotaExceededException { assert fsd.hasWriteLock(); boolean status = false; if (mtime != -1) { inode = inode.setModificationTime(mtime, latest); status = true; } // if the last access time update was within the last precision interval, // then no need to store access time if (atime != -1 && (status || force || atime > inode.getAccessTime() + fsd.getFSNamesystem().getAccessTimePrecision())) { inode.setAccessTime(atime, latest); status = true; } return status; } }
/** copy constructor * * @param other Other node to be copied */ INode(INode other) { setLocalName(other.getLocalName()); this.parent = other.getParent(); setPermissionStatus(other.getPermissionStatus()); setModificationTime(other.getModificationTime()); setAccessTime(other.getAccessTime()); }
/** copy constructor * * @param other Other node to be copied */ INode(INode other) { setLocalName(other.getLocalName()); this.parent = other.getParent(); setPermissionStatus(other.getPermissionStatus()); setModificationTime(other.getModificationTime()); setAccessTime(other.getAccessTime()); }