Interface ServiceProvider
-
- All Known Implementing Classes:
ServiceProviderImplementation
public interface ServiceProvider
Interface to provide some general function forImplementationProvider
-
-
Method Summary
Modifier and Type Method Description void
calculateDirectorySizes()
Function to calculate the size ofPrimaryDataDirectory
s viaCalculateDirectorySizeThread
void
cleanUpForBrokenEntities(PrimaryDataDirectory root)
Clean up function to remove objects, if a upload failedvoid
cleanUpForRejectedEntities()
Clean up function to remove objects, if a request for a persistent identifier was rejectedjava.lang.Long
getAvailableStorageSpace()
Getter for the available space in the mount path of eDAL.int
getNumberOfUsers()
Function to get the current number of users, who have ever login to the current instancejava.lang.Long
getUsedStorageSpace()
Getter for the used space in the mount path of eDAL.boolean
isCleaned()
Get flag for rebuild Lucene Index after a cleanup.void
setCleaned(boolean flag)
Set flag for rebuild Lucene Index after a cleanup.
-
-
-
Method Detail
-
calculateDirectorySizes
void calculateDirectorySizes()
Function to calculate the size ofPrimaryDataDirectory
s 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 EdalException
Getter 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 EdalException
Getter 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
-
-