Interface IMyDataEnvironmentInitializer

  • All Known Subinterfaces:
    IMyDataEnvironmentFullFace

    public interface IMyDataEnvironmentInitializer
    This interface covers the initialization of a MyDataEnvironment
    • Method Detail

      • 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 with
        cloudPmpUrl - URL to the cloud Pmp
        authentication - authentication
        timezone - Timezone
        cacheEnabled - whether cache should be enabled
        policyCachePath - the path for the policies cache
        timerCachePath - the path for the timers cache
        maxPolicyAge - maxPolicyAge
        syncSchedule - syncSchedule
        masterClient - whether this instance is a master client
        numPdpThreads - numPdpThreads
        whitelistModeEnabled - whether Pdp whitelist mode should be enabled
        eventRepository - An IEventRepository 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 with
        timezone - Timezone
        fileSyncPath - path for filesync
        numPdpThreads - numPdpThreads
        whitelistModeEnabled - whether Pdp whitelist mode should be enabled
        eventRepository - An IEventRepository instance if this feature should be enabled
        Returns:
        initialized IMyDataEnvironment instance
        Throws:
        InitializationException - when initialization fails