Package ome.services.blitz.repo
Class AbstractRepositoryI
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.grid._InternalRepositoryDisp
-
- ome.services.blitz.repo.AbstractRepositoryI
-
- All Implemented Interfaces:
Ice.Object
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,_InternalRepositoryOperations
,_InternalRepositoryOperationsNC
,InternalRepository
,org.springframework.context.ApplicationListener<ome.util.messages.InternalMessage>
- Direct Known Subclasses:
InternalRepositoryI
,LegacyRepositoryI
,ScriptRepositoryI
,TemporaryRepositoryI
public abstract class AbstractRepositoryI extends _InternalRepositoryDisp implements org.springframework.context.ApplicationListener<ome.util.messages.InternalMessage>
Base repository class responsible for properly handling directorytakeover
and other lifecycle tasks. Individual instances will be responsible for providing the other service instances which are returned from this service.- Since:
- Beta4.2
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class omero.grid._InternalRepositoryDisp
__ids, serialVersionUID
-
Fields inherited from interface omero.grid.InternalRepository
ice_staticId
-
-
Constructor Summary
Constructors Constructor Description AbstractRepositoryI(Ice.ObjectAdapter oa, Registry reg, ome.services.util.Executor ex, ome.system.Principal p, java.lang.String repoDir, PublicRepositoryI servant)
Deprecated.AbstractRepositoryI(Ice.ObjectAdapter oa, Registry reg, ome.services.util.Executor ex, ome.system.Principal p, java.lang.String repoDir, ome.services.util.ReadOnlyStatus readOnly, PublicRepositoryI servant)
AbstractRepositoryI(Ice.ObjectAdapter oa, Registry reg, ome.services.util.Executor ex, ome.system.Principal p, FileMaker fileMaker, PublicRepositoryI servant)
Deprecated.AbstractRepositoryI(Ice.ObjectAdapter oa, Registry reg, ome.services.util.Executor ex, ome.system.Principal p, FileMaker fileMaker, ome.services.util.ReadOnlyStatus readOnly, PublicRepositoryI servant)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
RawFileStorePrx
createRawFileStore(OriginalFile file, Ice.Current __current)
RawPixelsStorePrx
createRawPixelsStore(OriginalFile file, Ice.Current __current)
RenderingEnginePrx
createRenderingEngine(OriginalFile file, Ice.Current __current)
ThumbnailStorePrx
createThumbnailStore(OriginalFile file, Ice.Current __current)
java.lang.String
generateRepoUuid()
Called when this repository is creating a newOriginalFile
repository object.Ice.Communicator
getCommunicator()
protected OriginalFileI
getDescription(long id)
OriginalFile
getDescription(Ice.Current __current)
abstract java.lang.String
getFilePath(OriginalFile file, Ice.Current __current)
protected java.lang.String
getFileRepo(OriginalFile file)
Ice.ObjectAdapter
getObjectAdapter()
RepositoryPrx
getProxy(Ice.Current __current)
java.lang.String
getRepoUuid()
void
onApplicationEvent(ome.util.messages.InternalMessage im)
Response
rawAccess(RawAccessRequest req, Ice.Current __current)
boolean
takeover()
Method called in a background thread which may end up waiting indefinitely on the repository lock file ("${omero.data.dir}/.omero/repository/${omero.db.uuid}/repo_uuid").-
Methods inherited from class omero.grid._InternalRepositoryDisp
___createRawFileStore, ___createRawPixelsStore, ___createRenderingEngine, ___createThumbnailStore, ___getDescription, ___getFilePath, ___getProxy, ___rawAccess, __dispatch, __readImpl, __writeImpl, createRawFileStore, createRawPixelsStore, createRenderingEngine, createThumbnailStore, getDescription, getFilePath, getProxy, ice_copyStateFrom, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId, rawAccess
-
Methods inherited from class Ice.ObjectImpl
___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __read, __read, __readImpl, __write, __write, __writeImpl, clone, ice_dispatch, ice_dispatch, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
-
-
-
-
Constructor Detail
-
AbstractRepositoryI
@Deprecated public AbstractRepositoryI(Ice.ObjectAdapter oa, Registry reg, ome.services.util.Executor ex, ome.system.Principal p, java.lang.String repoDir, PublicRepositoryI servant)
Deprecated.
-
AbstractRepositoryI
@Deprecated public AbstractRepositoryI(Ice.ObjectAdapter oa, Registry reg, ome.services.util.Executor ex, ome.system.Principal p, FileMaker fileMaker, PublicRepositoryI servant)
Deprecated.
-
AbstractRepositoryI
public AbstractRepositoryI(Ice.ObjectAdapter oa, Registry reg, ome.services.util.Executor ex, ome.system.Principal p, java.lang.String repoDir, ome.services.util.ReadOnlyStatus readOnly, PublicRepositoryI servant)
-
AbstractRepositoryI
public AbstractRepositoryI(Ice.ObjectAdapter oa, Registry reg, ome.services.util.Executor ex, ome.system.Principal p, FileMaker fileMaker, ome.services.util.ReadOnlyStatus readOnly, PublicRepositoryI servant)
-
-
Method Detail
-
generateRepoUuid
public java.lang.String generateRepoUuid()
Called when this repository is creating a newOriginalFile
repository object.
-
onApplicationEvent
public void onApplicationEvent(ome.util.messages.InternalMessage im)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<ome.util.messages.InternalMessage>
-
takeover
public boolean takeover()
Method called in a background thread which may end up waiting indefinitely on the repository lock file ("${omero.data.dir}/.omero/repository/${omero.db.uuid}/repo_uuid").
-
close
public void close()
-
getRepoUuid
public final java.lang.String getRepoUuid()
-
getCommunicator
public final Ice.Communicator getCommunicator()
-
getObjectAdapter
public final Ice.ObjectAdapter getObjectAdapter()
-
getDescription
public final OriginalFile getDescription(Ice.Current __current)
- Specified by:
getDescription
in interface_InternalRepositoryOperations
-
getProxy
public final RepositoryPrx getProxy(Ice.Current __current)
- Specified by:
getProxy
in interface_InternalRepositoryOperations
-
rawAccess
public Response rawAccess(RawAccessRequest req, Ice.Current __current) throws ServerError
- Specified by:
rawAccess
in interface_InternalRepositoryOperations
- Throws:
ServerError
-
getFilePath
public abstract java.lang.String getFilePath(OriginalFile file, Ice.Current __current) throws ServerError
- Specified by:
getFilePath
in interface_InternalRepositoryOperations
- Throws:
ServerError
-
createRawFileStore
public RawFileStorePrx createRawFileStore(OriginalFile file, Ice.Current __current)
- Specified by:
createRawFileStore
in interface_InternalRepositoryOperations
-
createRawPixelsStore
public RawPixelsStorePrx createRawPixelsStore(OriginalFile file, Ice.Current __current)
- Specified by:
createRawPixelsStore
in interface_InternalRepositoryOperations
-
createRenderingEngine
public RenderingEnginePrx createRenderingEngine(OriginalFile file, Ice.Current __current)
- Specified by:
createRenderingEngine
in interface_InternalRepositoryOperations
-
createThumbnailStore
public ThumbnailStorePrx createThumbnailStore(OriginalFile file, Ice.Current __current)
- Specified by:
createThumbnailStore
in interface_InternalRepositoryOperations
-
getDescription
protected OriginalFileI getDescription(long id) throws ServerError
- Throws:
ServerError
-
getFileRepo
protected java.lang.String getFileRepo(OriginalFile file) throws ServerError
- Throws:
ServerError
-
-