Class Mount


  • @ThreadSafe
    public final class Mount
    extends java.lang.Object
    Utility to query mount
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String MOUNT_CMD  
      private static java.util.regex.Pattern MOUNT_PATTERN  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Mount()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.String> queryPartitionToMountMap()
      Query mount to map partitions to mount points
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MOUNT_PATTERN

        private static final java.util.regex.Pattern MOUNT_PATTERN
    • Constructor Detail

      • Mount

        private Mount()
    • Method Detail

      • queryPartitionToMountMap

        public static java.util.Map<java.lang.String,​java.lang.String> queryPartitionToMountMap()
        Query mount to map partitions to mount points
        Returns:
        A map with partitions as the key and mount points as the value