public class DiskBalancerVolumeSet extends Object
| Constructor and Description | 
|---|
| DiskBalancerVolumeSet()Constructs Empty DiskNBalanceVolumeSet. | 
| DiskBalancerVolumeSet(boolean isTransient)Constructs a DiskBalancerVolumeSet. | 
| DiskBalancerVolumeSet(DiskBalancerVolumeSet volumeSet)Constructs a new DiskBalancerVolumeSet. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addVolume(DiskBalancerVolume volume)adds a given volume into this volume set. | 
| void | computeVolumeDataDensity()Computes Volume Data Density. | 
| double | getIdealUsed()Gets the idealUsed for this volume set. | 
| String | getSetID()Get Volume Set ID. | 
| TreeSet<DiskBalancerVolume> | getSortedQueue() | 
| String | getStorageType()Get Storage Type. | 
| int | getVolumeCount()Returns the number of volumes in the Volume Set. | 
| List<DiskBalancerVolume> | getVolumes()Returns a list diskVolumes that are part of this volume set. | 
| boolean | isBalancingNeeded(double thresholdPercentage)Computes whether we need to do any balancing on this volume Set at all. | 
| boolean | isTransient()Tells us if this volumeSet is transient. | 
| void | removeVolume(DiskBalancerVolume volume)Remove a volume from the current set. | 
| void | setSetID(String volID)Set VolumeSet ID. | 
| void | setStorageType(String typeOfStorage)Set Storage Type. | 
| void | setTransient(boolean transientValue)Set the transient properties for this volumeSet. | 
public DiskBalancerVolumeSet()
public DiskBalancerVolumeSet(boolean isTransient)
isTransient - - booleanpublic DiskBalancerVolumeSet(DiskBalancerVolumeSet volumeSet)
public boolean isTransient()
public void setTransient(boolean transientValue)
transientValue - - Booleanpublic void computeVolumeDataDensity()
public int getVolumeCount()
public String getStorageType()
public void setStorageType(String typeOfStorage)
typeOfStorage - -- StorageTypepublic void addVolume(DiskBalancerVolume volume) throws Exception
volume - - volume to add.Exceptionpublic List<DiskBalancerVolume> getVolumes()
public TreeSet<DiskBalancerVolume> getSortedQueue()
public boolean isBalancingNeeded(double thresholdPercentage)
thresholdPercentage - - threshold - in percentagepublic void removeVolume(DiskBalancerVolume volume)
volume - - Volume to removepublic String getSetID()
public void setSetID(String volID)
volID - Stringpublic double getIdealUsed()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.