/** * @return the group that owns the entity referenced by this uri, mutable */ public String getGroup() { return mInfo.getGroup(); }
/** * @return the epoch time the entity referenced by this uri was last modified, mutable */ public long getLastModificationTimeMs() { return mInfo.getLastModificationTimeMs(); }
/** * For example for the uri: alluxio://host:1000/foo/bar/baz, baz is the name. * * @return the last path component of the entity referenced by this uri, mutable */ public String getName() { return mInfo.getName(); }
private static int compareLostWorkersWithTimes(int time1, int time2) { WorkerInfo.LastContactSecComparator comparator = new WorkerInfo.LastContactSecComparator(); WorkerInfo worker1 = createRandom(); WorkerInfo worker2 = createRandom(); worker1.setLastContactSec(time1); worker2.setLastContactSec(time2); return comparator.compare(worker1, worker2); }
/** * @return the uri of the under storage location of the entity referenced by this uri, mutable */ public String getUfsPath() { return mInfo.getUfsPath(); }
/** * @return the length in bytes of the file, 0 for directories, mutable */ public long getLength() { return mInfo.getLength(); }
/** * @return the owner of the entity referenced by this uri, mutable */ public String getOwner() { return mInfo.getOwner(); }
/** * @return whether the entity referenced by this uri is pinned, mutable */ public boolean isPinned() { return mInfo.isPinned(); }
/** * @return a list of block ids belonging to the file, empty for directories, immutable */ public List<Long> getBlockIds() { return mInfo.getBlockIds(); }
/** * @return the id of the mount of this file is mapped to */ public long getMountId() { return mInfo.getMountId(); }
/** * Creates a new instance of {@link Address} from proto representation. * * @param address the proto representation of a master address * @return the instance */ public static Address fromProto(alluxio.grpc.NetAddress address) { return new Address(address); }
/** * @return the percentage of blocks in Alluxio tier storage, mutable */ public int getInAlluxioPercentage() { return mInfo.getInAlluxioPercentage(); }
/** * @return the ufs fingerprint */ public String getUfsFingerprint() { return mInfo.getUfsFingerprint(); }
/** * Creates a new instance of {@link InconsistentProperty} from proto representation. * * @param inconsistentProperty the proto representation of an inconsistent property * @return the instance */ public static InconsistentProperty fromProto( alluxio.grpc.InconsistentProperty inconsistentProperty) { return new InconsistentProperty(inconsistentProperty); } }
/** * @return the default ACL entries for this path, mutable */ public DefaultAccessControlList getDefaultAcl() { return mInfo.getDefaultAcl(); }
/** * @return the percentage of blocks in Alluxio memory tier storage, mutable */ public int getInMemoryPercentage() { return mInfo.getInMemoryPercentage(); }
/** * @return the minimum number of replicas of the entity referenced by this uri, mutable */ public int getReplicationMin() { return mInfo.getReplicationMin(); }
/** * @return the list of file block descriptors */ public List<FileBlockInfo> getFileBlockInfos() { return mInfo.getFileBlockInfos(); }
/** * @return the maximum number of replicas of the entity referenced by this uri, mutable */ public int getReplicationMax() { return mInfo.getReplicationMax(); }
/** * @return whether the entity referenced by this uri is a mount point */ public boolean isMountPoint() { return mInfo.isMountPoint(); }