Package dk.netarkivet.common.utils
Class MockFreeSpaceProvider
- java.lang.Object
-
- dk.netarkivet.common.utils.MockFreeSpaceProvider
-
- All Implemented Interfaces:
FreeSpaceProvider
public class MockFreeSpaceProvider extends Object implements FreeSpaceProvider
Mock Free Space Provider of the number of bytes free on the file system.
-
-
Field Summary
Fields Modifier and Type Field Description static long
ONETB
1 TB in bytes.
-
Constructor Summary
Constructors Constructor Description MockFreeSpaceProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getBytesFree(File f)
Returns 1 TB of bytes as the number of bytes free on the file system that the given file resides on.
-
-
-
Field Detail
-
ONETB
public static final long ONETB
1 TB in bytes.- See Also:
- Constant Field Values
-
-
Method Detail
-
getBytesFree
public long getBytesFree(File f)
Returns 1 TB of bytes as the number of bytes free on the file system that the given file resides on.- Specified by:
getBytesFree
in interfaceFreeSpaceProvider
- Parameters:
f
- a given file- Returns:
- 1 TB of bytes free
-
-