ome.services.blitz.repo
Class AbstractRepositoryI

java.lang.Object
  extended by Ice.ObjectImpl
      extended by omero.grid._InternalRepositoryDisp
          extended by ome.services.blitz.repo.AbstractRepositoryI
All Implemented Interfaces:
Ice.Object, Serializable, Cloneable, omero.grid._InternalRepositoryOperations, omero.grid._InternalRepositoryOperationsNC, omero.grid.InternalRepository
Direct Known Subclasses:
InternalRepositoryI, LegacyRepositoryI, ScriptRepositoryI, TemporaryRepositoryI

public abstract class AbstractRepositoryI
extends omero.grid._InternalRepositoryDisp

Base repository class responsible for properly handling directory takeover 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
 
Constructor Summary
AbstractRepositoryI(Ice.ObjectAdapter oa, Registry reg, Executor ex, ome.util.SqlAction sql, String sessionUuid, FileMaker fileMaker)
           
AbstractRepositoryI(Ice.ObjectAdapter oa, Registry reg, Executor ex, ome.util.SqlAction sql, String sessionUuid, String repoDir)
           
 
Method Summary
 void close()
           
 omero.api.RawFileStorePrx createRawFileStore(omero.model.OriginalFile file, Ice.Current __current)
           
 omero.api.RawPixelsStorePrx createRawPixelsStore(omero.model.OriginalFile file, Ice.Current __current)
           
 omero.api.RenderingEnginePrx createRenderingEngine(omero.model.OriginalFile file, Ice.Current __current)
           
 omero.api.ThumbnailStorePrx createThumbnailStore(omero.model.OriginalFile file, Ice.Current __current)
           
 String generateRepoUuid()
          Called when this repository is creating a new OriginalFile repository object.
 Ice.Communicator getCommunicator()
           
 omero.model.OriginalFile getDescription(Ice.Current __current)
           
protected  omero.model.OriginalFileI getDescription(long id)
           
abstract  String getFilePath(omero.model.OriginalFile file, Ice.Current __current)
           
protected  String getFileRepo(omero.model.OriginalFile file)
           
 Ice.ObjectAdapter getObjectAdapter()
           
 omero.grid.RepositoryPrx getProxy(Ice.Current __current)
           
 String getRepoUuid()
           
 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, __dispatch, __read, __read, __write, __write, createRawFileStore, createRawPixelsStore, createRenderingEngine, createThumbnailStore, getDescription, getFilePath, getProxy, ice_copyStateFrom, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId
 
Methods inherited from class Ice.ObjectImpl
___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __collocDispatch, clone, ice_dispatch, ice_hash, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Ice.Object
__collocDispatch, clone, equals, ice_dispatch, ice_hash, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
 

Constructor Detail

AbstractRepositoryI

public AbstractRepositoryI(Ice.ObjectAdapter oa,
                           Registry reg,
                           Executor ex,
                           ome.util.SqlAction sql,
                           String sessionUuid,
                           String repoDir)

AbstractRepositoryI

public AbstractRepositoryI(Ice.ObjectAdapter oa,
                           Registry reg,
                           Executor ex,
                           ome.util.SqlAction sql,
                           String sessionUuid,
                           FileMaker fileMaker)
Method Detail

generateRepoUuid

public String generateRepoUuid()
Called when this repository is creating a new OriginalFile repository object.


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 String getRepoUuid()

getCommunicator

public final Ice.Communicator getCommunicator()

getObjectAdapter

public final Ice.ObjectAdapter getObjectAdapter()

getDescription

public final omero.model.OriginalFile getDescription(Ice.Current __current)

getProxy

public final omero.grid.RepositoryPrx getProxy(Ice.Current __current)

getFilePath

public abstract String getFilePath(omero.model.OriginalFile file,
                                   Ice.Current __current)
                            throws omero.ServerError
Throws:
omero.ServerError

createRawFileStore

public omero.api.RawFileStorePrx createRawFileStore(omero.model.OriginalFile file,
                                                    Ice.Current __current)

createRawPixelsStore

public omero.api.RawPixelsStorePrx createRawPixelsStore(omero.model.OriginalFile file,
                                                        Ice.Current __current)

createRenderingEngine

public omero.api.RenderingEnginePrx createRenderingEngine(omero.model.OriginalFile file,
                                                          Ice.Current __current)

createThumbnailStore

public omero.api.ThumbnailStorePrx createThumbnailStore(omero.model.OriginalFile file,
                                                        Ice.Current __current)

getDescription

protected omero.model.OriginalFileI getDescription(long id)
                                            throws omero.ServerError
Throws:
omero.ServerError

getFileRepo

protected String getFileRepo(omero.model.OriginalFile file)
                      throws omero.ServerError
Throws:
omero.ServerError


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

Copyright © 2009 The University of Dundee. All Rights Reserved.