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
BasicBackOff
implementation 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 int
count
protected long
defaultValue
protected long
maxPixels
protected double
scalingFactor
protected TileSizes
sizes
protected double
warmUpFactor
-
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 double
calculate()
protected long
calculate(ome.model.core.Pixels pixels)
protected int
countTiles(ome.model.core.Pixels pixels)
int
getCount()
double
getScalingFactor()
double
getWarmUpFactor()
void
throwMissingPyramidException(java.lang.String msg, ome.model.core.Pixels pixels)
java.lang.String
toString()
-
-
-
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:
throwMissingPyramidException
in 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:
toString
in classjava.lang.Object
-
-