public class MetadataStoreI extends AbstractCloseableAmdServant implements _MetadataStoreOperations, ServiceFactoryAware, BlitzOnly
Modifier and Type | Field and Description |
---|---|
protected ome.io.nio.OriginalFilesService |
filesService |
protected java.lang.String |
omeroDataDir |
protected PopulateRoiJob |
popRoi |
protected java.util.Set<java.lang.Long> |
savedImagesNotInPlates |
protected java.util.Set<java.lang.Long> |
savedPlates |
protected ServiceFactoryI |
sf |
protected ome.util.SqlAction |
sql |
protected ome.formats.OMEROMetadataStore |
store |
Constructor and Description |
---|
MetadataStoreI(BlitzExecutor be,
PopulateRoiJob popRoi,
ome.util.SqlAction sql,
ome.io.nio.OriginalFilesService filesService,
java.lang.String omeroDataDir) |
Modifier and Type | Method and Description |
---|---|
void |
createRoot_async(AMD_MetadataStore_createRoot __cb,
Ice.Current __current) |
void |
onSetOmeroContext(ome.system.OmeroContext ctx)
To be overridden by subclasses.
|
void |
populateMinMax_async(AMD_MetadataStore_populateMinMax __cb,
double[][][] imageChannelGlobalMinMax,
Ice.Current __current) |
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.
|
void |
postProcess_async(AMD_MetadataStore_postProcess __cb,
Ice.Current __current)
Called after some number of Passes the
savedPlates to a
background processor for further work. |
protected void |
preClose(Ice.Current current) |
void |
saveToDB_async(AMD_MetadataStore_saveToDB __cb,
FilesetJobLink link,
Ice.Current __current) |
void |
setPixelsFile_async(AMD_MetadataStore_setPixelsFile __cb,
long pixelsId,
java.lang.String file,
java.lang.String repo,
Ice.Current __current) |
void |
setServiceFactory(ServiceFactoryI sf) |
java.lang.Boolean |
toJavaType(RBool x)
Transforms an OMERO RType into the corresponding Java type.
|
java.lang.Double |
toJavaType(RDouble x)
Transforms an OMERO RType into the corresponding Java type.
|
java.lang.Float |
toJavaType(RFloat x)
Transforms an OMERO RType into the corresponding Java type.
|
java.lang.Integer |
toJavaType(RInt x)
Transforms an OMERO RType into the corresponding Java type.
|
java.lang.Long |
toJavaType(RLong x)
Transforms an OMERO RType into the corresponding Java type.
|
java.lang.String |
toJavaType(RString x)
Transforms an OMERO RType into the corresponding Java type.
|
void |
updateObjects_async(AMD_MetadataStore_updateObjects __cb,
IObjectContainer[] objects,
Ice.Current __current) |
void |
updateReferences_async(AMD_MetadataStore_updateReferences __cb,
java.util.Map<java.lang.String,java.lang.String[]> references,
Ice.Current __current) |
close_async, close
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activate_async, close_async, getCurrentEventContext_async, passivate_async
protected final java.util.Set<java.lang.Long> savedPlates
protected final java.util.Set<java.lang.Long> savedImagesNotInPlates
protected ome.formats.OMEROMetadataStore store
protected ServiceFactoryI sf
protected PopulateRoiJob popRoi
protected final ome.util.SqlAction sql
protected final ome.io.nio.OriginalFilesService filesService
protected final java.lang.String omeroDataDir
public MetadataStoreI(BlitzExecutor be, PopulateRoiJob popRoi, ome.util.SqlAction sql, ome.io.nio.OriginalFilesService filesService, java.lang.String omeroDataDir) throws java.lang.Exception
java.lang.Exception
public void setServiceFactory(ServiceFactoryI sf) throws ServerError
setServiceFactory
in interface ServiceFactoryAware
ServerError
public void onSetOmeroContext(ome.system.OmeroContext ctx) throws java.lang.Exception
AbstractAmdServant
onSetOmeroContext
in class AbstractAmdServant
java.lang.Exception
public void createRoot_async(AMD_MetadataStore_createRoot __cb, Ice.Current __current) throws ServerError
createRoot_async
in interface _MetadataStoreOperations
ServerError
public void populateMinMax_async(AMD_MetadataStore_populateMinMax __cb, double[][][] imageChannelGlobalMinMax, Ice.Current __current) throws ServerError
populateMinMax_async
in interface _MetadataStoreOperations
ServerError
public void saveToDB_async(AMD_MetadataStore_saveToDB __cb, FilesetJobLink link, Ice.Current __current) throws ServerError
saveToDB_async
in interface _MetadataStoreOperations
ServerError
public void updateObjects_async(AMD_MetadataStore_updateObjects __cb, IObjectContainer[] objects, Ice.Current __current) throws ServerError
updateObjects_async
in interface _MetadataStoreOperations
ServerError
public void updateReferences_async(AMD_MetadataStore_updateReferences __cb, java.util.Map<java.lang.String,java.lang.String[]> references, Ice.Current __current) throws ServerError
updateReferences_async
in interface _MetadataStoreOperations
ServerError
public void postProcess_async(AMD_MetadataStore_postProcess __cb, Ice.Current __current) throws ServerError
savedPlates
to a
background processor for further work. This happens on
AbstractCloseableAmdServant.close_async(AMD_StatefulServiceInterface_close, Current)
since
no further pixels can be created, but also on
createRoot_async(AMD_MetadataStore_createRoot, Current)
which is
used by the client to reset the status of this instance. To prevent any
possiblepostProcess_async
in interface _MetadataStoreOperations
ServerError
public void setPixelsFile_async(AMD_MetadataStore_setPixelsFile __cb, long pixelsId, java.lang.String file, java.lang.String repo, Ice.Current __current) throws ServerError
setPixelsFile_async
in interface _MetadataStoreOperations
ServerError
public java.lang.Integer toJavaType(RInt x)
x
- OMERO RType value.null
if x
is
null
.public java.lang.Long toJavaType(RLong x)
x
- OMERO RType value.null
if x
is
null
.public java.lang.Boolean toJavaType(RBool x)
x
- OMERO RType value.null
if x
is
null
.public java.lang.Float toJavaType(RFloat x)
x
- OMERO RType value.null
if x
is
null
.public java.lang.Double toJavaType(RDouble x)
x
- OMERO RType value.null
if x
is
null
.public java.lang.String toJavaType(RString x)
x
- OMERO RType value.null
if x
is
null
.protected void preClose(Ice.Current current)
preClose
in class AbstractCloseableAmdServant
protected void postClose(Ice.Current current)
AbstractCloseableAmdServant
postClose
in class AbstractCloseableAmdServant