public class OmeroGateway extends AbstractCloseableAmdServant implements ServiceFactoryAware, omero.api._GatewayOperations, BlitzOnly
Constructor and Description |
---|
OmeroGateway(BlitzExecutor be) |
Modifier and Type | Method and Description |
---|---|
void |
attachImageToDataset(omero.model.Dataset dataset,
omero.model.Image image,
Ice.Current __current) |
long |
copyImage(long imageId,
int x,
int y,
int t,
int z,
List<Integer> channelList,
String imageName,
Ice.Current __current) |
long |
copyPixels(long pixelsID,
List<Integer> channelList,
String methodology,
Ice.Current __current) |
long |
copyPixelsXYTZ(long pixelsID,
int x,
int y,
int t,
int z,
List<Integer> channelList,
String methodology,
Ice.Current __current) |
long |
createImage(int sizeX,
int sizeY,
int sizeZ,
int sizeT,
List<Integer> channelList,
omero.model.PixelsType pixelsType,
String name,
String description,
Ice.Current __current) |
void |
deleteObject(omero.model.IObject row,
Ice.Current __current) |
List<omero.model.IObject> |
findAllByQuery(String myQuery,
Ice.Current __current) |
omero.model.IObject |
findByQuery(String myQuery,
Ice.Current __current) |
omero.model.Dataset |
getDataset(long datasetId,
boolean leaves,
Ice.Current __current) |
List<omero.model.Dataset> |
getDatasets(List<Long> ids,
boolean withLeaves,
Ice.Current __current) |
omero.model.Image |
getImage(long id,
Ice.Current __current) |
List<omero.model.Image> |
getImageByName(String imageName,
Ice.Current __current) |
List<omero.model.Image> |
getImageFromDatasetByName(long datasetId,
String imageName,
Ice.Current __current) |
List<omero.model.Image> |
getImages(omero.api.ContainerClass parentType,
List<Long> ids,
Ice.Current __current) |
omero.model.Pixels |
getPixels(long pixelsId,
Ice.Current __current) |
List<omero.model.Pixels> |
getPixelsFromImage(long imageId,
Ice.Current __current) |
omero.model.PixelsType |
getPixelType(String type,
Ice.Current __current) |
List<omero.model.PixelsType> |
getPixelTypes(Ice.Current __current) |
byte[] |
getPlane(long pixelsId,
int z,
int c,
int t,
Ice.Current current)
Get the raw plane for the pixels pixelsId, this returns a 2d array
representing the plane, it returns doubles but will not lose data.
|
List<omero.model.Project> |
getProjects(List<Long> ids,
boolean withLeaves,
Ice.Current __current) |
int[] |
getRenderedImage(long pixelsId,
int z,
int t,
Ice.Current __current) |
int[][][] |
getRenderedImageMatrix(long pixelsId,
int z,
int t,
Ice.Current __current) |
byte[] |
getThumbnail(long pixelsId,
omero.RInt sizeX,
omero.RInt sizeY,
Ice.Current __current) |
Map<Long,byte[]> |
getThumbnailSet(omero.RInt sizeX,
omero.RInt sizeY,
List<Long> pixelsIds,
Ice.Current __current) |
void |
keepAlive(Ice.Current current)
Keep service alive.
|
protected void |
postClose(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 void |
preClose(Ice.Current current) |
int[] |
renderAsPackedIntAsRGBA(long pixelsId,
int z,
int t,
Ice.Current __current) |
List<omero.model.IObject> |
saveAndReturnArray(List<omero.model.IObject> graph,
Ice.Current __current) |
omero.model.IObject |
saveAndReturnObject(omero.model.IObject obj,
Ice.Current __current) |
void |
saveArray(List<omero.model.IObject> graph,
Ice.Current __current) |
void |
saveObject(omero.model.IObject obj,
Ice.Current __current) |
void |
setActive(long pixelsId,
int w,
boolean active,
Ice.Current __current) |
void |
setServiceFactory(ServiceFactoryI sf)
Initialize the service factory which creates the gateway and services
and links the different services together.
|
omero.model.Pixels |
updatePixels(omero.model.Pixels pixels,
Ice.Current __current) |
void |
uploadPlane(long pixelsId,
int z,
int c,
int t,
byte[] data,
Ice.Current __current) |
close_async, close
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolder
public OmeroGateway(BlitzExecutor be)
public void setServiceFactory(ServiceFactoryI sf) throws omero.ServerError
setServiceFactory
in interface ServiceFactoryAware
client
- an already existing client object.DSOutOfServiceException
omero.ServerError
public void attachImageToDataset(omero.model.Dataset dataset, omero.model.Image image, Ice.Current __current) throws omero.ServerError
attachImageToDataset
in interface omero.api._GatewayOperations
omero.ServerError
public long copyPixels(long pixelsID, List<Integer> channelList, String methodology, Ice.Current __current) throws omero.ServerError
copyPixels
in interface omero.api._GatewayOperations
omero.ServerError
public long copyPixelsXYTZ(long pixelsID, int x, int y, int t, int z, List<Integer> channelList, String methodology, Ice.Current __current) throws omero.ServerError
copyPixelsXYTZ
in interface omero.api._GatewayOperations
omero.ServerError
public long createImage(int sizeX, int sizeY, int sizeZ, int sizeT, List<Integer> channelList, omero.model.PixelsType pixelsType, String name, String description, Ice.Current __current) throws omero.ServerError
createImage
in interface omero.api._GatewayOperations
omero.ServerError
public void deleteObject(omero.model.IObject row, Ice.Current __current) throws omero.ServerError
deleteObject
in interface omero.api._GatewayOperations
omero.ServerError
public List<omero.model.IObject> findAllByQuery(String myQuery, Ice.Current __current) throws omero.ServerError
findAllByQuery
in interface omero.api._GatewayOperations
omero.ServerError
public omero.model.IObject findByQuery(String myQuery, Ice.Current __current) throws omero.ServerError
findByQuery
in interface omero.api._GatewayOperations
omero.ServerError
public omero.model.Dataset getDataset(long datasetId, boolean leaves, Ice.Current __current) throws omero.ServerError
getDataset
in interface omero.api._GatewayOperations
omero.ServerError
public List<omero.model.Dataset> getDatasets(List<Long> ids, boolean withLeaves, Ice.Current __current) throws omero.ServerError
getDatasets
in interface omero.api._GatewayOperations
omero.ServerError
public omero.model.Image getImage(long id, Ice.Current __current) throws omero.ServerError
getImage
in interface omero.api._GatewayOperations
omero.ServerError
public List<omero.model.Image> getImageByName(String imageName, Ice.Current __current) throws omero.ServerError
getImageByName
in interface omero.api._GatewayOperations
omero.ServerError
public List<omero.model.Image> getImageFromDatasetByName(long datasetId, String imageName, Ice.Current __current) throws omero.ServerError
getImageFromDatasetByName
in interface omero.api._GatewayOperations
omero.ServerError
public List<omero.model.Image> getImages(omero.api.ContainerClass parentType, List<Long> ids, Ice.Current __current) throws omero.ServerError
getImages
in interface omero.api._GatewayOperations
omero.ServerError
public omero.model.PixelsType getPixelType(String type, Ice.Current __current) throws omero.ServerError
getPixelType
in interface omero.api._GatewayOperations
omero.ServerError
public List<omero.model.PixelsType> getPixelTypes(Ice.Current __current) throws omero.ServerError
getPixelTypes
in interface omero.api._GatewayOperations
omero.ServerError
public omero.model.Pixels getPixels(long pixelsId, Ice.Current __current) throws omero.ServerError
getPixels
in interface omero.api._GatewayOperations
omero.ServerError
public List<omero.model.Pixels> getPixelsFromImage(long imageId, Ice.Current __current) throws omero.ServerError
getPixelsFromImage
in interface omero.api._GatewayOperations
omero.ServerError
public List<omero.model.Project> getProjects(List<Long> ids, boolean withLeaves, Ice.Current __current) throws omero.ServerError
getProjects
in interface omero.api._GatewayOperations
omero.ServerError
public int[] getRenderedImage(long pixelsId, int z, int t, Ice.Current __current) throws omero.ServerError
getRenderedImage
in interface omero.api._GatewayOperations
omero.ServerError
public int[] renderAsPackedIntAsRGBA(long pixelsId, int z, int t, Ice.Current __current) throws omero.ServerError
renderAsPackedIntAsRGBA
in interface omero.api._GatewayOperations
omero.ServerError
public int[][][] getRenderedImageMatrix(long pixelsId, int z, int t, Ice.Current __current) throws omero.ServerError
getRenderedImageMatrix
in interface omero.api._GatewayOperations
omero.ServerError
public byte[] getThumbnail(long pixelsId, omero.RInt sizeX, omero.RInt sizeY, Ice.Current __current) throws omero.ServerError
getThumbnail
in interface omero.api._GatewayOperations
omero.ServerError
public Map<Long,byte[]> getThumbnailSet(omero.RInt sizeX, omero.RInt sizeY, List<Long> pixelsIds, Ice.Current __current) throws omero.ServerError
getThumbnailSet
in interface omero.api._GatewayOperations
omero.ServerError
public List<omero.model.IObject> saveAndReturnArray(List<omero.model.IObject> graph, Ice.Current __current) throws omero.ServerError
saveAndReturnArray
in interface omero.api._GatewayOperations
omero.ServerError
public omero.model.IObject saveAndReturnObject(omero.model.IObject obj, Ice.Current __current) throws omero.ServerError
saveAndReturnObject
in interface omero.api._GatewayOperations
omero.ServerError
public void saveArray(List<omero.model.IObject> graph, Ice.Current __current) throws omero.ServerError
saveArray
in interface omero.api._GatewayOperations
omero.ServerError
public void saveObject(omero.model.IObject obj, Ice.Current __current) throws omero.ServerError
saveObject
in interface omero.api._GatewayOperations
omero.ServerError
public void setActive(long pixelsId, int w, boolean active, Ice.Current __current) throws omero.ServerError
setActive
in interface omero.api._GatewayOperations
omero.ServerError
public long copyImage(long imageId, int x, int y, int t, int z, List<Integer> channelList, String imageName, Ice.Current __current) throws omero.ServerError
copyImage
in interface omero.api._GatewayOperations
omero.ServerError
public void keepAlive(Ice.Current current) throws omero.ServerError
keepAlive
in interface omero.api._GatewayOperations
DSOutOfServiceException
omero.ServerError
public void uploadPlane(long pixelsId, int z, int c, int t, byte[] data, Ice.Current __current) throws omero.ServerError
uploadPlane
in interface omero.api._GatewayOperations
omero.ServerError
public omero.model.Pixels updatePixels(omero.model.Pixels pixels, Ice.Current __current) throws omero.ServerError
updatePixels
in interface omero.api._GatewayOperations
omero.ServerError
public byte[] getPlane(long pixelsId, int z, int c, int t, Ice.Current current) throws omero.ServerError
getPlane
in interface omero.api._GatewayOperations
pixelsId
- id of the pixels to retrieve.c
- the channel of the pixels to retrieve.t
- the time point to retrieve.z
- the z section to retrieve.omero.ServerError
protected void preClose(Ice.Current current) throws Throwable
preClose
in class AbstractCloseableAmdServant
Throwable
protected void postClose(Ice.Current current)
AbstractCloseableAmdServant
postClose
in class AbstractCloseableAmdServant
Version: 4.4.12-ice34-b116
Copyright © 2014 The University of Dundee & Open Microscopy Environment. All Rights Reserved.