@Transactional(readOnly=true) public class RawPixelsBean extends AbstractStatefulBean implements RawPixelsStore
iQuery, iUpdate, modified, sec| Constructor and Description |
|---|
RawPixelsBean()
default constructor
|
RawPixelsBean(boolean checking,
String omeroDataDir)
overridden to allow Spring to set boolean
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Completely restore this service for active use from whatever
passivation it has implemented.
|
byte[] |
calculateMessageDigest() |
void |
clean() |
void |
close()
signals the end of the service lifecycle.
|
int |
getByteWidth() |
byte[] |
getCol(int arg0,
int arg1,
int arg2,
int arg3) |
byte[] |
getHypercube(List<Integer> offset,
List<Integer> size,
List<Integer> step) |
long |
getPixelsId()
Returns the current Pixels set identifier.
|
String |
getPixelsPath()
Returns the current Pixels path.
|
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()
delegates to
PixelBuffer |
byte[] |
getRegion(int arg0,
long arg1) |
List<List<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() |
Class<? extends 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()
Perform whatever passivation is possible or throw an exception.
|
void |
prepare(Set<Long> pixelsIds)
Prepares the stateful service with a cache of loaded Pixels objects.
|
boolean |
requiresPixelsPyramid() |
ome.model.core.Pixels |
save() |
void |
setDiskSpaceChecking(boolean diskSpaceChecking) |
void |
setIRepositoryInfo(IRepositoryInfo iRepositoryInfo)
Disk Space Usage service Bean injector
|
void |
setPixelsData(PixelsService dataService) |
void |
setPixelsId(long pixelsId,
boolean bypassOriginalFile)
Initializes the stateful service for a given Pixels set.
|
void |
setPixelsMetadata(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 injector
|
void |
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 |
setTimepoint(byte[] arg0,
int arg1) |
getBeanHelper, getCurrentEventContext, isModified, modified, selfConfigure, setQueryService, setSecuritySystem, setUpdateServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentEventContextpublic RawPixelsBean()
public RawPixelsBean(boolean checking,
String omeroDataDir)
checking - public Class<? extends ServiceInterface> getServiceInterface()
getServiceInterface in interface SelfConfigurableServicepublic final void setPixelsMetadata(IPixels metaService)
public final void setPixelsData(PixelsService dataService)
public final void setIRepositoryInfo(IRepositoryInfo iRepositoryInfo)
iRepositoryInfo - an IRepositoryInfopublic final void setSqlAction(ome.util.SqlAction sql)
sql - a SqlAction@Transactional(readOnly=true) public void passivate()
StatefulServiceInterfacepassivate in interface StatefulServiceInterface@Transactional(readOnly=true) public void activate()
StatefulServiceInterfaceactivate in interface StatefulServiceInterface@Transactional(readOnly=false) public ome.model.core.Pixels save()
save in interface RawPixelsStore@Transactional(readOnly=false) public void close()
StatefulServiceInterfaceclose in interface StatefulServiceInterfacepublic void clean()
public void setPixelsId(long pixelsId,
boolean bypassOriginalFile)
RawPixelsStoresetPixelsId in interface RawPixelsStorepixelsId - Pixels set identifier.bypassOriginalFile - Whether or not to bypass checking for an
original file to back the pixel buffer used by this service. If requests
are predominantly write-only or involve the population of
a brand new pixel buffer using true here is a safe
optimization otherwise false is expected.public long getPixelsId()
RawPixelsStoregetPixelsId in interface RawPixelsStorepublic String getPixelsPath()
RawPixelsStoregetPixelsPath in interface RawPixelsStorepublic void prepare(Set<Long> pixelsIds)
RawPixelsStoreprepare in interface RawPixelsStorepixelsIds - Pixels IDs to cache.public byte[] calculateMessageDigest()
calculateMessageDigest in interface RawPixelsStorepublic byte[] getHypercube(List<Integer> offset, List<Integer> size, List<Integer> step)
getHypercube in interface RawPixelsStorepublic byte[] getPlaneRegion(int z,
int c,
int t,
int count,
int offset)
getPlaneRegion in interface RawPixelsStorepublic byte[] getPlane(int arg0,
int arg1,
int arg2)
getPlane in interface RawPixelsStorepublic long getPlaneOffset(int arg0,
int arg1,
int arg2)
getPlaneOffset in interface RawPixelsStorepublic long getPlaneSize()
RawPixelsStorePixelBuffergetPlaneSize in interface RawPixelsStorePixelBuffer.getPlaneSize()public byte[] getRegion(int arg0,
long arg1)
getRegion in interface RawPixelsStorepublic byte[] getRow(int arg0,
int arg1,
int arg2,
int arg3)
getRow in interface RawPixelsStorepublic byte[] getCol(int arg0,
int arg1,
int arg2,
int arg3)
getCol in interface RawPixelsStorepublic long getRowOffset(int arg0,
int arg1,
int arg2,
int arg3)
getRowOffset in interface RawPixelsStorepublic int getRowSize()
getRowSize in interface RawPixelsStorepublic byte[] getStack(int arg0,
int arg1)
getStack in interface RawPixelsStorepublic long getStackOffset(int arg0,
int arg1)
getStackOffset in interface RawPixelsStorepublic long getStackSize()
getStackSize in interface RawPixelsStorepublic byte[] getTimepoint(int arg0)
getTimepoint in interface RawPixelsStorepublic long getTimepointOffset(int arg0)
getTimepointOffset in interface RawPixelsStorepublic long getTimepointSize()
getTimepointSize in interface RawPixelsStorepublic long getTotalSize()
getTotalSize in interface RawPixelsStorepublic int getByteWidth()
getByteWidth in interface RawPixelsStorepublic boolean isSigned()
isSigned in interface RawPixelsStorepublic boolean isFloat()
isFloat in interface RawPixelsStorepublic void setPlane(byte[] arg0,
int arg1,
int arg2,
int arg3)
setPlane in interface RawPixelsStorepublic void setRegion(int arg0,
long arg1,
byte[] arg2)
setRegion in interface RawPixelsStorepublic void setRow(byte[] arg0,
int arg1,
int arg2,
int arg3,
int arg4)
setRow in interface RawPixelsStorepublic void setStack(byte[] arg0,
int arg1,
int arg2,
int arg3)
setStack in interface RawPixelsStorepublic void setTimepoint(byte[] arg0,
int arg1)
setTimepoint in interface RawPixelsStorepublic boolean isDiskSpaceChecking()
public void setDiskSpaceChecking(boolean diskSpaceChecking)
public int getResolutionLevels()
getResolutionLevels in interface RawPixelsStorepublic List<List<Integer>> getResolutionDescriptions()
getResolutionDescriptions in interface RawPixelsStorepublic int[] getTileSize()
getTileSize in interface RawPixelsStorepublic boolean requiresPixelsPyramid()
requiresPixelsPyramid in interface RawPixelsStorepublic int getResolutionLevel()
getResolutionLevel in interface RawPixelsStorepublic void setResolutionLevel(int resolutionLevel)
setResolutionLevel in interface RawPixelsStorepublic byte[] getTile(int z,
int c,
int t,
int x,
int y,
int w,
int h)
getTile in interface RawPixelsStorepublic void setTile(byte[] data,
int z,
int c,
int t,
int x,
int y,
int w,
int h)
setTile in interface RawPixelsStore
Version: 5.1.1-ice35-b43
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.