@Test public void testDataSyncConfiguration() { DataSyncConfiguration.getInstance().disableSyncMode(); assertFalse(DataSyncConfiguration.getInstance().isEnableSyncMode()); DataSyncConfiguration.getInstance().enableSyncMode(); DasDataSynchronizer dasDataSynchronizer1 = DataSyncConfiguration.getInstance().getDasDataSynchronizer("dbA"); assertEquals("TestSynchronizer", dasDataSynchronizer1.getClass().getSimpleName()); DasDataSynchronizer dasDataSynchronizer2 = DataSyncConfiguration.getInstance().getDasDataSynchronizer("dbB"); assertEquals("TestSynchronizer", dasDataSynchronizer2.getClass().getSimpleName()); assertTrue(DataSyncConfiguration.getInstance().isEnableSyncMode()); }
private DataSyncConfiguration() { }
DataSyncConfiguration { private DataSyncConfiguration() { } }
DataSyncConfiguration { private DataSyncConfiguration() { } private  DataSyncConfiguration(); }
DataSyncConfiguration { private DataSyncConfiguration() { } private  DataSyncConfiguration(); static DataSyncConfiguration getInstance(); @Subscribe void receiveContext(DataSyncContext dataSyncContext); void skipValidateScheduler(); void continueValidateScheduler(); DasDataSynchronizer getDasDataSynchronizer(String logicDBName); boolean isEnableSyncMode(); void enableSyncMode(); void disableSyncMode(); void sendContext(DataSyncContext syncContext); }
DataSyncConfiguration { private DataSyncConfiguration() { } private  DataSyncConfiguration(); static DataSyncConfiguration getInstance(); @Subscribe void receiveContext(DataSyncContext dataSyncContext); void skipValidateScheduler(); void continueValidateScheduler(); DasDataSynchronizer getDasDataSynchronizer(String logicDBName); boolean isEnableSyncMode(); void enableSyncMode(); void disableSyncMode(); void sendContext(DataSyncContext syncContext);  }