Increased encapsulation in ReplicationServerDomain by:
- Making private the start*() methods
- Moved some code to here from some other classes
- MAking private the buildAndSendTopoInfoTo*() methods.
ReplicationServerDomain.java:
Extracted method sendTopoInfoToAllExcept().
Renamed buildAndSendTopoInfoToDSs() to sendTopoInfoToAllDSsExcept() + made it private.
Renamed buildAndSendTopoInfoToRSs() to sendTopoInfoToAllRSs() + made it private.
Renamed changeStatusFromStatusAnalyzer() to changeStatus().
Made startStatusAnalyzer() and startMonitoringPublisher() private.
Directly used the fields connectedDSs and connectedRSs instead of through their getters.
Moved 2 register() methods here from DataServerHandler and ReplicationServerHandler.
Renamed all variables and parameters named "handler" to disambiguated names.
DataServerHandler.java:
Renamed changeStatusFromStatusAnalyzer() to changeStatus().
Moved registerIntoDomain() + some other code to ReplicationServerDomain.
ReplicationServerHandler.java:
Moved registerIntoDomain() + some other code to ReplicationServerDomain.
ReplicationServer.java
Renamed all variables and parameters named "handler" to disambiguated names.
Consequence of the change to ReplicationServerDomain.sendTopoInfoToAllExcept().
StatusAnalyzer.java:
Consequence of the change to ReplicationServerDomain.changeStatusFromStatusAnalyzer().