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 Step
public DiskBalancerVolume getDestinationVolume()
getDestinationVolume
in interface Step
public double getIdealStorage()
getIdealStorage
in interface Step
public DiskBalancerVolume getSourceVolume()
getSourceVolume
in interface Step
public String getVolumeSetID()
getVolumeSetID
in interface Step
public 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 Step
size
- - bytes being moved.public long getMaxDiskErrors()
getMaxDiskErrors
in interface Step
public void setMaxDiskErrors(long maxDiskErrors)
setMaxDiskErrors
in interface Step
maxDiskErrors
- - longpublic long getTolerancePercent()
getTolerancePercent
in interface Step
public void setTolerancePercent(long tolerancePercent)
setTolerancePercent
in interface Step
tolerancePercent
- - longpublic long getBandwidth()
getBandwidth
in interface Step
public void setBandwidth(long bandwidth)
setBandwidth
in interface Step
bandwidth
- - Long, MB / Sec of data to be moved between
source and destinatin volume.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.