public class GridFileUtils extends Object
| Constructor and Description |
|---|
GridFileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(FileIOFactory srcFactory,
File src,
FileIOFactory dstFactory,
File dst,
long maxBytes)
Copy file
|
static void |
copy(FileIO src,
FileIO dst,
long maxBytes)
Copy file
|
static void |
ensureHardLinkAvailable(Path path1,
Path path2)
Checks that creating hard links between given paths is available.
|
public static void copy(FileIO src, FileIO dst, long maxBytes) throws IOException
src - Source.dst - Dst.maxBytes - Max bytes.IOExceptionpublic static void copy(FileIOFactory srcFactory, File src, FileIOFactory dstFactory, File dst, long maxBytes) throws IOException
srcFactory - Source factory.src - Source.dstFactory - Dst factory.dst - Dst.maxBytes - Max bytes.IOExceptionpublic static void ensureHardLinkAvailable(Path path1, Path path2) throws IgniteCheckedException
path1 - The first path.path2 - The second path.IgniteCheckedException - If creating hard links is not available.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023