Package ome.io.nio
Class SimpleBackOff
- java.lang.Object
-
- ome.io.nio.SimpleBackOff
-
- All Implemented Interfaces:
BackOff
public class SimpleBackOff extends java.lang.Object implements BackOff
BasicBackOffimplementation which attempts several writes of the default block size on startup, and uses that as a scaling factor for all subsequent calculations.- Since:
- Beta4.3.1
- See Also:
- ticket 5910
-
-
Field Summary
Fields Modifier and Type Field Description protected intcountprotected longdefaultValueprotected longmaxPixelsprotected doublescalingFactorprotected TileSizessizesprotected doublewarmUpFactor
-
Constructor Summary
Constructors Constructor Description SimpleBackOff()SimpleBackOff(TileSizes sizes)SimpleBackOff(TileSizes sizes, long defaultValue, long maxPixels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doublecalculate()protected longcalculate(ome.model.core.Pixels pixels)protected intcountTiles(ome.model.core.Pixels pixels)intgetCount()doublegetScalingFactor()doublegetWarmUpFactor()voidthrowMissingPyramidException(java.lang.String msg, ome.model.core.Pixels pixels)java.lang.StringtoString()
-
-
-
Field Detail
-
scalingFactor
protected final double scalingFactor
-
warmUpFactor
protected final double warmUpFactor
-
count
protected final int count
-
sizes
protected final TileSizes sizes
-
maxPixels
protected final long maxPixels
-
defaultValue
protected final long defaultValue
-
-
Method Detail
-
getCount
public int getCount()
-
getScalingFactor
public double getScalingFactor()
-
getWarmUpFactor
public double getWarmUpFactor()
-
throwMissingPyramidException
public void throwMissingPyramidException(java.lang.String msg, ome.model.core.Pixels pixels)- Specified by:
throwMissingPyramidExceptionin interfaceBackOff
-
calculate
protected long calculate(ome.model.core.Pixels pixels)
-
countTiles
protected int countTiles(ome.model.core.Pixels pixels)
-
calculate
protected double calculate() throws java.lang.Exception- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-