public class DiskBalancerVolumeSet
extends java.lang.Object
| Constructor | Description |
|---|---|
DiskBalancerVolumeSet() |
Constructs Empty DiskNBalanceVolumeSet.
|
DiskBalancerVolumeSet(boolean isTransient) |
Constructs a DiskBalancerVolumeSet.
|
DiskBalancerVolumeSet(DiskBalancerVolumeSet volumeSet) |
Constructs a new DiskBalancerVolumeSet.
|
| Modifier and Type | Method | 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.
|
java.lang.String |
getSetID() |
Get Volume Set ID.
|
java.util.TreeSet<DiskBalancerVolume> |
getSortedQueue() |
|
java.lang.String |
getStorageType() |
Get Storage Type.
|
int |
getVolumeCount() |
Returns the number of volumes in the Volume Set.
|
java.util.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(java.lang.String volID) |
Set VolumeSet ID.
|
void |
setStorageType(java.lang.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 java.lang.String getStorageType()
public void setStorageType(java.lang.String typeOfStorage)
typeOfStorage - -- StorageTypepublic void addVolume(DiskBalancerVolume volume) throws java.lang.Exception
volume - - volume to add.java.lang.Exceptionpublic java.util.List<DiskBalancerVolume> getVolumes()
public java.util.TreeSet<DiskBalancerVolume> getSortedQueue()
public boolean isBalancingNeeded(double thresholdPercentage)
thresholdPercentage - - threshold - in percentagepublic void removeVolume(DiskBalancerVolume volume)
volume - - Volume to removepublic java.lang.String getSetID()
public void setSetID(java.lang.String volID)
volID - Stringpublic double getIdealUsed()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.