summaryrefslogtreecommitdiff
path: root/doc/diagrams/main.plant
blob: 8104e482ec7ef64451a699bac5687f22457abc13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
@startuml
class SSSync {
+void main(String[] args)
\t
}

class SSSyncConfParser {
+loadMainConfig(String mainConfigFile)
+loadConnConfig(String connConfigFile)
\t
}

class SSSyncConnectionsFactory {
+setupConnections(ConfigConnectionsBean confConn)
\t
\t
}

class SSSyncTasksFactory {
+setupTasks(ConnectionsHolder connections,\n\t\t\tConfigRootBean confMain)
\t
}

abstract class AbstractSyncTask {
	#String taskName
	#boolean dryRun
	+Boolean call()
}

interface "Callable<Boolean>" as Callable_Boolean_ {
}

class BasicSyncTask {
	-MVDataReader srcReader
	-MVDataReader dstReader
	-MVDataWriter dstWriter
}

class ExecutorService {
+invokeAll(Callable tasks...)
\t
}


SSSync *-- "1" ConfigRootBean
SSSync *-- "1" ConfigConnectionsBean
SSSync *-- "1" ConnectionsHolder
SSSync *-- "*" AbstractSyncTask

Callable_Boolean_ <|.. AbstractSyncTask
BasicSyncTask -|> AbstractSyncTask

SSSync "(#3)" -up-> SSSyncTasksFactory
SSSync "(#2)" -up-> SSSyncConnectionsFactory 
SSSync "(#1)" -up-> SSSyncConfParser
SSSync "(#4)" -> ExecutorService

ConfigRootBean *-- "1" ConfigGlobalsBean
ConfigRootBean *-- "*" ConfigTaskBean

ConnectionsHolder *-- "*" LDAPConnectionWrapper
ConnectionsHolder *-- "*" SQLConnectionWrapper
@enduml