@Test public void getStatus() throws Exception { mFs.getStatus(FILE); verifyGetStatusThroughRPC(FILE, 1); mFs.getStatus(FILE); verifyGetStatusThroughRPC(FILE, 1); }
@Override public URIStatus getStatus(AlluxioURI path, GetStatusPOptions options) throws FileDoesNotExistException, IOException, AlluxioException { checkUri(path); URIStatus status = mMetadataCache.get(path); if (status == null) { status = super.getStatus(path, options); mMetadataCache.put(path, status); } else if (options.getUpdateTimestamps()) { asyncUpdateFileAccessTime(path); } return status; }
MetadataCachingBaseFileSystem extends BaseFileSystem { @Override public URIStatus getStatus(AlluxioURI path, GetStatusPOptions options) throws FileDoesNotExistException, IOException, AlluxioException { checkUri(path); URIStatus status = mMetadataCache.get(path); if (status == null) { status = super.getStatus(path, options); mMetadataCache.put(path, status); } else if (options.getUpdateTimestamps()) { asyncUpdateFileAccessTime(path); } return status; } }
MetadataCachingBaseFileSystem extends BaseFileSystem { @Override public URIStatus getStatus(AlluxioURI path, GetStatusPOptions options) throws FileDoesNotExistException, IOException, AlluxioException { checkUri(path); URIStatus status = mMetadataCache.get(path); if (status == null) { status = super.getStatus(path, options); mMetadataCache.put(path, status); } else if (options.getUpdateTimestamps()) { asyncUpdateFileAccessTime(path); } return status; } MetadataCachingBaseFileSystem(FileSystemContext context); }
MetadataCachingBaseFileSystem extends BaseFileSystem { @Override public URIStatus getStatus(AlluxioURI path, GetStatusPOptions options) throws FileDoesNotExistException, IOException, AlluxioException { checkUri(path); URIStatus status = mMetadataCache.get(path); if (status == null) { status = super.getStatus(path, options); mMetadataCache.put(path, status); } else if (options.getUpdateTimestamps()) { asyncUpdateFileAccessTime(path); } return status; } MetadataCachingBaseFileSystem(FileSystemContext context); @Override URIStatus getStatus(AlluxioURI path, GetStatusPOptions options); @Override List<URIStatus> listStatus(AlluxioURI path, ListStatusPOptions options); @VisibleForTesting void asyncUpdateFileAccessTime(AlluxioURI path); @Override synchronized void close(); }
MetadataCachingBaseFileSystem extends BaseFileSystem { @Override public URIStatus getStatus(AlluxioURI path, GetStatusPOptions options) throws FileDoesNotExistException, IOException, AlluxioException { checkUri(path); URIStatus status = mMetadataCache.get(path); if (status == null) { status = super.getStatus(path, options); mMetadataCache.put(path, status); } else if (options.getUpdateTimestamps()) { asyncUpdateFileAccessTime(path); } return status; } MetadataCachingBaseFileSystem(FileSystemContext context); @Override URIStatus getStatus(AlluxioURI path, GetStatusPOptions options); @Override List<URIStatus> listStatus(AlluxioURI path, ListStatusPOptions options); @VisibleForTesting void asyncUpdateFileAccessTime(AlluxioURI path); @Override synchronized void close();  }