@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() |
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(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, setUpdateService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentEventContext
public RawPixelsBean()
public RawPixelsBean(boolean checking, String omeroDataDir)
checking
- public Class<? extends ServiceInterface> getServiceInterface()
getServiceInterface
in interface SelfConfigurableService
public final void setPixelsMetadata(IPixels metaService)
public final void setPixelsData(PixelsService dataService)
public final void setIRepositoryInfo(IRepositoryInfo iRepositoryInfo)
iRepositoryInfo
- an IRepositoryInfo
public final void setSqlAction(SqlAction sql)
sql
- a SqlAction
@Transactional(readOnly=true) public void passivate()
StatefulServiceInterface
passivate
in interface StatefulServiceInterface
@Transactional(readOnly=true) public void activate()
StatefulServiceInterface
activate
in interface StatefulServiceInterface
@Transactional(readOnly=false) public Pixels save()
save
in interface RawPixelsStore
@Transactional(readOnly=false) public void close()
StatefulServiceInterface
close
in interface StatefulServiceInterface
public void clean()
public void setPixelsId(long pixelsId, boolean bypassOriginalFile)
RawPixelsStore
setPixelsId
in interface RawPixelsStore
pixelsId
- 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()
RawPixelsStore
getPixelsId
in interface RawPixelsStore
public String getPixelsPath()
RawPixelsStore
getPixelsPath
in interface RawPixelsStore
public void prepare(Set<Long> pixelsIds)
RawPixelsStore
prepare
in interface RawPixelsStore
pixelsIds
- Pixels IDs to cache.public byte[] calculateMessageDigest()
calculateMessageDigest
in interface RawPixelsStore
public byte[] getHypercube(List<Integer> offset, List<Integer> size, List<Integer> step)
getHypercube
in interface RawPixelsStore
public byte[] getPlaneRegion(int z, int c, int t, int count, int offset)
getPlaneRegion
in interface RawPixelsStore
public byte[] getPlane(int arg0, int arg1, int arg2)
getPlane
in interface RawPixelsStore
public long getPlaneOffset(int arg0, int arg1, int arg2)
getPlaneOffset
in interface RawPixelsStore
public long getPlaneSize()
RawPixelsStore
PixelBuffer
getPlaneSize
in interface RawPixelsStore
PixelBuffer.getPlaneSize()
public byte[] getRegion(int arg0, long arg1)
getRegion
in interface RawPixelsStore
public byte[] getRow(int arg0, int arg1, int arg2, int arg3)
getRow
in interface RawPixelsStore
public byte[] getCol(int arg0, int arg1, int arg2, int arg3)
getCol
in interface RawPixelsStore
public long getRowOffset(int arg0, int arg1, int arg2, int arg3)
getRowOffset
in interface RawPixelsStore
public int getRowSize()
getRowSize
in interface RawPixelsStore
public byte[] getStack(int arg0, int arg1)
getStack
in interface RawPixelsStore
public long getStackOffset(int arg0, int arg1)
getStackOffset
in interface RawPixelsStore
public long getStackSize()
getStackSize
in interface RawPixelsStore
public byte[] getTimepoint(int arg0)
getTimepoint
in interface RawPixelsStore
public long getTimepointOffset(int arg0)
getTimepointOffset
in interface RawPixelsStore
public long getTimepointSize()
getTimepointSize
in interface RawPixelsStore
public long getTotalSize()
getTotalSize
in interface RawPixelsStore
public int getByteWidth()
getByteWidth
in interface RawPixelsStore
public boolean isSigned()
isSigned
in interface RawPixelsStore
public boolean isFloat()
isFloat
in interface RawPixelsStore
public void setPlane(byte[] arg0, int arg1, int arg2, int arg3)
setPlane
in interface RawPixelsStore
public void setRegion(int arg0, long arg1, byte[] arg2)
setRegion
in interface RawPixelsStore
public void setRow(byte[] arg0, int arg1, int arg2, int arg3, int arg4)
setRow
in interface RawPixelsStore
public void setStack(byte[] arg0, int arg1, int arg2, int arg3)
setStack
in interface RawPixelsStore
public void setTimepoint(byte[] arg0, int arg1)
setTimepoint
in interface RawPixelsStore
public boolean isDiskSpaceChecking()
public void setDiskSpaceChecking(boolean diskSpaceChecking)
public int getResolutionLevels()
getResolutionLevels
in interface RawPixelsStore
public List<List<Integer>> getResolutionDescriptions()
getResolutionDescriptions
in interface RawPixelsStore
public int[] getTileSize()
getTileSize
in interface RawPixelsStore
public boolean requiresPixelsPyramid()
requiresPixelsPyramid
in interface RawPixelsStore
public int getResolutionLevel()
getResolutionLevel
in interface RawPixelsStore
public void setResolutionLevel(int resolutionLevel)
setResolutionLevel
in interface RawPixelsStore
public byte[] getTile(int z, int c, int t, int x, int y, int w, int h)
getTile
in interface RawPixelsStore
public 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.3-ice35-b52
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.