/** * Bean injection setter for ROMIO pixels service * @param pixelsService the pixels service */ public void setPixelsService(PixelsService pixelsService) { getBeanHelper().throwIfAlreadySet(this.pixelsService, pixelsService); this.pixelsService = pixelsService; }
/** * @see ome.api.IRepositoryInfo#sanityCheckRepository() */ @RolesAllowed("user") public void sanityCheckRepository() throws InternalException { if (needsSanityCheck()) { synchronized (lastLock) { // Check the time again, in case another thread // updated the values. if (needsSanityCheck()) { try { lastUsage = getUsageFraction() * 100; } catch (Throwable t) { log.error( "Critical failure sanity checking repository.", t); throw new InternalException( "Error in sanityCheckRepository(): " + t.getMessage()); } lastCheck = System.currentTimeMillis(); } } } if (lastUsage > CRITICAL_USAGE) { throw new ResourceError(String.format( "Server repository disk space usage (%s%%) exceeds %s%%", lastUsage, CRITICAL_USAGE)); } }
/** * Bean injection setter for ROMIO thumbnail service * @param thumbnailService the thumbnail service */ public void setThumbnailService(ThumbnailService thumbnailService) { getBeanHelper().throwIfAlreadySet(this.thumbnailService, thumbnailService); this.thumbnailService = thumbnailService; }
/** * Bean injection setter for SQL operations * @param sql the SQL action instance */ public void setSqlAction(SqlAction sql) { getBeanHelper().throwIfAlreadySet(this.sql, sql); this.sql = sql; }
/** * Bean injection setter for ROMIO file service * @param fileService the raw file service */ public void setFileService(OriginalFilesService fileService) { getBeanHelper().throwIfAlreadySet(this.fileService, fileService); this.fileService = fileService; }