Class FastestReadSpeedStrategy
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<DiskAllocationStrategy>
-
- org.jenkinsci.plugins.ewm.DiskAllocationStrategy
-
- org.jenkinsci.plugins.ewm.strategies.AbstractDiskSpeedStrategy
-
- org.jenkinsci.plugins.ewm.strategies.FastestReadSpeedStrategy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<DiskAllocationStrategy>
@Extension public class FastestReadSpeedStrategy extends AbstractDiskSpeedStrategy
Selects theDisk
with the highestDiskInfoProvider.readSpeed
.- Author:
- Alexandru Somai
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FastestReadSpeedStrategy.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description FastestReadSpeedStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getDiskSpeed(DiskInfoProvider diskInfo)
Override this method to return the speed property on which the selection should be made.void
setEstimatedWorkspaceSize(long estimatedWorkspaceSize)
Sets the estimated workspace size.-
Methods inherited from class org.jenkinsci.plugins.ewm.strategies.AbstractDiskSpeedStrategy
allocateDisk
-
Methods inherited from class org.jenkinsci.plugins.ewm.DiskAllocationStrategy
all, allDescriptors, getEstimatedWorkspaceSize, retrieveUsableSpaceInBytes, retrieveUsableSpaceInMegaBytes
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
setEstimatedWorkspaceSize
@DataBoundSetter public void setEstimatedWorkspaceSize(long estimatedWorkspaceSize)
Description copied from class:DiskAllocationStrategy
Sets the estimated workspace size. It must be set in MB.- Overrides:
setEstimatedWorkspaceSize
in classDiskAllocationStrategy
- Parameters:
estimatedWorkspaceSize
- the estimated workspace size in MB
-
getDiskSpeed
protected int getDiskSpeed(@Nonnull DiskInfoProvider diskInfo)
Description copied from class:AbstractDiskSpeedStrategy
Override this method to return the speed property on which the selection should be made.- Specified by:
getDiskSpeed
in classAbstractDiskSpeedStrategy
- Parameters:
diskInfo
- theDiskInfoProvider
that contains R/WDisk
speed- Returns:
- the value represented by the R/W speed
-
-