Package ome.services.blitz.impl
Class ThumbnailStoreI
- java.lang.Object
-
- ome.services.blitz.impl.AbstractAmdServant
-
- ome.services.blitz.impl.AbstractCloseableAmdServant
-
- ome.services.blitz.impl.ThumbnailStoreI
-
- All Implemented Interfaces:
_ServiceInterfaceOperations,_StatefulServiceInterfaceOperations,_ThumbnailStoreOperations,CloseableServant,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class ThumbnailStoreI extends AbstractCloseableAmdServant implements _ThumbnailStoreOperations
Implementation of the ThumbnailStore service.- Since:
- 3.0-Beta4
- See Also:
ThumbnailStore
-
-
Constructor Summary
Constructors Constructor Description ThumbnailStoreI(ome.api.ThumbnailStore service, BlitzExecutor be)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateThumbnail_async(AMD_ThumbnailStore_createThumbnail __cb, RInt sizeX, RInt sizeY, Ice.Current __current)Creates a thumbnail for a pixels set using a given set of rendering settings (RenderingDef) in the on-disk cache.voidcreateThumbnails_async(AMD_ThumbnailStore_createThumbnails __cb, Ice.Current __current)Creates thumbnails for a pixels set using a given set of rendering settings (RenderingDef) in the on-disk cache for every sizeX/sizeY combination already cached.voidcreateThumbnailsByLongestSideSet_async(AMD_ThumbnailStore_createThumbnailsByLongestSideSet __cb, RInt size, java.util.List<java.lang.Long> pixelsIds, Ice.Current __current)Creates thumbnails for a number of pixels sets using a given set of rendering settings (RenderingDef) in the on-disk cache.voidgetRenderingDefId_async(AMD_ThumbnailStore_getRenderingDefId __cb, Ice.Current __current)Return the id of theRenderingDefloaded in this instance.voidgetThumbnail_async(AMD_ThumbnailStore_getThumbnail __cb, RInt sizeX, RInt sizeY, Ice.Current __current)Retrieves a thumbnail for a pixels set using a given set of rendering settings (RenderingDef).voidgetThumbnailByLongestSide_async(AMD_ThumbnailStore_getThumbnailByLongestSide __cb, RInt size, Ice.Current __current)Retrieves a thumbnail for a pixels set using a given set of rendering settings (RenderingDef).voidgetThumbnailByLongestSideDirect_async(AMD_ThumbnailStore_getThumbnailByLongestSideDirect __cb, RInt size, Ice.Current __current)Retrieves a thumbnail for a pixels set using a given set of rendering settings (RenderingDef).voidgetThumbnailByLongestSideSet_async(AMD_ThumbnailStore_getThumbnailByLongestSideSet __cb, RInt size, java.util.List<java.lang.Long> pixelsIds, Ice.Current __current)Retrieves a number of thumbnails for pixels sets using given sets of rendering settings (RenderingDef).voidgetThumbnailDirect_async(AMD_ThumbnailStore_getThumbnailDirect __cb, RInt sizeX, RInt sizeY, Ice.Current __current)Retrieves a thumbnail for a pixels set using a given set of rendering settings (RenderingDef).voidgetThumbnailForSectionByLongestSideDirect_async(AMD_ThumbnailStore_getThumbnailForSectionByLongestSideDirect __cb, int theZ, int theT, RInt size, Ice.Current __current)Retrieves a thumbnail for a pixels set using a given set of rendering settings (RenderingDef) for a particular section.voidgetThumbnailForSectionDirect_async(AMD_ThumbnailStore_getThumbnailForSectionDirect __cb, int theZ, int theT, RInt sizeX, RInt sizeY, Ice.Current __current)Retrieves a thumbnail for a pixels set using a given set of rendering settings (RenderingDef) for a particular section.voidgetThumbnailSet_async(AMD_ThumbnailStore_getThumbnailSet __cb, RInt sizeX, RInt sizeY, java.util.List<java.lang.Long> pixelsIds, Ice.Current __current)Retrieves a number of thumbnails for pixels sets using given sets of rendering settings (RenderingDef).voidgetThumbnailWithoutDefault_async(AMD_ThumbnailStore_getThumbnailWithoutDefault __cb, RInt sizeX, RInt sizeY, Ice.Current __current)Retrieves a thumbnail for a pixels set using a given set of rendering settings (RenderingDef).voidisInProgress_async(AMD_ThumbnailStore_isInProgress __cb, Ice.Current __current)This returns the last available in progress state for a thumbnail.protected voidpostClose(Ice.Current current)Should not throw any exceptions which should be detected by clients since it is called in a finally block after the client thread has been released.protected voidpreClose(Ice.Current current)voidresetDefaults_async(AMD_ThumbnailStore_resetDefaults __cb, Ice.Current __current)Resets the rendering definition for the active pixels set to its default settings.voidsetPixelsId_async(AMD_ThumbnailStore_setPixelsId __cb, long pixelsId, Ice.Current __current)This method manages the state of the service; it must be invoked before using any other methods.voidsetRenderingDefId_async(AMD_ThumbnailStore_setRenderingDefId __cb, long renderingDefId, Ice.Current __current)This method manages the state of the service; it should be invoked directly aftersetPixelsId.voidthumbnailExists_async(AMD_ThumbnailStore_thumbnailExists __cb, RInt sizeX, RInt sizeY, Ice.Current __current)Checks if a thumbnail of a particular size exists for a pixels set.-
Methods inherited from class ome.services.blitz.impl.AbstractCloseableAmdServant
close, close_async
-
Methods inherited from class ome.services.blitz.impl.AbstractAmdServant
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface omero.api._StatefulServiceInterfaceOperations
activate_async, close_async, getCurrentEventContext_async, passivate_async
-
-
-
-
Constructor Detail
-
ThumbnailStoreI
public ThumbnailStoreI(ome.api.ThumbnailStore service, BlitzExecutor be)
-
-
Method Detail
-
createThumbnail_async
public void createThumbnail_async(AMD_ThumbnailStore_createThumbnail __cb, RInt sizeX, RInt sizeY, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsCreates a thumbnail for a pixels set using a given set of rendering settings (RenderingDef) in the on-disk cache.- Specified by:
createThumbnail_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.sizeX- the X-axis width of the thumbnail.nullspecifies the default size of 48.sizeY- the Y-axis width of the thumbnail.nullspecifies the default size of 48.__current- The Current object for the invocation.- Throws:
ServerError
-
createThumbnails_async
public void createThumbnails_async(AMD_ThumbnailStore_createThumbnails __cb, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsCreates thumbnails for a pixels set using a given set of rendering settings (RenderingDef) in the on-disk cache for every sizeX/sizeY combination already cached.- Specified by:
createThumbnails_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
createThumbnailsByLongestSideSet_async
public void createThumbnailsByLongestSideSet_async(AMD_ThumbnailStore_createThumbnailsByLongestSideSet __cb, RInt size, java.util.List<java.lang.Long> pixelsIds, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsCreates thumbnails for a number of pixels sets using a given set of rendering settings (RenderingDef) in the on-disk cache. Unlike the other thumbnail creation methods, this method may be called without first callingsetPixelsId. This method will not reset or modify rendering settings in any way. If rendering settings for a pixels set are not present, thumbnail creation for that pixels set will not be performed.- Specified by:
createThumbnailsByLongestSideSet_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.size- the size of the longest side of the thumbnail requested.nullspecifies the default size of 48.pixelsIds- the Pixels sets to retrieve thumbnails for.__current- The Current object for the invocation.- Throws:
ServerError
-
getThumbnailByLongestSideDirect_async
public void getThumbnailByLongestSideDirect_async(AMD_ThumbnailStore_getThumbnailByLongestSideDirect __cb, RInt size, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsRetrieves a thumbnail for a pixels set using a given set of rendering settings (RenderingDef). The Thumbnail will always be created directly, ignoring the on-disk cache. The longest side of the image will be used to calculate the size for the smaller side in order to keep the aspect ratio of the original image.- Specified by:
getThumbnailByLongestSideDirect_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.size- the size of the longest side of the thumbnail requested.nullspecifies the default size of 48.__current- The Current object for the invocation.- Throws:
ServerError
-
getThumbnailByLongestSideSet_async
public void getThumbnailByLongestSideSet_async(AMD_ThumbnailStore_getThumbnailByLongestSideSet __cb, RInt size, java.util.List<java.lang.Long> pixelsIds, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsRetrieves a number of thumbnails for pixels sets using given sets of rendering settings (RenderingDef). If the Thumbnails exist in the on-disk cache they will be returned directly, otherwise they will be created as ingetThumbnailByLongestSideDirect. The longest side of the image will be used to calculate the size for the smaller side in order to keep the aspect ratio of the original image. Unlike the other thumbnail retrieval methods, this method may be called without first callingsetPixelsId.- Specified by:
getThumbnailByLongestSideSet_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.size- the size of the longest side of the thumbnail requested.nullspecifies the default size of 48.pixelsIds- the Pixels sets to retrieve thumbnails for.__current- The Current object for the invocation.- Throws:
ServerError
-
getThumbnailByLongestSide_async
public void getThumbnailByLongestSide_async(AMD_ThumbnailStore_getThumbnailByLongestSide __cb, RInt size, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsRetrieves a thumbnail for a pixels set using a given set of rendering settings (RenderingDef). If the thumbnail exists in the on-disk cache it will be returned directly, otherwise it will be created as ingetThumbnailDirect, placed in the on-disk cache and returned. The longest side of the image will be used to calculate the size for the smaller side in order to keep the aspect ratio of the original image.- Specified by:
getThumbnailByLongestSide_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.size- the size of the longest side of the thumbnail requested.nullspecifies the default size of 48.__current- The Current object for the invocation.- Throws:
ServerError
-
getThumbnailDirect_async
public void getThumbnailDirect_async(AMD_ThumbnailStore_getThumbnailDirect __cb, RInt sizeX, RInt sizeY, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsRetrieves a thumbnail for a pixels set using a given set of rendering settings (RenderingDef). The Thumbnail will always be created directly, ignoring the on-disk cache.- Specified by:
getThumbnailDirect_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.sizeX- the X-axis width of the thumbnail.nullspecifies the default size of 48.sizeY- the Y-axis width of the thumbnail.nullspecifies the default size of 48.__current- The Current object for the invocation.- Throws:
ServerError
-
getThumbnailForSectionByLongestSideDirect_async
public void getThumbnailForSectionByLongestSideDirect_async(AMD_ThumbnailStore_getThumbnailForSectionByLongestSideDirect __cb, int theZ, int theT, RInt size, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsRetrieves a thumbnail for a pixels set using a given set of rendering settings (RenderingDef) for a particular section. The Thumbnail will always be created directly, ignoring the on-disk cache. The longest side of the image will be used to calculate the size for the smaller side in order to keep the aspect ratio of the original image.- Specified by:
getThumbnailForSectionByLongestSideDirect_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.theZ- the optical section (offset across the Z-axis) to use.theT- the timepoint (offset across the T-axis) to use.__current- The Current object for the invocation.- Throws:
ServerError
-
getThumbnailForSectionDirect_async
public void getThumbnailForSectionDirect_async(AMD_ThumbnailStore_getThumbnailForSectionDirect __cb, int theZ, int theT, RInt sizeX, RInt sizeY, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsRetrieves a thumbnail for a pixels set using a given set of rendering settings (RenderingDef) for a particular section. The Thumbnail will always be created directly, ignoring the on-disk cache.- Specified by:
getThumbnailForSectionDirect_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.theZ- the optical section (offset across the Z-axis) to use.theT- the timepoint (offset across the T-axis) to use.sizeY- the Y-axis width of the thumbnail.nullspecifies the default size of 48.__current- The Current object for the invocation.- Throws:
ServerError
-
getThumbnailSet_async
public void getThumbnailSet_async(AMD_ThumbnailStore_getThumbnailSet __cb, RInt sizeX, RInt sizeY, java.util.List<java.lang.Long> pixelsIds, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsRetrieves a number of thumbnails for pixels sets using given sets of rendering settings (RenderingDef). If the thumbnails exist in the on-disk cache they will be returned directly, otherwise they will be created as ingetThumbnailDirect, placed in the on-disk cache and returned. Unlike the other thumbnail retrieval methods, this method may be called without first callingsetPixelsId.- Specified by:
getThumbnailSet_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.sizeX- the X-axis width of the thumbnail.nullspecifies the default size of 48.sizeY- the Y-axis width of the thumbnail.nullspecifies the default size of 48.pixelsIds- the Pixels sets to retrieve thumbnails for.__current- The Current object for the invocation.- Throws:
ServerError
-
getThumbnail_async
public void getThumbnail_async(AMD_ThumbnailStore_getThumbnail __cb, RInt sizeX, RInt sizeY, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsRetrieves a thumbnail for a pixels set using a given set of rendering settings (RenderingDef). If the thumbnail exists in the on-disk cache it will be returned directly, otherwise it will be created as ingetThumbnailDirect, placed in the on-disk cache and returned. If the thumbnail is missing, a clock will be returned to signify that the thumbnail is yet to be generated.- Specified by:
getThumbnail_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.sizeX- the X-axis width of the thumbnail.nullspecifies the default size of 48.sizeY- the Y-axis width of the thumbnail.nullspecifies the default size of 48.__current- The Current object for the invocation.- Throws:
ServerError
-
getThumbnailWithoutDefault_async
public void getThumbnailWithoutDefault_async(AMD_ThumbnailStore_getThumbnailWithoutDefault __cb, RInt sizeX, RInt sizeY, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsRetrieves a thumbnail for a pixels set using a given set of rendering settings (RenderingDef). If the thumbnail exists in the on-disk cache it will be returned directly, otherwise it will be created as ingetThumbnailDirect, placed in the on-disk cache and returned. If the thumbnail is still to be generated, an empty array will be returned.- Specified by:
getThumbnailWithoutDefault_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.sizeX- the X-axis width of the thumbnail.nullspecifies the default size of 48.sizeY- the Y-axis width of the thumbnail.nullspecifies the default size of 48.__current- The Current object for the invocation.- Throws:
ServerError
-
resetDefaults_async
public void resetDefaults_async(AMD_ThumbnailStore_resetDefaults __cb, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsResets the rendering definition for the active pixels set to its default settings.- Specified by:
resetDefaults_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
setPixelsId_async
public void setPixelsId_async(AMD_ThumbnailStore_setPixelsId __cb, long pixelsId, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsThis method manages the state of the service; it must be invoked before using any other methods. As theThumbnailStorerelies on theRenderingEngine, a valid rendering definition must be available for it to work.- Specified by:
setPixelsId_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.pixelsId- anPixelsid.__current- The Current object for the invocation.- Throws:
ServerError
-
isInProgress_async
public void isInProgress_async(AMD_ThumbnailStore_isInProgress __cb, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsThis returns the last available in progress state for a thumbnail. Its return value is only expected to be valid after the call to any of the individual thumbnail retrieval methods.- Specified by:
isInProgress_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
setRenderingDefId_async
public void setRenderingDefId_async(AMD_ThumbnailStore_setRenderingDefId __cb, long renderingDefId, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsThis method manages the state of the service; it should be invoked directly aftersetPixelsId. If it is not invoked with a valid rendering definition ID before using the thumbnail accessor methods execution continues as ifrenderingDefIdwere set tonull.- Specified by:
setRenderingDefId_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.renderingDefId- anRenderingDefid.nullspecifies the user's currently active rendering settings to be used.__current- The Current object for the invocation.- Throws:
ServerError
-
thumbnailExists_async
public void thumbnailExists_async(AMD_ThumbnailStore_thumbnailExists __cb, RInt sizeX, RInt sizeY, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsChecks if a thumbnail of a particular size exists for a pixels set.- Specified by:
thumbnailExists_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.sizeX- the X-axis width of the thumbnail.nullspecifies the default size of 48.sizeY- the Y-axis width of the thumbnail.nullspecifies the default size of 48.__current- The Current object for the invocation.- Throws:
ServerError
-
getRenderingDefId_async
public void getRenderingDefId_async(AMD_ThumbnailStore_getRenderingDefId __cb, Ice.Current __current) throws ServerError
Description copied from interface:_ThumbnailStoreOperationsReturn the id of theRenderingDefloaded in this instance.- Specified by:
getRenderingDefId_asyncin interface_ThumbnailStoreOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
preClose
protected void preClose(Ice.Current current) throws java.lang.Throwable- Specified by:
preClosein classAbstractCloseableAmdServant- Throws:
java.lang.Throwable
-
postClose
protected void postClose(Ice.Current current)
Description copied from class:AbstractCloseableAmdServantShould not throw any exceptions which should be detected by clients since it is called in a finally block after the client thread has been released.- Specified by:
postClosein classAbstractCloseableAmdServant
-
-