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 voidactivate()byte[]calculateMessageDigest()voidclean()voidclose()java.util.Map<java.lang.Integer,double[]>findMinMax(int[] channels)intgetByteWidth()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)longgetPixelsId()java.lang.StringgetPixelsPath()byte[]getPlane(int arg0, int arg1, int arg2)longgetPlaneOffset(int arg0, int arg1, int arg2)byte[]getPlaneRegion(int z, int c, int t, int count, int offset)longgetPlaneSize()byte[]getRegion(int arg0, long arg1)java.util.List<java.util.List<java.lang.Integer>>getResolutionDescriptions()intgetResolutionLevel()intgetResolutionLevels()byte[]getRow(int arg0, int arg1, int arg2, int arg3)longgetRowOffset(int arg0, int arg1, int arg2, int arg3)intgetRowSize()java.lang.Class<? extends ome.api.ServiceInterface>getServiceInterface()byte[]getStack(int arg0, int arg1)longgetStackOffset(int arg0, int arg1)longgetStackSize()byte[]getTile(int z, int c, int t, int x, int y, int w, int h)int[]getTileSize()byte[]getTimepoint(int arg0)longgetTimepointOffset(int arg0)longgetTimepointSize()longgetTotalSize()booleanisDiskSpaceChecking()booleanisFloat()booleanisSigned()voidpassivate()voidprepare(java.util.Set<java.lang.Long> pixelsIds)booleanrequiresPixelsPyramid()ome.model.core.Pixelssave()voidsetDiskSpaceChecking(boolean diskSpaceChecking)voidsetIRepositoryInfo(ome.api.IRepositoryInfo iRepositoryInfo)Disk Space Usage service Bean injectorvoidsetPixelsData(ome.io.nio.PixelsService dataService)voidsetPixelsId(long pixelsId, boolean bypassOriginalFile)voidsetPixelsMetadata(ome.api.IPixels metaService)voidsetPlane(byte[] arg0, int arg1, int arg2, int arg3)voidsetRegion(int arg0, long arg1, byte[] arg2)voidsetResolutionLevel(int resolutionLevel)voidsetRow(byte[] arg0, int arg1, int arg2, int arg3, int arg4)voidsetSqlAction(ome.util.SqlAction sql)SQL action Bean injectorvoidsetStack(byte[] arg0, int arg1, int arg2, int arg3)voidsetTile(byte[] data, int z, int c, int t, int x, int y, int w, int h)voidsetTileSizes(ome.io.nio.TileSizes tileSizes)voidsetTimepoint(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:
getServiceInterfacein 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:
passivatein interfaceome.api.StatefulServiceInterface
-
activate
@Transactional(readOnly=true) public void activate()
- Specified by:
activatein interfaceome.api.StatefulServiceInterface
-
save
@Transactional(readOnly=false) public ome.model.core.Pixels save()
- Specified by:
savein interfaceome.api.RawPixelsStore
-
close
@Transactional(readOnly=false) public void close()
- Specified by:
closein interfaceome.api.StatefulServiceInterface
-
clean
public void clean()
-
setPixelsId
public void setPixelsId(long pixelsId, boolean bypassOriginalFile)- Specified by:
setPixelsIdin interfaceome.api.RawPixelsStore
-
getPixelsId
public long getPixelsId()
- Specified by:
getPixelsIdin interfaceome.api.RawPixelsStore
-
getPixelsPath
public java.lang.String getPixelsPath()
- Specified by:
getPixelsPathin interfaceome.api.RawPixelsStore
-
prepare
public void prepare(java.util.Set<java.lang.Long> pixelsIds)
- Specified by:
preparein interfaceome.api.RawPixelsStore
-
calculateMessageDigest
public byte[] calculateMessageDigest()
- Specified by:
calculateMessageDigestin 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:
getHypercubein interfaceome.api.RawPixelsStore
-
getPlaneRegion
public byte[] getPlaneRegion(int z, int c, int t, int count, int offset)- Specified by:
getPlaneRegionin interfaceome.api.RawPixelsStore
-
getPlane
public byte[] getPlane(int arg0, int arg1, int arg2)- Specified by:
getPlanein interfaceome.api.RawPixelsStore
-
getPlaneOffset
public long getPlaneOffset(int arg0, int arg1, int arg2)- Specified by:
getPlaneOffsetin interfaceome.api.RawPixelsStore
-
getPlaneSize
public long getPlaneSize()
- Specified by:
getPlaneSizein interfaceome.api.RawPixelsStore
-
getRegion
public byte[] getRegion(int arg0, long arg1)- Specified by:
getRegionin interfaceome.api.RawPixelsStore
-
getRow
public byte[] getRow(int arg0, int arg1, int arg2, int arg3)- Specified by:
getRowin interfaceome.api.RawPixelsStore
-
getCol
public byte[] getCol(int arg0, int arg1, int arg2, int arg3)- Specified by:
getColin interfaceome.api.RawPixelsStore
-
getRowOffset
public long getRowOffset(int arg0, int arg1, int arg2, int arg3)- Specified by:
getRowOffsetin interfaceome.api.RawPixelsStore
-
getRowSize
public int getRowSize()
- Specified by:
getRowSizein interfaceome.api.RawPixelsStore
-
getStack
public byte[] getStack(int arg0, int arg1)- Specified by:
getStackin interfaceome.api.RawPixelsStore
-
getStackOffset
public long getStackOffset(int arg0, int arg1)- Specified by:
getStackOffsetin interfaceome.api.RawPixelsStore
-
getStackSize
public long getStackSize()
- Specified by:
getStackSizein interfaceome.api.RawPixelsStore
-
getTimepoint
public byte[] getTimepoint(int arg0)
- Specified by:
getTimepointin interfaceome.api.RawPixelsStore
-
getTimepointOffset
public long getTimepointOffset(int arg0)
- Specified by:
getTimepointOffsetin interfaceome.api.RawPixelsStore
-
getTimepointSize
public long getTimepointSize()
- Specified by:
getTimepointSizein interfaceome.api.RawPixelsStore
-
getTotalSize
public long getTotalSize()
- Specified by:
getTotalSizein interfaceome.api.RawPixelsStore
-
getByteWidth
public int getByteWidth()
- Specified by:
getByteWidthin interfaceome.api.RawPixelsStore
-
isSigned
public boolean isSigned()
- Specified by:
isSignedin interfaceome.api.RawPixelsStore
-
isFloat
public boolean isFloat()
- Specified by:
isFloatin interfaceome.api.RawPixelsStore
-
setPlane
public void setPlane(byte[] arg0, int arg1, int arg2, int arg3)- Specified by:
setPlanein interfaceome.api.RawPixelsStore
-
setRegion
public void setRegion(int arg0, long arg1, byte[] arg2)- Specified by:
setRegionin interfaceome.api.RawPixelsStore
-
setRow
public void setRow(byte[] arg0, int arg1, int arg2, int arg3, int arg4)- Specified by:
setRowin interfaceome.api.RawPixelsStore
-
setStack
public void setStack(byte[] arg0, int arg1, int arg2, int arg3)- Specified by:
setStackin interfaceome.api.RawPixelsStore
-
setTimepoint
public void setTimepoint(byte[] arg0, int arg1)- Specified by:
setTimepointin 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:
getHistogramin interfaceome.api.RawPixelsStore
-
findMinMax
public java.util.Map<java.lang.Integer,double[]> findMinMax(int[] channels)
- Specified by:
findMinMaxin interfaceome.api.RawPixelsStore
-
isDiskSpaceChecking
public boolean isDiskSpaceChecking()
-
setDiskSpaceChecking
public void setDiskSpaceChecking(boolean diskSpaceChecking)
-
getResolutionLevels
public int getResolutionLevels()
- Specified by:
getResolutionLevelsin interfaceome.api.RawPixelsStore
-
getResolutionDescriptions
public java.util.List<java.util.List<java.lang.Integer>> getResolutionDescriptions()
- Specified by:
getResolutionDescriptionsin interfaceome.api.RawPixelsStore
-
getTileSize
public int[] getTileSize()
- Specified by:
getTileSizein interfaceome.api.RawPixelsStore
-
requiresPixelsPyramid
public boolean requiresPixelsPyramid()
- Specified by:
requiresPixelsPyramidin interfaceome.api.RawPixelsStore
-
getResolutionLevel
public int getResolutionLevel()
- Specified by:
getResolutionLevelin interfaceome.api.RawPixelsStore
-
setResolutionLevel
public void setResolutionLevel(int resolutionLevel)
- Specified by:
setResolutionLevelin interfaceome.api.RawPixelsStore
-
getTile
public byte[] getTile(int z, int c, int t, int x, int y, int w, int h)- Specified by:
getTilein 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:
setTilein interfaceome.api.RawPixelsStore
-
-