@Test public void getMountInfo() throws Exception { assumeTrue(OSUtils.isMacOS() || OSUtils.isLinux()); List<UnixMountInfo> info = ShellUtils.getUnixMountInfo(); assertTrue(info.size() > 0); }
public static List<UnixMountInfo> getUnixMountInfo() throws IOException { Preconditions.checkState(OSUtils.isLinux() || OSUtils.isMacOS()); String output = execCommand(MOUNT_COMMAND); List<UnixMountInfo> mountInfo = new ArrayList<>(); for (String line : output.split("\n")) { mountInfo.add(parseMountInfo(line)); } return mountInfo; }
ShellUtils { public static List<UnixMountInfo> getUnixMountInfo() throws IOException { Preconditions.checkState(OSUtils.isLinux() || OSUtils.isMacOS()); String output = execCommand(MOUNT_COMMAND); List<UnixMountInfo> mountInfo = new ArrayList<>(); for (String line : output.split("\n")) { mountInfo.add(parseMountInfo(line)); } return mountInfo; } }
ShellUtils { public static List<UnixMountInfo> getUnixMountInfo() throws IOException { Preconditions.checkState(OSUtils.isLinux() || OSUtils.isMacOS()); String output = execCommand(MOUNT_COMMAND); List<UnixMountInfo> mountInfo = new ArrayList<>(); for (String line : output.split("\n")) { mountInfo.add(parseMountInfo(line)); } return mountInfo; } private  ShellUtils(); }
ShellUtils { public static List<UnixMountInfo> getUnixMountInfo() throws IOException { Preconditions.checkState(OSUtils.isLinux() || OSUtils.isMacOS()); String output = execCommand(MOUNT_COMMAND); List<UnixMountInfo> mountInfo = new ArrayList<>(); for (String line : output.split("\n")) { mountInfo.add(parseMountInfo(line)); } return mountInfo; } private  ShellUtils(); static String[] getGroupsForUserCommand(final String user); static String[] getSetPermissionCommand(String perm, String filePath); static List<UnixMountInfo> getUnixMountInfo(); static UnixMountInfo parseMountInfo(String line); static boolean isMountingPoint(String path, String[] fsTypes); static boolean isAlluxioRunning(String className); static String execCommand(String... cmd); static CommandReturn execCommandWithOutput(String... cmd); static CommandReturn sshExecCommandWithOutput(String hostname, String... cmd); static CommandReturn scpCommandWithOutput(
          String hostname, String fromFile, String toFile, boolean isDir); static CommandReturn execCmdWithBackup(ShellCommand cmd, ShellCommand backupCmd); }
ShellUtils { public static List<UnixMountInfo> getUnixMountInfo() throws IOException { Preconditions.checkState(OSUtils.isLinux() || OSUtils.isMacOS()); String output = execCommand(MOUNT_COMMAND); List<UnixMountInfo> mountInfo = new ArrayList<>(); for (String line : output.split("\n")) { mountInfo.add(parseMountInfo(line)); } return mountInfo; } private  ShellUtils(); static String[] getGroupsForUserCommand(final String user); static String[] getSetPermissionCommand(String perm, String filePath); static List<UnixMountInfo> getUnixMountInfo(); static UnixMountInfo parseMountInfo(String line); static boolean isMountingPoint(String path, String[] fsTypes); static boolean isAlluxioRunning(String className); static String execCommand(String... cmd); static CommandReturn execCommandWithOutput(String... cmd); static CommandReturn sshExecCommandWithOutput(String hostname, String... cmd); static CommandReturn scpCommandWithOutput(
          String hostname, String fromFile, String toFile, boolean isDir); static CommandReturn execCmdWithBackup(ShellCommand cmd, ShellCommand backupCmd); static final String COMMON_SSH_OPTS; static final String SET_PERMISSION_COMMAND; static final String MOUNT_COMMAND; static final String TOKEN_SEPARATOR_REGEX; }