@Transactional public class RepositoryInfoImpl extends AbstractLevel2Service implements IRepositoryInfo
Stateless ome.logic to determine disk space utilization at the server's data image mount point, e.g. /OMERO See source code documentation for more.
Copyright 2007 Glencoe Software Inc. All rights reserved. Use is subject to license terms supplied in LICENSE.txt
IRepositoryInfo| Modifier and Type | Field and Description | 
|---|---|
static double | 
CRITICAL_USAGE
Percentage (100.0 - 0.0) of disk use which will cause an exception during
  
sanityCheckRepository() | 
static long | 
INITIAL_DELAY
Time (2 minutes) between successive calls to
  
sanityCheckRepository() needed to trigger an actual call to
 getUsageFraction() | 
iQuery, iUpdate, metadata, queryFactory, sec| Constructor and Description | 
|---|
RepositoryInfoImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
getFreeSpaceInKilobytes()
This method returns the free or available space on this file system
 including nested subdirectories. 
 | 
Class<? extends ServiceInterface> | 
getServiceInterface()  | 
double | 
getUsageFraction()
Deprecated.  
 | 
long | 
getUsedSpaceInKilobytes()
Deprecated.  
 | 
boolean | 
needsSanityCheck()
Calculates based on the cached usage and the
 elapsed time whether or not a real
  
sanityCheckRepository() should be calculated. | 
void | 
removeUnusedFiles()
Removes all files from the server that do not have an OriginalFile
 complement in the database, all the Pixels that do not have a complement
 in the database and all the Thumbnail's that do not have a complement in
 the database. 
 | 
void | 
sanityCheckRepository()
Checks that image data repository has not exceeded 95% disk space use
 level. 
 | 
void | 
setDatadir(String datadir)
Bean injection setter for data repository directory 
 | 
void | 
setFileService(OriginalFilesService fileService)
Bean injection setter for ROMIO file service 
 | 
void | 
setPixelsService(PixelsService pixelsService)
Bean injection setter for ROMIO pixels service 
 | 
void | 
setSqlAction(SqlAction sql)
Bean injection setter for SQL operations 
 | 
void | 
setThumbnailService(ThumbnailService thumbnailService)
Bean injection setter for ROMIO thumbnail service 
 | 
getBeanHelper, getExtendedMetadata, getQueryFactory, getSecuritySystem, selfConfigure, setExtendedMetadata, setQueryFactory, setQueryService, setSecuritySystem, setUpdateServicepublic static final long INITIAL_DELAY
sanityCheckRepository() needed to trigger an actual call to
 getUsageFraction()public static final double CRITICAL_USAGE
sanityCheckRepository()public void setThumbnailService(ThumbnailService thumbnailService)
thumbnailService - the thumbnail servicepublic void setPixelsService(PixelsService pixelsService)
pixelsService - the pixels servicepublic void setFileService(OriginalFilesService fileService)
fileService - the raw file servicepublic void setSqlAction(SqlAction sql)
sql - the SQL action instancepublic long getFreeSpaceInKilobytes()
IRepositoryInfogetFreeSpaceInKilobytes in interface IRepositoryInfo@Deprecated public long getUsedSpaceInKilobytes()
IRepositoryInfogetUsedSpaceInKilobytes in interface IRepositoryInfo@Deprecated public double getUsageFraction()
IRepositoryInfogetUsageFraction in interface IRepositoryInfopublic final Class<? extends ServiceInterface> getServiceInterface()
getServiceInterface in interface SelfConfigurableServicepublic void setDatadir(String datadir)
datadir - the data repository directorypublic boolean needsSanityCheck()
sanityCheckRepository() should be calculated.public void sanityCheckRepository()
                           throws InternalException
IRepositoryInfosanityCheckRepository in interface IRepositoryInfoInternalException - If there is a critical failure while sanity
 checking the repository.IRepositoryInfo.sanityCheckRepository()public void removeUnusedFiles()
IRepositoryInforemoveUnusedFiles in interface IRepositoryInfo
                
                
Version: 5.2.3-ice35-b22
Copyright © 2016 The University of Dundee & Open Microscopy Environment. All Rights Reserved.