Package ome.services

Class RawPixelsBean

  • All Implemented Interfaces:
    java.io.Serializable, ome.api.RawPixelsStore, ome.api.ServiceInterface, ome.api.StatefulServiceInterface, ome.system.SelfConfigurableService
    Direct Known Subclasses:
    RawPixelsBeanReadOnly

    @Transactional(readOnly=true)
    public class RawPixelsBean
    extends AbstractStatefulBean
    implements ome.api.RawPixelsStore
    Implementation of the RawPixelsStore stateful service.
    Since:
    OMERO3
    See Also:
    Serialized Form
    • Constructor Detail

      • RawPixelsBean

        public RawPixelsBean()
        default constructor
      • RawPixelsBean

        public RawPixelsBean​(boolean checking,
                             java.lang.String omeroDataDir)
        overridden to allow Spring to set boolean
        Parameters:
        checking -
    • Method Detail

      • setTileSizes

        public void setTileSizes​(ome.io.nio.TileSizes tileSizes)
      • getServiceInterface

        public java.lang.Class<? extends ome.api.ServiceInterface> getServiceInterface()
        Specified by:
        getServiceInterface in interface ome.system.SelfConfigurableService
      • setPixelsMetadata

        public final void setPixelsMetadata​(ome.api.IPixels metaService)
      • setPixelsData

        public final void setPixelsData​(ome.io.nio.PixelsService dataService)
      • setIRepositoryInfo

        public final void setIRepositoryInfo​(ome.api.IRepositoryInfo iRepositoryInfo)
        Disk Space Usage service Bean injector
        Parameters:
        iRepositoryInfo - an IRepositoryInfo
      • setSqlAction

        public final void setSqlAction​(ome.util.SqlAction sql)
        SQL action Bean injector
        Parameters:
        sql - a SqlAction
      • passivate

        @Transactional(readOnly=true)
        public void passivate()
        Specified by:
        passivate in interface ome.api.StatefulServiceInterface
      • activate

        @Transactional(readOnly=true)
        public void activate()
        Specified by:
        activate in interface ome.api.StatefulServiceInterface
      • save

        @Transactional(readOnly=false)
        public ome.model.core.Pixels save()
        Specified by:
        save in interface ome.api.RawPixelsStore
      • close

        @Transactional(readOnly=false)
        public void close()
        Specified by:
        close in interface ome.api.StatefulServiceInterface
      • clean

        public void clean()
      • setPixelsId

        public void setPixelsId​(long pixelsId,
                                boolean bypassOriginalFile)
        Specified by:
        setPixelsId in interface ome.api.RawPixelsStore
      • getPixelsId

        public long getPixelsId()
        Specified by:
        getPixelsId in interface ome.api.RawPixelsStore
      • getPixelsPath

        public java.lang.String getPixelsPath()
        Specified by:
        getPixelsPath in interface ome.api.RawPixelsStore
      • prepare

        public void prepare​(java.util.Set<java.lang.Long> pixelsIds)
        Specified by:
        prepare in interface ome.api.RawPixelsStore
      • calculateMessageDigest

        public byte[] calculateMessageDigest()
        Specified by:
        calculateMessageDigest in interface ome.api.RawPixelsStore
      • getHypercube

        public byte[] getHypercube​(java.util.List<java.lang.Integer> offset,
                                   java.util.List<java.lang.Integer> size,
                                   java.util.List<java.lang.Integer> step)
        Specified by:
        getHypercube in interface ome.api.RawPixelsStore
      • getPlaneRegion

        public byte[] getPlaneRegion​(int z,
                                     int c,
                                     int t,
                                     int count,
                                     int offset)
        Specified by:
        getPlaneRegion in interface ome.api.RawPixelsStore
      • getPlane

        public byte[] getPlane​(int arg0,
                               int arg1,
                               int arg2)
        Specified by:
        getPlane in interface ome.api.RawPixelsStore
      • getPlaneOffset

        public long getPlaneOffset​(int arg0,
                                   int arg1,
                                   int arg2)
        Specified by:
        getPlaneOffset in interface ome.api.RawPixelsStore
      • getPlaneSize

        public long getPlaneSize()
        Specified by:
        getPlaneSize in interface ome.api.RawPixelsStore
      • getRegion

        public byte[] getRegion​(int arg0,
                                long arg1)
        Specified by:
        getRegion in interface ome.api.RawPixelsStore
      • getRow

        public byte[] getRow​(int arg0,
                             int arg1,
                             int arg2,
                             int arg3)
        Specified by:
        getRow in interface ome.api.RawPixelsStore
      • getCol

        public byte[] getCol​(int arg0,
                             int arg1,
                             int arg2,
                             int arg3)
        Specified by:
        getCol in interface ome.api.RawPixelsStore
      • getRowOffset

        public long getRowOffset​(int arg0,
                                 int arg1,
                                 int arg2,
                                 int arg3)
        Specified by:
        getRowOffset in interface ome.api.RawPixelsStore
      • getRowSize

        public int getRowSize()
        Specified by:
        getRowSize in interface ome.api.RawPixelsStore
      • getStack

        public byte[] getStack​(int arg0,
                               int arg1)
        Specified by:
        getStack in interface ome.api.RawPixelsStore
      • getStackOffset

        public long getStackOffset​(int arg0,
                                   int arg1)
        Specified by:
        getStackOffset in interface ome.api.RawPixelsStore
      • getStackSize

        public long getStackSize()
        Specified by:
        getStackSize in interface ome.api.RawPixelsStore
      • getTimepoint

        public byte[] getTimepoint​(int arg0)
        Specified by:
        getTimepoint in interface ome.api.RawPixelsStore
      • getTimepointOffset

        public long getTimepointOffset​(int arg0)
        Specified by:
        getTimepointOffset in interface ome.api.RawPixelsStore
      • getTimepointSize

        public long getTimepointSize()
        Specified by:
        getTimepointSize in interface ome.api.RawPixelsStore
      • getTotalSize

        public long getTotalSize()
        Specified by:
        getTotalSize in interface ome.api.RawPixelsStore
      • getByteWidth

        public int getByteWidth()
        Specified by:
        getByteWidth in interface ome.api.RawPixelsStore
      • isSigned

        public boolean isSigned()
        Specified by:
        isSigned in interface ome.api.RawPixelsStore
      • isFloat

        public boolean isFloat()
        Specified by:
        isFloat in interface ome.api.RawPixelsStore
      • setPlane

        public void setPlane​(byte[] arg0,
                             int arg1,
                             int arg2,
                             int arg3)
        Specified by:
        setPlane in interface ome.api.RawPixelsStore
      • setRegion

        public void setRegion​(int arg0,
                              long arg1,
                              byte[] arg2)
        Specified by:
        setRegion in interface ome.api.RawPixelsStore
      • setRow

        public void setRow​(byte[] arg0,
                           int arg1,
                           int arg2,
                           int arg3,
                           int arg4)
        Specified by:
        setRow in interface ome.api.RawPixelsStore
      • setStack

        public void setStack​(byte[] arg0,
                             int arg1,
                             int arg2,
                             int arg3)
        Specified by:
        setStack in interface ome.api.RawPixelsStore
      • setTimepoint

        public void setTimepoint​(byte[] arg0,
                                 int arg1)
        Specified by:
        setTimepoint in interface ome.api.RawPixelsStore
      • getHistogram

        public java.util.Map<java.lang.Integer,​int[]> getHistogram​(int[] channels,
                                                                         int binCount,
                                                                         boolean globalRange,
                                                                         omeis.providers.re.data.PlaneDef plane)
        Specified by:
        getHistogram in interface ome.api.RawPixelsStore
      • findMinMax

        public java.util.Map<java.lang.Integer,​double[]> findMinMax​(int[] channels)
        Specified by:
        findMinMax in interface ome.api.RawPixelsStore
      • isDiskSpaceChecking

        public boolean isDiskSpaceChecking()
      • setDiskSpaceChecking

        public void setDiskSpaceChecking​(boolean diskSpaceChecking)
      • getResolutionLevels

        public int getResolutionLevels()
        Specified by:
        getResolutionLevels in interface ome.api.RawPixelsStore
      • getResolutionDescriptions

        public java.util.List<java.util.List<java.lang.Integer>> getResolutionDescriptions()
        Specified by:
        getResolutionDescriptions in interface ome.api.RawPixelsStore
      • getTileSize

        public int[] getTileSize()
        Specified by:
        getTileSize in interface ome.api.RawPixelsStore
      • requiresPixelsPyramid

        public boolean requiresPixelsPyramid()
        Specified by:
        requiresPixelsPyramid in interface ome.api.RawPixelsStore
      • getResolutionLevel

        public int getResolutionLevel()
        Specified by:
        getResolutionLevel in interface ome.api.RawPixelsStore
      • setResolutionLevel

        public void setResolutionLevel​(int resolutionLevel)
        Specified by:
        setResolutionLevel in interface ome.api.RawPixelsStore
      • getTile

        public byte[] getTile​(int z,
                              int c,
                              int t,
                              int x,
                              int y,
                              int w,
                              int h)
        Specified by:
        getTile in interface ome.api.RawPixelsStore
      • setTile

        public void setTile​(byte[] data,
                            int z,
                            int c,
                            int t,
                            int x,
                            int y,
                            int w,
                            int h)
        Specified by:
        setTile in interface ome.api.RawPixelsStore