| Constructor and Description |
|---|
MoveStep()
Empty Constructor for JSON serialization.
|
MoveStep(DiskBalancerVolume sourceVolume,
double idealStorage,
DiskBalancerVolume destinationVolume,
long bytesToMove,
String volumeSetID)
Constructs a MoveStep for the volume set.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getBandwidth()
Gets the disk Bandwidth.
|
long |
getBytesToMove()
Returns number of bytes to move.
|
DiskBalancerVolume |
getDestinationVolume()
Gets the destination volume.
|
double |
getIdealStorage()
Gets the IdealStorage.
|
long |
getMaxDiskErrors()
Gets Maximum numbers of errors to be tolerated before this
move operation is aborted.
|
String |
getSizeString(long size)
Returns human readable move sizes.
|
DiskBalancerVolume |
getSourceVolume()
Gets Source Volume.
|
long |
getTolerancePercent()
Tolerance Percentage indicates when a move operation is considered good
enough.
|
String |
getVolumeSetID()
Gets a volume Set ID.
|
void |
setBandwidth(long bandwidth)
Sets the maximum disk bandwidth per sec to use for this step.
|
void |
setBytesToMove(long bytesToMove)
Sets bytes to move.
|
void |
setDestinationVolume(DiskBalancerVolume destinationVolume)
Sets destination volume.
|
void |
setIdealStorage(double idealStorage)
Sets Ideal Storage.
|
void |
setMaxDiskErrors(long maxDiskErrors)
Sets the maximum numbers of Errors to be tolerated before this
step is aborted.
|
void |
setSourceVolume(DiskBalancerVolume sourceVolume)
Set source volume.
|
void |
setTolerancePercent(long tolerancePercent)
Sets the tolerance percentage.
|
void |
setVolumeSetID(String volumeSetID)
Sets volume id.
|
String |
toString()
Returns a string representation of the object.
|
public MoveStep(DiskBalancerVolume sourceVolume, double idealStorage, DiskBalancerVolume destinationVolume, long bytesToMove, String volumeSetID)
sourceVolume - - Source DiskidealStorage - - Ideal Storage Value for this disk setdestinationVolume - - Destination disbytesToMove - - number of bytes to movevolumeSetID - - a diskBalancer generated id.public MoveStep()
public long getBytesToMove()
getBytesToMove in interface Steppublic DiskBalancerVolume getDestinationVolume()
getDestinationVolume in interface Steppublic double getIdealStorage()
getIdealStorage in interface Steppublic DiskBalancerVolume getSourceVolume()
getSourceVolume in interface Steppublic String getVolumeSetID()
getVolumeSetID in interface Steppublic void setSourceVolume(DiskBalancerVolume sourceVolume)
sourceVolume - - volumepublic void setDestinationVolume(DiskBalancerVolume destinationVolume)
destinationVolume - - volumepublic void setIdealStorage(double idealStorage)
idealStorage - - ideal Storagepublic void setBytesToMove(long bytesToMove)
bytesToMove - - number of bytespublic void setVolumeSetID(String volumeSetID)
volumeSetID - - volume IDpublic String toString()
public String getSizeString(long size)
getSizeString in interface Stepsize - - bytes being moved.public long getMaxDiskErrors()
getMaxDiskErrors in interface Steppublic void setMaxDiskErrors(long maxDiskErrors)
setMaxDiskErrors in interface StepmaxDiskErrors - - longpublic long getTolerancePercent()
getTolerancePercent in interface Steppublic void setTolerancePercent(long tolerancePercent)
setTolerancePercent in interface SteptolerancePercent - - longpublic long getBandwidth()
getBandwidth in interface Steppublic void setBandwidth(long bandwidth)
setBandwidth in interface Stepbandwidth - - Long, MB / Sec of data to be moved between
source and destinatin volume.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.