Package ome.services.blitz.impl
Class RepositoryInfoI
- java.lang.Object
-
- ome.services.blitz.impl.AbstractAmdServant
-
- ome.services.blitz.impl.RepositoryInfoI
-
- All Implemented Interfaces:
_IRepositoryInfoOperations,_ServiceInterfaceOperations,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class RepositoryInfoI extends AbstractAmdServant implements _IRepositoryInfoOperations
Implementation of the IRepositoryInfo service.- Since:
- 3.0-Beta4
- See Also:
IRepositoryInfo
-
-
Constructor Summary
Constructors Constructor Description RepositoryInfoI(ome.api.IRepositoryInfo service, BlitzExecutor be)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetFreeSpaceInKilobytes_async(AMD_IRepositoryInfo_getFreeSpaceInKilobytes __cb, Ice.Current __current)Returns the free or available space on this file system including nested subdirectories.voidgetUsageFraction_async(AMD_IRepositoryInfo_getUsageFraction __cb, Ice.Current __current)Returns a double of the used space divided by the free space.voidgetUsedSpaceInKilobytes_async(AMD_IRepositoryInfo_getUsedSpaceInKilobytes __cb, Ice.Current __current)Returns the total space in bytes for this file system including nested subdirectories.voidremoveUnusedFiles_async(AMD_IRepositoryInfo_removeUnusedFiles __cb, Ice.Current __current)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.voidsanityCheckRepository_async(AMD_IRepositoryInfo_sanityCheckRepository __cb, Ice.Current __current)Checks that image data repository has not exceeded 95% disk space use level.-
Methods inherited from class ome.services.blitz.impl.AbstractAmdServant
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolder
-
-
-
-
Constructor Detail
-
RepositoryInfoI
public RepositoryInfoI(ome.api.IRepositoryInfo service, BlitzExecutor be)
-
-
Method Detail
-
getFreeSpaceInKilobytes_async
public void getFreeSpaceInKilobytes_async(AMD_IRepositoryInfo_getFreeSpaceInKilobytes __cb, Ice.Current __current) throws ServerError
Description copied from interface:_IRepositoryInfoOperationsReturns the free or available space on this file system including nested subdirectories.- Specified by:
getFreeSpaceInKilobytes_asyncin interface_IRepositoryInfoOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
getUsageFraction_async
public void getUsageFraction_async(AMD_IRepositoryInfo_getUsageFraction __cb, Ice.Current __current) throws ServerError
Description copied from interface:_IRepositoryInfoOperationsReturns a double of the used space divided by the free space. This method will be called by a client to watch the repository filesystem so that it doesn't exceed 95% full.- Specified by:
getUsageFraction_asyncin interface_IRepositoryInfoOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
getUsedSpaceInKilobytes_async
public void getUsedSpaceInKilobytes_async(AMD_IRepositoryInfo_getUsedSpaceInKilobytes __cb, Ice.Current __current) throws ServerError
Description copied from interface:_IRepositoryInfoOperationsReturns the total space in bytes for this file system including nested subdirectories.- Specified by:
getUsedSpaceInKilobytes_asyncin interface_IRepositoryInfoOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
removeUnusedFiles_async
public void removeUnusedFiles_async(AMD_IRepositoryInfo_removeUnusedFiles __cb, Ice.Current __current) throws ServerError
Description copied from interface:_IRepositoryInfoOperationsRemoves 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.- Specified by:
removeUnusedFiles_asyncin interface_IRepositoryInfoOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
sanityCheckRepository_async
public void sanityCheckRepository_async(AMD_IRepositoryInfo_sanityCheckRepository __cb, Ice.Current __current) throws ServerError
Description copied from interface:_IRepositoryInfoOperationsChecks that image data repository has not exceeded 95% disk space use level.- Specified by:
sanityCheckRepository_asyncin interface_IRepositoryInfoOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
-