Package ome.io.nio

Class SimpleBackOff

  • All Implemented Interfaces:
    BackOff

    public class SimpleBackOff
    extends java.lang.Object
    implements BackOff
    Basic BackOff 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 Detail

      • scalingFactor

        protected final double scalingFactor
      • warmUpFactor

        protected final double warmUpFactor
      • count

        protected final int count
      • maxPixels

        protected final long maxPixels
      • defaultValue

        protected final long defaultValue
    • Constructor Detail

      • SimpleBackOff

        public SimpleBackOff()
      • SimpleBackOff

        public SimpleBackOff​(TileSizes sizes)
      • SimpleBackOff

        public SimpleBackOff​(TileSizes sizes,
                             long defaultValue,
                             long maxPixels)
    • 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 interface BackOff
      • 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 class java.lang.Object