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 voidaddTablesForLoadByCatalogSchema(ISymmetricEngine engine, HashMap<CatalogSchema, List<Table>> catalogSchemas) protected static voidcheckpoint(ISymmetricEngine engine, IProgressListener listener, int stepNumber, int totalSteps) static voidcreateProcessInfoFile(ISymmetricEngine engine, String parent) static FilecreateSnapshot(ISymmetricEngine engine, IProgressListener listener) static FilecreateThreadsFile(String parent, boolean isFiltered) static FilecreateThreadStatsFile(String parent) protected static voidprotected static voidprotected static voidextractQuery(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 StringgetJobStatus(IJob job, Lock lock) protected static StringgetLastFinishTime(IJob job, Lock lock) static FilegetSnapshotDirectory(ISymmetricEngine engine) static HashMap<CatalogSchema,List<Table>> static HashMap<CatalogSchema,List<Table>> static HashMap<CatalogSchema,List<Table>> static voidoutputSymDataForBatchesInError(ISymmetricEngine engine, File tmpDir) protected static voidprintDirectoryContents(File dir, StringBuilder output, org.jumpmind.symmetric.util.SnapshotUtil.PrintDirConfig config) protected static Map<String,List<TransformTable>> toMap(List<TransformService.TransformTableNodeGroupLink> transforms) protected static voidwriteDirectoryListing(ISymmetricEngine engine, File tmpDir) protected static voidwriteDirectoryStaging(ISymmetricEngine engine, File tmpDir) protected static voidwriteJobsStats(ISymmetricEngine engine, File tmpDir) protected static voidwriteProperties(Properties properties, File tmpDir, String fileName) protected static voidwriteRuntimeStats(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
-
getTablesByCatalogSchema
-
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)
-