Package oshi.hardware.common
Class AbstractLogicalVolumeGroup
java.lang.Object
oshi.hardware.common.AbstractLogicalVolumeGroup
- All Implemented Interfaces:
LogicalVolumeGroup
public class AbstractLogicalVolumeGroup extends java.lang.Object implements LogicalVolumeGroup
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractLogicalVolumeGroup(java.lang.String name, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> lvMap, java.util.Set<java.lang.String> pvSet) -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,java.util.Set<java.lang.String>>getLogicalVolumes()Gets a map containing information about the logical volumes in the logical volume group, represented to the file system as block devices.java.lang.StringgetName()Gets the logical volume group name.java.util.Set<java.lang.String>getPhysicalVolumes()Gets a set of all physical volumes in this volume group.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
AbstractLogicalVolumeGroup
protected AbstractLogicalVolumeGroup(java.lang.String name, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> lvMap, java.util.Set<java.lang.String> pvSet)- Parameters:
name- Name of the volume grouplvMap- 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 java.lang.String getName()Description copied from interface:LogicalVolumeGroupGets the logical volume group name.- Specified by:
getNamein interfaceLogicalVolumeGroup- Returns:
- The name of the logical volume group.
-
getLogicalVolumes
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getLogicalVolumes()Description copied from interface:LogicalVolumeGroupGets 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:
getLogicalVolumesin interfaceLogicalVolumeGroup- Returns:
- A map with the logical volume names as the key, and a set of associated physical volume names as the value.
-
getPhysicalVolumes
public java.util.Set<java.lang.String> getPhysicalVolumes()Description copied from interface:LogicalVolumeGroupGets a set of all physical volumes in this volume group.- Specified by:
getPhysicalVolumesin interfaceLogicalVolumeGroup- Returns:
- A set with the names of the physical volumes.
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-