Class AbstractLogicalVolumeGroup

java.lang.Object
oshi.hardware.common.AbstractLogicalVolumeGroup
All Implemented Interfaces:
LogicalVolumeGroup

public class AbstractLogicalVolumeGroup extends Object implements LogicalVolumeGroup
  • Constructor Details

    • AbstractLogicalVolumeGroup

      protected AbstractLogicalVolumeGroup(String name, Map<String,Set<String>> lvMap, Set<String> pvSet)
      Parameters:
      name - Name of the volume group
      lvMap - Logical volumes derived from this volume group and the physical volumes its mapped to.
      pvSet - Set of physical volumes this volume group consists of.
  • Method Details

    • getName

      public String getName()
      Description copied from interface: LogicalVolumeGroup
      Gets the logical volume group name.
      Specified by:
      getName in interface LogicalVolumeGroup
      Returns:
      The name of the logical volume group.
    • getLogicalVolumes

      public Map<String,Set<String>> getLogicalVolumes()
      Description copied from interface: LogicalVolumeGroup
      Gets a map containing information about the logical volumes in the logical volume group, represented to the file system as block devices. The keyset for the map represents a collection of the logical volumes, while the values associated with these keys represent the physical volumes mapped to each logical volume (if known).
      Specified by:
      getLogicalVolumes in interface LogicalVolumeGroup
      Returns:
      A map with the logical volume names as the key, and a set of associated physical volume names as the value.
    • getPhysicalVolumes

      public Set<String> getPhysicalVolumes()
      Description copied from interface: LogicalVolumeGroup
      Gets a set of all physical volumes in this volume group.
      Specified by:
      getPhysicalVolumes in interface LogicalVolumeGroup
      Returns:
      A set with the names of the physical volumes.
    • toString

      public String toString()
      Overrides:
      toString in class Object