Class BmPlatformConfiguration


  • public final class BmPlatformConfiguration
    extends Object
    Platform configuration.
    • Constructor Detail

      • BmPlatformConfiguration

        public BmPlatformConfiguration()
    • Method Detail

      • getPath

        public Path getPath()
        Gets the platform folder path.
        Returns:
        the platform folder path.
      • setPath

        public void setPath​(Path path)
        Sets the platform folder path.
        Parameters:
        path - The path. May not be null.
      • getLockWaitTimeout

        public long getLockWaitTimeout()
        Gets the maximum time to wait for object lock.
        Returns:
        the maximum time in milliseconds.
      • setLockWaitTimeout

        public void setLockWaitTimeout​(long lockWaitTimeout)
        Sets the maximum time to wait for object lock.
        Parameters:
        lockWaitTimeout - The timeout value in milliseconds to set. Must be greater than 0.
      • getCheckpointPeriod

        public long getCheckpointPeriod()
        Gets the checkpoint period.
        Returns:
        the checkpoint period in milliseconds.
      • setCheckpointPeriod

        public void setCheckpointPeriod​(long checkpointPeriod)
        Sets the checkpoint period.
        Parameters:
        checkpointPeriod - The checkpoint period in milliseconds. Must be greater than 0.
      • getWalSizeThreshold

        public long getWalSizeThreshold()
        Gets the WAL size threshold.
        Returns:
        the WAL size threshold in bytes.
      • setWalSizeThreshold

        public void setWalSizeThreshold​(long walSizeThreshold)
        Sets the WAL size threshold.
        Parameters:
        walSizeThreshold - The WAL size threshold in bytes. Must be greater than 0.
      • isForceSync

        public boolean isForceSync()
        Checks whether file synchronization should be forced.
        Returns:
        true if file synchronization should be forced, false otherwise.
      • setForceSync

        public void setForceSync​(boolean forceSync)
        Set the flag indicating whether file synchronization should be forced.
        Parameters:
        forceSync - The flag value.
      • isEnableMonitoring

        public boolean isEnableMonitoring()
        Checks whether monitoring should be enabled.
        Returns:
        true if monitoring should be enabled, false otherwise.
      • setEnableMonitoring

        public void setEnableMonitoring​(boolean enableMonitoring)
        Set the flag indicating whether monitoring should be enabled.
        Parameters:
        enableMonitoring - The flag value.
      • getEPackages

        public Collection<org.eclipse.emf.ecore.EPackage> getEPackages()
        Gets the supported EMF packages.
        Returns:
        a collection of the supported EMF packages.
      • setEPackages

        public void setEPackages​(Collection<org.eclipse.emf.ecore.EPackage> ePackages)
        Sets the supported EMF packages.
        Parameters:
        ePackages - The supported EMF packages. May not be null.
      • getIndexedAttributes

        public Collection<org.eclipse.emf.ecore.EAttribute> getIndexedAttributes()
        Gets the indexed attributes.
        Returns:
        a collection of the indexed attributes.
      • setIndexedAttributes

        public void setIndexedAttributes​(Collection<org.eclipse.emf.ecore.EAttribute> indexedAttributes)
        Sets the indexed attributes.
        Parameters:
        attributes - The attributes. May be null.
      • getContainedObjectIndexingRules

        public Collection<BmContainedObjectIndexingRule> getContainedObjectIndexingRules()
        Gets the contained object indexing rules.
        Returns:
        a collection of the contained object indexing rules.
      • setContainedObjectIndexingRules

        public void setContainedObjectIndexingRules​(Collection<BmContainedObjectIndexingRule> containedObjectIndexingRules)
        Sets the contained object indexing rules.
        Parameters:
        containedObjectIndexingRules - The contained object indexing rules. May be null.
      • getExecutorService

        public ExecutorService getExecutorService()
        Gets the executor service.
        Returns:
        the executor service or null if not set.
      • setExecutorService

        public void setExecutorService​(ExecutorService executorService)
        Sets the executor service that will be used by the platform for housekeeping tasks. The executor service may be shared between several engines.
        Parameters:
        executorService - The executor service to set. May be null.
      • getFailureListener

        public IBmFailureListener getFailureListener()
        Gets the failure listener.
        Returns:
        the failure listener or null if not set.
      • setFailureListener

        public void setFailureListener​(IBmFailureListener failureListener)
        Sets the failure listener.
        Parameters:
        failureListener - The failure handler to set. May be null.
      • getLogger

        public IBmLogger getLogger()
        Gets the logger.
        Returns:
        the logger or null if not set.
      • setLogger

        public void setLogger​(IBmLogger logger)
        Sets the logger.
        Parameters:
        logger - The logger to set. May be null.
      • getUnfinishedCommitProcessor

        public IBmUnfinishedCommitProcessor getUnfinishedCommitProcessor()
        Gets the unfinished commit processor.
        Returns:
        the unfinished commit process or null if not set.
      • setUnfinishedCommitProcessor

        public void setUnfinishedCommitProcessor​(IBmUnfinishedCommitProcessor unfinishedCommitProcessor)
        Sets the unfinished commit processor.
        Parameters:
        unfinishedCommitProcessor - The unfinished commit processor to set. May be null.
      • getUriBuildContributors

        public Collection<IBmUriBuildContributor> getUriBuildContributors()
        Gets the URI build contributors.
        Returns:
        a collection of the URI build contributors or null if not set.
      • setUriBuildContributors

        public void setUriBuildContributors​(Collection<IBmUriBuildContributor> uriBuildContributors)
        Sets the URI build contributors.
        Parameters:
        uriBuildContributors - The URI build contributors to set. May be null.
      • getCrossReferenceFilters

        public Collection<IBmCrossReferenceFilter> getCrossReferenceFilters()
        Gets the cross-reference filters.
        Returns:
        a collection of the cross-reference filters or null if not set.
      • setCrossReferenceFilters

        public void setCrossReferenceFilters​(Collection<IBmCrossReferenceFilter> crossReferenceFilters)
        Sets cross-reference filters.
        Parameters:
        crossReferenceFilters - The cross-reference filters to set. May be null.
      • getExternalUriResolvers

        public Collection<IBmExternalUriResolver> getExternalUriResolvers()
        Gets the external URI resolvers.
        Returns:
        a collection of the external URI resolvers or null if not set.
      • setExternalUriResolvers

        public void setExternalUriResolvers​(Collection<IBmExternalUriResolver> externalUriResolvers)
        Sets the external URI resolvers.
        Parameters:
        externalUriResolvers - The external URI resolvers to set. May be null.
      • getReferencePersistenceContributors

        public Collection<IBmReferencePersistenceContributor> getReferencePersistenceContributors()
        Gets the reference persistence contributors.
        Returns:
        a collection of the reference persistence contributors or null if not set.
      • setReferencePersistenceContributors

        public void setReferencePersistenceContributors​(Collection<IBmReferencePersistenceContributor> referencePersistenceContributors)
        Sets the reference persistence contributors.
        Parameters:
        referencePersistenceContributors - The reference persistence contributors to set. May be null.
      • getAttributeSerializers

        public Collection<IBmAttributeSerializer> getAttributeSerializers()
        Gets the custom attribute serializers.
        Returns:
        a collection of the custom attribute serializers or null if not set.
      • setAttributeSerializers

        public void setAttributeSerializers​(Collection<IBmAttributeSerializer> attributeSerializers)
        Sets the custom attribute serializers.
        Parameters:
        attributeSerializers - The the attribute serializers to set. May be null.