public class SynchroHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SynchroHelper.SplitFile |
static class |
SynchroHelper.SplitFileFilter |
| Modifier and Type | Field and Description |
|---|---|
static long |
BIG_FILE_SIZE |
static long |
SPLIT_FILE_SIZE |
| Constructor and Description |
|---|
SynchroHelper() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
asSortedList(Set<String> set) |
static String |
buildSplitFileName(long pos,
long partLength,
long parentSize) |
static String |
buildSplitFolderPath(String path) |
static String |
buildSplitVersionFolderPath(String path,
String checksum) |
static void |
deletedRemoteCacheFile(ContentContext ctx,
String fileName) |
static String |
encodeURLPath(String path) |
static List<SynchroHelper.SplitFile> |
getSplitFiles(File versionFolder) |
static boolean |
isBigFile(long size) |
static String |
performSynchro(ContentContext ctx)
launch synchronization
|
static void |
rebuildSplitted(String baseFolder,
String path,
String checksum) |
static boolean |
splitBigFiles(File baseFolder,
Map<String,FileInfo> map)
Split files if required.
|
static void |
splitFile(File localFile,
File destFolder) |
public static final long BIG_FILE_SIZE
public static final long SPLIT_FILE_SIZE
public static boolean isBigFile(long size)
public static String buildSplitVersionFolderPath(String path, String checksum)
public static String buildSplitFileName(long pos, long partLength, long parentSize)
public static boolean splitBigFiles(File baseFolder, Map<String,FileInfo> map) throws IOException
baseFolder - map - true if something changedIOExceptionpublic static void splitFile(File localFile, File destFolder) throws IOException
IOExceptionpublic static void rebuildSplitted(String baseFolder, String path, String checksum) throws IOException, SynchroNonFatalException
IOExceptionSynchroNonFatalExceptionpublic static List<SynchroHelper.SplitFile> getSplitFiles(File versionFolder)
public static void deletedRemoteCacheFile(ContentContext ctx, String fileName)
public static String performSynchro(ContentContext ctx) throws Exception
application - staticConfig - globalContext - ExceptionCopyright © 2012-2018. All Rights Reserved.