/** * @return whether the entity referenced by this uri is persisted to an underlying storage, * mutable */ public boolean isPersisted() { return mInfo.isPersisted(); }
.isPersisted()); .isPersisted()); .isPersisted());
private SetAttributePOptions verifySetState(TestUser user, String path, SetAttributePOptions options) throws Exception { try (Closeable r = new AuthenticatedUserRule(user.getUser(), ServerConfiguration.global()).toResource()) { mFileSystemMaster.setAttribute(new AlluxioURI(path), SetAttributeContext.defaults(options.toBuilder())); FileInfo fileInfo = mFileSystemMaster.getFileInfo(new AlluxioURI(path), GetStatusContext.defaults()); return FileSystemMasterOptions.setAttributesDefaults().toBuilder() .setPinned(fileInfo.isPinned()).setTtl(fileInfo.getTtl()) .setPersisted(fileInfo.isPersisted()).build(); } }
.setCreationTimeMs(fileInfo.getCreationTimeMs()).setCompleted(fileInfo.isCompleted()) .setFolder(fileInfo.isFolder()).setPinned(fileInfo.isPinned()) .setCacheable(fileInfo.isCacheable()).setPersisted(fileInfo.isPersisted()) .addAllBlockIds(fileInfo.getBlockIds()) .setLastModificationTimeMs(fileInfo.getLastModificationTimeMs()).setTtl(fileInfo.getTtl())
/** * @return whether the entity referenced by this uri is persisted to an underlying storage, * mutable */ public boolean isPersisted() { return mInfo.isPersisted(); }
Assert.assertEquals(a.isFolder(), b.isFolder()); Assert.assertEquals(a.isMountPoint(), b.isMountPoint()); Assert.assertEquals(a.isPersisted(), b.isPersisted()); Assert.assertEquals(a.isPinned(), b.isPinned()); Assert.assertEquals(a.getInAlluxioPercentage(), b.getInAlluxioPercentage());
/** * @return whether the entity referenced by this uri is persisted to an underlying storage, * mutable */ public boolean isPersisted() { return mInfo.isPersisted(); }
Assert.assertEquals(uriStatus.isCompleted(), fileInfo.isCompleted()); Assert.assertEquals(uriStatus.isFolder(), fileInfo.isFolder()); Assert.assertEquals(uriStatus.isPersisted(), fileInfo.isPersisted()); Assert.assertEquals(uriStatus.isPinned(), fileInfo.isPinned()); Assert.assertEquals(uriStatus.isMountPoint(), fileInfo.isMountPoint());