Package org.jumpmind.symmetric.util
Class SnapshotUtil
java.lang.Object
org.jumpmind.symmetric.util.SnapshotUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
addTablesForLoadByCatalogSchema
(ISymmetricEngine engine, HashMap<CatalogSchema, List<Table>> catalogSchemas) protected static void
checkpoint
(ISymmetricEngine engine, IProgressListener listener, int stepNumber, int totalSteps) static void
createProcessInfoFile
(ISymmetricEngine engine, String parent) static File
createSnapshot
(ISymmetricEngine engine, IProgressListener listener) static File
createThreadsFile
(String parent, boolean isFiltered) static File
createThreadStatsFile
(String parent) protected static void
protected static void
protected static void
extractQuery
(ISqlTemplate sqlTemplate, String fileName, String sql) protected static Map<String,
List<TransformTable>> getByTableTransforms
(ITransformService transformService, Map<NodeGroupLink, Map<String, List<TransformTable>>> transformMap, NodeGroupLink nodeGroupLink, TransformPoint transformPoint) protected static String
getJobStatus
(IJob job, Lock lock) protected static String
getLastFinishTime
(IJob job, Lock lock) static File
getSnapshotDirectory
(ISymmetricEngine engine) static HashMap<CatalogSchema,
List<Table>> static HashMap<CatalogSchema,
List<Table>> static void
outputSymDataForBatchesInError
(ISymmetricEngine engine, File tmpDir) protected static void
printDirectoryContents
(File dir, StringBuilder output, org.jumpmind.symmetric.util.SnapshotUtil.PrintDirConfig config) protected static Map<String,
List<TransformTable>> toMap
(List<TransformService.TransformTableNodeGroupLink> transforms) protected static void
writeDirectoryListing
(ISymmetricEngine engine, File tmpDir) protected static void
writeDirectoryStaging
(ISymmetricEngine engine, File tmpDir) protected static void
writeJobsStats
(ISymmetricEngine engine, File tmpDir) protected static void
writeProperties
(Properties properties, File tmpDir, String fileName) protected static void
writeRuntimeStats
(ISymmetricEngine engine, File tmpDir)
-
Field Details
-
THREAD_INDENT_SPACE
protected static final int THREAD_INDENT_SPACE- See Also:
-
SNAPSHOT_DIR
- See Also:
-
-
Constructor Details
-
SnapshotUtil
public SnapshotUtil()
-
-
Method Details
-
getSnapshotDirectory
-
createSnapshot
-
checkpoint
protected static void checkpoint(ISymmetricEngine engine, IProgressListener listener, int stepNumber, int totalSteps) -
extract
-
extract
-
extractQuery
-
writeDirectoryListing
-
writeDirectoryStaging
-
printDirectoryContents
protected static void printDirectoryContents(File dir, StringBuilder output, org.jumpmind.symmetric.util.SnapshotUtil.PrintDirConfig config) throws IOException - Throws:
IOException
-
writeRuntimeStats
-
writeProperties
-
writeJobsStats
-
getJobStatus
-
getLastFinishTime
-
createThreadsFile
-
createThreadStatsFile
-
createProcessInfoFile
-
outputSymDataForBatchesInError
-
getTablesForCaptureByCatalogSchema
public static HashMap<CatalogSchema,List<Table>> getTablesForCaptureByCatalogSchema(ISymmetricEngine engine) -
getTablesForLoadByCatalogSchema
public static HashMap<CatalogSchema,List<Table>> getTablesForLoadByCatalogSchema(ISymmetricEngine engine) -
addTablesForLoadByCatalogSchema
protected static void addTablesForLoadByCatalogSchema(ISymmetricEngine engine, HashMap<CatalogSchema, List<Table>> catalogSchemas) -
getByTableTransforms
protected static Map<String,List<TransformTable>> getByTableTransforms(ITransformService transformService, Map<NodeGroupLink, Map<String, List<TransformTable>>> transformMap, NodeGroupLink nodeGroupLink, TransformPoint transformPoint) -
toMap
protected static Map<String,List<TransformTable>> toMap(List<TransformService.TransformTableNodeGroupLink> transforms)
-