Class SynchronisationManagerImpl
java.lang.Object
ch.tocco.nice2.synchronisation.impl.SynchronisationManagerImpl
- All Implemented Interfaces:
SynchronisationManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetService(String modelName) booleanvoidsetSynchronisationServices(List<SynchronisationService> synchronisationServices) voidsetSyncRunning(boolean running) used to notify when a synchronisation is started or finished
-
Constructor Details
-
SynchronisationManagerImpl
public SynchronisationManagerImpl()
-
-
Method Details
-
getAllAvailableServices
- Specified by:
getAllAvailableServicesin interfaceSynchronisationManager- Returns:
- a map ModelName → SynchronisationSerice of all registered services
-
getService
- Specified by:
getServicein interfaceSynchronisationManager- Returns:
- a SynchronisationSerice for the given model
-
isSyncRunningInThread
public boolean isSyncRunningInThread()- Specified by:
isSyncRunningInThreadin interfaceSynchronisationManager- Returns:
- true if a synchronisation is currently running, false otherwise
-
setSyncRunning
public void setSyncRunning(boolean running) Description copied from interface:SynchronisationManagerused to notify when a synchronisation is started or finished- Specified by:
setSyncRunningin interfaceSynchronisationManager- Parameters:
running- true when starting sync, false otherwise
-
setSynchronisationServices
@Autowired public void setSynchronisationServices(List<SynchronisationService> synchronisationServices)
-