Package com._1c.g5.v8.bm.core
Class BmPlatformConfiguration
- java.lang.Object
-
- com._1c.g5.v8.bm.core.BmPlatformConfiguration
-
public final class BmPlatformConfiguration extends Object
Platform configuration.
-
-
Constructor Summary
Constructors Constructor Description BmPlatformConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<IBmAttributeSerializer>
getAttributeSerializers()
Gets the custom attribute serializers.long
getCheckpointPeriod()
Gets the checkpoint period.Collection<BmContainedObjectIndexingRule>
getContainedObjectIndexingRules()
Gets the contained object indexing rules.Collection<IBmCrossReferenceFilter>
getCrossReferenceFilters()
Gets the cross-reference filters.Collection<org.eclipse.emf.ecore.EPackage>
getEPackages()
Gets the supported EMF packages.ExecutorService
getExecutorService()
Gets the executor service.Collection<IBmExternalUriResolver>
getExternalUriResolvers()
Gets the external URI resolvers.IBmFailureListener
getFailureListener()
Gets the failure listener.Collection<org.eclipse.emf.ecore.EAttribute>
getIndexedAttributes()
Gets the indexed attributes.long
getLockWaitTimeout()
Gets the maximum time to wait for object lock.IBmLogger
getLogger()
Gets the logger.Path
getPath()
Gets the platform folder path.Collection<IBmReferencePersistenceContributor>
getReferencePersistenceContributors()
Gets the reference persistence contributors.IBmUnfinishedCommitProcessor
getUnfinishedCommitProcessor()
Gets the unfinished commit processor.Collection<IBmUriBuildContributor>
getUriBuildContributors()
Gets the URI build contributors.long
getWalSizeThreshold()
Gets the WAL size threshold.boolean
isEnableMonitoring()
Checks whether monitoring should be enabled.boolean
isForceSync()
Checks whether file synchronization should be forced.void
setAttributeSerializers(Collection<IBmAttributeSerializer> attributeSerializers)
Sets the custom attribute serializers.void
setCheckpointPeriod(long checkpointPeriod)
Sets the checkpoint period.void
setContainedObjectIndexingRules(Collection<BmContainedObjectIndexingRule> containedObjectIndexingRules)
Sets the contained object indexing rules.void
setCrossReferenceFilters(Collection<IBmCrossReferenceFilter> crossReferenceFilters)
Sets cross-reference filters.void
setEnableMonitoring(boolean enableMonitoring)
Set the flag indicating whether monitoring should be enabled.void
setEPackages(Collection<org.eclipse.emf.ecore.EPackage> ePackages)
Sets the supported EMF packages.void
setExecutorService(ExecutorService executorService)
Sets the executor service that will be used by the platform for housekeeping tasks.void
setExternalUriResolvers(Collection<IBmExternalUriResolver> externalUriResolvers)
Sets the external URI resolvers.void
setFailureListener(IBmFailureListener failureListener)
Sets the failure listener.void
setForceSync(boolean forceSync)
Set the flag indicating whether file synchronization should be forced.void
setIndexedAttributes(Collection<org.eclipse.emf.ecore.EAttribute> indexedAttributes)
Sets the indexed attributes.void
setLockWaitTimeout(long lockWaitTimeout)
Sets the maximum time to wait for object lock.void
setLogger(IBmLogger logger)
Sets the logger.void
setPath(Path path)
Sets the platform folder path.void
setReferencePersistenceContributors(Collection<IBmReferencePersistenceContributor> referencePersistenceContributors)
Sets the reference persistence contributors.void
setUnfinishedCommitProcessor(IBmUnfinishedCommitProcessor unfinishedCommitProcessor)
Sets the unfinished commit processor.void
setUriBuildContributors(Collection<IBmUriBuildContributor> uriBuildContributors)
Sets the URI build contributors.void
setWalSizeThreshold(long walSizeThreshold)
Sets the WAL size threshold.
-
-
-
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 benull
.
-
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 than0
.
-
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 than0
.
-
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 than0
.
-
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 benull
.
-
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 benull
.
-
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 benull
.
-
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 benull
.
-
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 benull
.
-
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 benull
.
-
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 benull
.
-
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 benull
.
-
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 benull
.
-
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 benull
.
-
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 benull
.
-
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 benull
.
-
-