Interface IMyDataEnvironmentInitializer
- All Known Subinterfaces:
IMyDataEnvironmentFullFace
public interface IMyDataEnvironmentInitializer
This interface covers the initialization of a MyDataEnvironment
-
Method Summary
Modifier and TypeMethodDescriptioninitializeCloud
(SolutionId solutionId, URI cloudPmpUrl, OAuthCredentials authentication) Initialize with cloud mode (cloud Pmp, cloud Pdp)initializeLocal
(SolutionId solutionId, String timezone, int numPdpThreads, boolean whitelistModeEnabled, IEventRepository eventRepository) Initialize localinitializeLocalWithCloudSync
(SolutionId solutionId, URI cloudPmpUrl, OAuthCredentials authentication, String timezone, boolean cacheEnabled, String policyCachePath, String timerCachePath, String maxPolicyAge, String syncSchedule, boolean masterClient, int numPdpThreads, boolean whitelistModeEnabled, IEventRepository eventRepository) Initialize local with cloud syncinitializeLocalWithFileSync
(SolutionId solutionId, String timezone, String fileSyncPath, int numPdpThreads, boolean whitelistModeEnabled, IEventRepository eventRepository) Initialize local with file sync
-
Method Details
-
initializeCloud
IMyDataEnvironment initializeCloud(SolutionId solutionId, URI cloudPmpUrl, OAuthCredentials authentication) throws InitializationException Initialize with cloud mode (cloud Pmp, cloud Pdp)- Parameters:
solutionId
- the solutionId of the solution this IMyDataEnvironment will be associated withcloudPmpUrl
- URL to the cloud Pmpauthentication
- authentication- Returns:
- initialized
IMyDataEnvironment
instance - Throws:
InitializationException
- when initialization fails
-
initializeLocalWithCloudSync
IMyDataEnvironment initializeLocalWithCloudSync(SolutionId solutionId, URI cloudPmpUrl, OAuthCredentials authentication, String timezone, boolean cacheEnabled, String policyCachePath, String timerCachePath, String maxPolicyAge, String syncSchedule, boolean masterClient, int numPdpThreads, boolean whitelistModeEnabled, IEventRepository eventRepository) throws InitializationException Initialize local with cloud sync- Parameters:
solutionId
- the solutionId of the solution this IMyDataEnvironment will be associated withcloudPmpUrl
- URL to the cloud Pmpauthentication
- authenticationtimezone
- TimezonecacheEnabled
- whether cache should be enabledpolicyCachePath
- the path for the policies cachetimerCachePath
- the path for the timers cachemaxPolicyAge
- maxPolicyAgesyncSchedule
- syncSchedulemasterClient
- whether this instance is a master clientnumPdpThreads
- numPdpThreadswhitelistModeEnabled
- whether Pdp whitelist mode should be enabledeventRepository
- AnIEventRepository
instance if this feature should be enabled- Returns:
- initialized
IMyDataEnvironment
instance - Throws:
InitializationException
- when initialization fails
-
initializeLocalWithFileSync
IMyDataEnvironment initializeLocalWithFileSync(SolutionId solutionId, String timezone, String fileSyncPath, int numPdpThreads, boolean whitelistModeEnabled, IEventRepository eventRepository) throws InitializationException Initialize local with file sync- Parameters:
solutionId
- the solutionId of the solution this IMyDataEnvironment will be associated withtimezone
- TimezonefileSyncPath
- path for filesyncnumPdpThreads
- numPdpThreadswhitelistModeEnabled
- whether Pdp whitelist mode should be enabledeventRepository
- AnIEventRepository
instance if this feature should be enabled- Returns:
- initialized
IMyDataEnvironment
instance - Throws:
InitializationException
- when initialization fails
-
initializeLocal
IMyDataEnvironment initializeLocal(SolutionId solutionId, String timezone, int numPdpThreads, boolean whitelistModeEnabled, IEventRepository eventRepository) throws InitializationException Initialize local- Parameters:
solutionId
- the solutionId of the solution this IMyDataEnvironment will be associated withtimezone
- TimezonenumPdpThreads
- numPdpThreadswhitelistModeEnabled
- whether Pdp whitelist mode should be enabledeventRepository
- AnIEventRepository
instance if this feature should be enabled- Returns:
- initialized
IMyDataEnvironment
instance - Throws:
InitializationException
- when initialization fails
-