Interface ISyncService
- All Known Implementing Classes:
CloudSynchronizer
,FileSynchronizer
public interface ISyncService
This interface encapsulates the synchronization of policies, timers and componentInformation.
The Service needs to be configured before calling any of the methods declared in this interface.
The local PDP will start in failureMode when there is a ISyncService. It is therefore the obligation of
any ISyncService implementation to deactivate the failureMode when the initial sync completed successfully.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
pushPep
(PepComponentInformation pepComponentInformation) Push the registration of a PEP componentvoid
pushPip
(PipComponentInformation pipComponentInformation) Push the registration of a PIP componentvoid
pushPxp
(PxpComponentInformation pxpComponentInformation) Push the registration of a PXP componentvoid
start()
Start synchronizationvoid
stop()
Stop synchronization
-
Method Details
-
start
Start synchronization- Throws:
SynchronizerException
- in case of an error while starting the synchronization
-
stop
Stop synchronization- Throws:
SynchronizerException
- in case of an error while stopping the synchronization
-
pushPep
Push the registration of a PEP component- Parameters:
pepComponentInformation
- the pepComponentInformation- Throws:
SynchronizerException
- in case of an error while pushing the information
-
pushPip
Push the registration of a PIP component- Parameters:
pipComponentInformation
- the pipComponentInformation- Throws:
SynchronizerException
- in case of an error while pushing the information
-
pushPxp
Push the registration of a PXP component- Parameters:
pxpComponentInformation
- the pxpComponentInformation- Throws:
SynchronizerException
- in case of an error while pushing the information
-