Package ome.services
Class RawPixelsBean
- java.lang.Object
-
- ome.services.AbstractStatefulBean
-
- ome.services.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
-
-
Field Summary
-
Fields inherited from class ome.services.AbstractStatefulBean
iQuery, iUpdate, modified, sec
-
-
Constructor Summary
Constructors Constructor Description RawPixelsBean()
default constructorRawPixelsBean(boolean checking, java.lang.String omeroDataDir)
overridden to allow Spring to set boolean
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
byte[]
calculateMessageDigest()
void
clean()
void
close()
java.util.Map<java.lang.Integer,double[]>
findMinMax(int[] channels)
int
getByteWidth()
byte[]
getCol(int arg0, int arg1, int arg2, int arg3)
java.util.Map<java.lang.Integer,int[]>
getHistogram(int[] channels, int binCount, boolean globalRange, omeis.providers.re.data.PlaneDef plane)
byte[]
getHypercube(java.util.List<java.lang.Integer> offset, java.util.List<java.lang.Integer> size, java.util.List<java.lang.Integer> step)
long
getPixelsId()
java.lang.String
getPixelsPath()
byte[]
getPlane(int arg0, int arg1, int arg2)
long
getPlaneOffset(int arg0, int arg1, int arg2)
byte[]
getPlaneRegion(int z, int c, int t, int count, int offset)
long
getPlaneSize()
byte[]
getRegion(int arg0, long arg1)
java.util.List<java.util.List<java.lang.Integer>>
getResolutionDescriptions()
int
getResolutionLevel()
int
getResolutionLevels()
byte[]
getRow(int arg0, int arg1, int arg2, int arg3)
long
getRowOffset(int arg0, int arg1, int arg2, int arg3)
int
getRowSize()
java.lang.Class<? extends ome.api.ServiceInterface>
getServiceInterface()
byte[]
getStack(int arg0, int arg1)
long
getStackOffset(int arg0, int arg1)
long
getStackSize()
byte[]
getTile(int z, int c, int t, int x, int y, int w, int h)
int[]
getTileSize()
byte[]
getTimepoint(int arg0)
long
getTimepointOffset(int arg0)
long
getTimepointSize()
long
getTotalSize()
boolean
isDiskSpaceChecking()
boolean
isFloat()
boolean
isSigned()
void
passivate()
void
prepare(java.util.Set<java.lang.Long> pixelsIds)
boolean
requiresPixelsPyramid()
ome.model.core.Pixels
save()
void
setDiskSpaceChecking(boolean diskSpaceChecking)
void
setIRepositoryInfo(ome.api.IRepositoryInfo iRepositoryInfo)
Disk Space Usage service Bean injectorvoid
setPixelsData(ome.io.nio.PixelsService dataService)
void
setPixelsId(long pixelsId, boolean bypassOriginalFile)
void
setPixelsMetadata(ome.api.IPixels metaService)
void
setPlane(byte[] arg0, int arg1, int arg2, int arg3)
void
setRegion(int arg0, long arg1, byte[] arg2)
void
setResolutionLevel(int resolutionLevel)
void
setRow(byte[] arg0, int arg1, int arg2, int arg3, int arg4)
void
setSqlAction(ome.util.SqlAction sql)
SQL action Bean injectorvoid
setStack(byte[] arg0, int arg1, int arg2, int arg3)
void
setTile(byte[] data, int z, int c, int t, int x, int y, int w, int h)
void
setTileSizes(ome.io.nio.TileSizes tileSizes)
void
setTimepoint(byte[] arg0, int arg1)
-
Methods inherited from class ome.services.AbstractStatefulBean
getBeanHelper, getCurrentEventContext, isModified, modified, selfConfigure, setQueryService, setSecuritySystem, setUpdateService
-
-
-
-
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 interfaceome.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
- anIRepositoryInfo
-
setSqlAction
public final void setSqlAction(ome.util.SqlAction sql)
SQL action Bean injector- Parameters:
sql
- aSqlAction
-
passivate
@Transactional(readOnly=true) public void passivate()
- Specified by:
passivate
in interfaceome.api.StatefulServiceInterface
-
activate
@Transactional(readOnly=true) public void activate()
- Specified by:
activate
in interfaceome.api.StatefulServiceInterface
-
save
@Transactional(readOnly=false) public ome.model.core.Pixels save()
- Specified by:
save
in interfaceome.api.RawPixelsStore
-
close
@Transactional(readOnly=false) public void close()
- Specified by:
close
in interfaceome.api.StatefulServiceInterface
-
clean
public void clean()
-
setPixelsId
public void setPixelsId(long pixelsId, boolean bypassOriginalFile)
- Specified by:
setPixelsId
in interfaceome.api.RawPixelsStore
-
getPixelsId
public long getPixelsId()
- Specified by:
getPixelsId
in interfaceome.api.RawPixelsStore
-
getPixelsPath
public java.lang.String getPixelsPath()
- Specified by:
getPixelsPath
in interfaceome.api.RawPixelsStore
-
prepare
public void prepare(java.util.Set<java.lang.Long> pixelsIds)
- Specified by:
prepare
in interfaceome.api.RawPixelsStore
-
calculateMessageDigest
public byte[] calculateMessageDigest()
- Specified by:
calculateMessageDigest
in interfaceome.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 interfaceome.api.RawPixelsStore
-
getPlaneRegion
public byte[] getPlaneRegion(int z, int c, int t, int count, int offset)
- Specified by:
getPlaneRegion
in interfaceome.api.RawPixelsStore
-
getPlane
public byte[] getPlane(int arg0, int arg1, int arg2)
- Specified by:
getPlane
in interfaceome.api.RawPixelsStore
-
getPlaneOffset
public long getPlaneOffset(int arg0, int arg1, int arg2)
- Specified by:
getPlaneOffset
in interfaceome.api.RawPixelsStore
-
getPlaneSize
public long getPlaneSize()
- Specified by:
getPlaneSize
in interfaceome.api.RawPixelsStore
-
getRegion
public byte[] getRegion(int arg0, long arg1)
- Specified by:
getRegion
in interfaceome.api.RawPixelsStore
-
getRow
public byte[] getRow(int arg0, int arg1, int arg2, int arg3)
- Specified by:
getRow
in interfaceome.api.RawPixelsStore
-
getCol
public byte[] getCol(int arg0, int arg1, int arg2, int arg3)
- Specified by:
getCol
in interfaceome.api.RawPixelsStore
-
getRowOffset
public long getRowOffset(int arg0, int arg1, int arg2, int arg3)
- Specified by:
getRowOffset
in interfaceome.api.RawPixelsStore
-
getRowSize
public int getRowSize()
- Specified by:
getRowSize
in interfaceome.api.RawPixelsStore
-
getStack
public byte[] getStack(int arg0, int arg1)
- Specified by:
getStack
in interfaceome.api.RawPixelsStore
-
getStackOffset
public long getStackOffset(int arg0, int arg1)
- Specified by:
getStackOffset
in interfaceome.api.RawPixelsStore
-
getStackSize
public long getStackSize()
- Specified by:
getStackSize
in interfaceome.api.RawPixelsStore
-
getTimepoint
public byte[] getTimepoint(int arg0)
- Specified by:
getTimepoint
in interfaceome.api.RawPixelsStore
-
getTimepointOffset
public long getTimepointOffset(int arg0)
- Specified by:
getTimepointOffset
in interfaceome.api.RawPixelsStore
-
getTimepointSize
public long getTimepointSize()
- Specified by:
getTimepointSize
in interfaceome.api.RawPixelsStore
-
getTotalSize
public long getTotalSize()
- Specified by:
getTotalSize
in interfaceome.api.RawPixelsStore
-
getByteWidth
public int getByteWidth()
- Specified by:
getByteWidth
in interfaceome.api.RawPixelsStore
-
isSigned
public boolean isSigned()
- Specified by:
isSigned
in interfaceome.api.RawPixelsStore
-
isFloat
public boolean isFloat()
- Specified by:
isFloat
in interfaceome.api.RawPixelsStore
-
setPlane
public void setPlane(byte[] arg0, int arg1, int arg2, int arg3)
- Specified by:
setPlane
in interfaceome.api.RawPixelsStore
-
setRegion
public void setRegion(int arg0, long arg1, byte[] arg2)
- Specified by:
setRegion
in interfaceome.api.RawPixelsStore
-
setRow
public void setRow(byte[] arg0, int arg1, int arg2, int arg3, int arg4)
- Specified by:
setRow
in interfaceome.api.RawPixelsStore
-
setStack
public void setStack(byte[] arg0, int arg1, int arg2, int arg3)
- Specified by:
setStack
in interfaceome.api.RawPixelsStore
-
setTimepoint
public void setTimepoint(byte[] arg0, int arg1)
- Specified by:
setTimepoint
in interfaceome.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 interfaceome.api.RawPixelsStore
-
findMinMax
public java.util.Map<java.lang.Integer,double[]> findMinMax(int[] channels)
- Specified by:
findMinMax
in interfaceome.api.RawPixelsStore
-
isDiskSpaceChecking
public boolean isDiskSpaceChecking()
-
setDiskSpaceChecking
public void setDiskSpaceChecking(boolean diskSpaceChecking)
-
getResolutionLevels
public int getResolutionLevels()
- Specified by:
getResolutionLevels
in interfaceome.api.RawPixelsStore
-
getResolutionDescriptions
public java.util.List<java.util.List<java.lang.Integer>> getResolutionDescriptions()
- Specified by:
getResolutionDescriptions
in interfaceome.api.RawPixelsStore
-
getTileSize
public int[] getTileSize()
- Specified by:
getTileSize
in interfaceome.api.RawPixelsStore
-
requiresPixelsPyramid
public boolean requiresPixelsPyramid()
- Specified by:
requiresPixelsPyramid
in interfaceome.api.RawPixelsStore
-
getResolutionLevel
public int getResolutionLevel()
- Specified by:
getResolutionLevel
in interfaceome.api.RawPixelsStore
-
setResolutionLevel
public void setResolutionLevel(int resolutionLevel)
- Specified by:
setResolutionLevel
in interfaceome.api.RawPixelsStore
-
getTile
public byte[] getTile(int z, int c, int t, int x, int y, int w, int h)
- Specified by:
getTile
in interfaceome.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 interfaceome.api.RawPixelsStore
-
-