Interface ServiceProvider
-
- All Known Implementing Classes:
ServiceProviderImplementation
public interface ServiceProviderInterface to provide some general function forImplementationProvider
-
-
Method Summary
Modifier and Type Method Description voidcalculateDirectorySizes()Function to calculate the size ofPrimaryDataDirectorys viaCalculateDirectorySizeThreadvoidcleanUpForBrokenEntities(PrimaryDataDirectory root)Clean up function to remove objects, if a upload failedvoidcleanUpForRejectedEntities()Clean up function to remove objects, if a request for a persistent identifier was rejectedjava.lang.LonggetAvailableStorageSpace()Getter for the available space in the mount path of eDAL.intgetNumberOfUsers()Function to get the current number of users, who have ever login to the current instancejava.lang.LonggetUsedStorageSpace()Getter for the used space in the mount path of eDAL.booleanisCleaned()Get flag for rebuild Lucene Index after a cleanup.voidsetCleaned(boolean flag)Set flag for rebuild Lucene Index after a cleanup.
-
-
-
Method Detail
-
calculateDirectorySizes
void calculateDirectorySizes()
Function to calculate the size ofPrimaryDataDirectorys viaCalculateDirectorySizeThread
-
cleanUpForBrokenEntities
void cleanUpForBrokenEntities(PrimaryDataDirectory root)
Clean up function to remove objects, if a upload failed- Parameters:
root- the initial directory to start clean process
-
cleanUpForRejectedEntities
void cleanUpForRejectedEntities()
Clean up function to remove objects, if a request for a persistent identifier was rejected
-
getAvailableStorageSpace
java.lang.Long getAvailableStorageSpace() throws EdalExceptionGetter for the available space in the mount path of eDAL.- Returns:
- available space
- Throws:
EdalException- if no path is specified.
-
getNumberOfUsers
int getNumberOfUsers()
Function to get the current number of users, who have ever login to the current instance- Returns:
- the number of logged users
-
getUsedStorageSpace
java.lang.Long getUsedStorageSpace() throws EdalExceptionGetter for the used space in the mount path of eDAL.- Returns:
- used space
- Throws:
EdalException- if no path is specified.
-
isCleaned
boolean isCleaned()
Get flag for rebuild Lucene Index after a cleanup.- Returns:
- the flag
-
setCleaned
void setCleaned(boolean flag)
Set flag for rebuild Lucene Index after a cleanup.- Parameters:
flag- the flag to set
-
-