Class FastestWriteSpeedStrategy
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<DiskAllocationStrategy>
-
- org.jenkinsci.plugins.ewm.DiskAllocationStrategy
-
- org.jenkinsci.plugins.ewm.strategies.AbstractDiskSpeedStrategy
-
- org.jenkinsci.plugins.ewm.strategies.FastestWriteSpeedStrategy
-
- All Implemented Interfaces:
ExtensionPoint,Describable<DiskAllocationStrategy>
@Extension public class FastestWriteSpeedStrategy extends AbstractDiskSpeedStrategy
Selects theDiskwith the highestDiskInfoProvider.writeSpeed.- Author:
- Alexandru Somai
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFastestWriteSpeedStrategy.DescriptorImpl-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description FastestWriteSpeedStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetDiskSpeed(DiskInfoProvider diskInfo)Override this method to return the speed property on which the selection should be made.voidsetEstimatedWorkspaceSize(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:DiskAllocationStrategySets the estimated workspace size. It must be set in MB.- Overrides:
setEstimatedWorkspaceSizein classDiskAllocationStrategy- Parameters:
estimatedWorkspaceSize- the estimated workspace size in MB
-
getDiskSpeed
protected int getDiskSpeed(@Nonnull DiskInfoProvider diskInfo)Description copied from class:AbstractDiskSpeedStrategyOverride this method to return the speed property on which the selection should be made.- Specified by:
getDiskSpeedin classAbstractDiskSpeedStrategy- Parameters:
diskInfo- theDiskInfoProviderthat contains R/WDiskspeed- Returns:
- the value represented by the R/W speed
-
-