Interface IMyDataEnvironmentInitializer
-
- All Known Subinterfaces:
IMyDataEnvironmentFullFace
public interface IMyDataEnvironmentInitializer
This interface covers the initialization of a MyDataEnvironment
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IMyDataEnvironment
initializeCloud(de.fraunhofer.iese.mydata.solution.SolutionId solutionId, URI cloudPmpUrl, de.fraunhofer.iese.mydata.component.connector.OAuthCredentials authentication)
Initialize with cloud mode (cloud Pmp, cloud Pdp)IMyDataEnvironment
initializeLocal(de.fraunhofer.iese.mydata.solution.SolutionId solutionId, String timezone, int numPdpThreads, boolean whitelistModeEnabled, de.fraunhofer.iese.mydata.pdp.interfaces.IEventRepository eventRepository)
Initialize localIMyDataEnvironment
initializeLocalWithCloudSync(de.fraunhofer.iese.mydata.solution.SolutionId solutionId, URI cloudPmpUrl, de.fraunhofer.iese.mydata.component.connector.OAuthCredentials authentication, String timezone, boolean cacheEnabled, String policyCachePath, String timerCachePath, String maxPolicyAge, String syncSchedule, boolean masterClient, int numPdpThreads, boolean whitelistModeEnabled, de.fraunhofer.iese.mydata.pdp.interfaces.IEventRepository eventRepository)
Initialize local with cloud syncIMyDataEnvironment
initializeLocalWithFileSync(de.fraunhofer.iese.mydata.solution.SolutionId solutionId, String timezone, String fileSyncPath, int numPdpThreads, boolean whitelistModeEnabled, de.fraunhofer.iese.mydata.pdp.interfaces.IEventRepository eventRepository)
Initialize local with file sync
-
-
-
Method Detail
-
initializeCloud
IMyDataEnvironment initializeCloud(de.fraunhofer.iese.mydata.solution.SolutionId solutionId, URI cloudPmpUrl, de.fraunhofer.iese.mydata.component.connector.OAuthCredentials authentication) throws de.fraunhofer.iese.mydata.exception.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:
de.fraunhofer.iese.mydata.exception.InitializationException
- when initialization fails
-
initializeLocalWithCloudSync
IMyDataEnvironment initializeLocalWithCloudSync(de.fraunhofer.iese.mydata.solution.SolutionId solutionId, URI cloudPmpUrl, de.fraunhofer.iese.mydata.component.connector.OAuthCredentials authentication, String timezone, boolean cacheEnabled, String policyCachePath, String timerCachePath, String maxPolicyAge, String syncSchedule, boolean masterClient, int numPdpThreads, boolean whitelistModeEnabled, de.fraunhofer.iese.mydata.pdp.interfaces.IEventRepository eventRepository) throws de.fraunhofer.iese.mydata.exception.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:
de.fraunhofer.iese.mydata.exception.InitializationException
- when initialization fails
-
initializeLocalWithFileSync
IMyDataEnvironment initializeLocalWithFileSync(de.fraunhofer.iese.mydata.solution.SolutionId solutionId, String timezone, String fileSyncPath, int numPdpThreads, boolean whitelistModeEnabled, de.fraunhofer.iese.mydata.pdp.interfaces.IEventRepository eventRepository) throws de.fraunhofer.iese.mydata.exception.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:
de.fraunhofer.iese.mydata.exception.InitializationException
- when initialization fails
-
initializeLocal
IMyDataEnvironment initializeLocal(de.fraunhofer.iese.mydata.solution.SolutionId solutionId, String timezone, int numPdpThreads, boolean whitelistModeEnabled, de.fraunhofer.iese.mydata.pdp.interfaces.IEventRepository eventRepository) throws de.fraunhofer.iese.mydata.exception.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:
de.fraunhofer.iese.mydata.exception.InitializationException
- when initialization fails
-
-