Class CommonConfigurationFactoriesKt
-
- All Implemented Interfaces:
public final class CommonConfigurationFactoriesKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static CollectionConfigurationCollectionConfigurationFactoryprivate final static FullTextIndexConfigurationFullTextIndexConfigurationFactoryprivate final static ValueIndexConfigurationValueIndexConfigurationFactoryprivate final static ArrayIndexConfigurationArrayIndexConfigurationFactoryprivate final static FileLogSinkFileLogSinkFactoryprivate final static LogFileConfigurationLogFileConfigurationFactory
-
Method Summary
Modifier and Type Method Description final CollectionConfigurationgetCollectionConfigurationFactory()Configuration factory for new CollectionConfigurationsUsage: val collConfig = CollectionConfigurationFactory.newConfig(... final FullTextIndexConfigurationgetFullTextIndexConfigurationFactory()Configuration factory for new FullTextIndexConfigurationsUsage: val fullTextIndexConfig = FullTextIndexConfigurationFactory.newConfig(... final ValueIndexConfigurationgetValueIndexConfigurationFactory()Configuration factory for new ValueIndexConfigurationsUsage: val valIndexConfig = ValueIndexConfigurationFactory.newConfig(... final ArrayIndexConfigurationgetArrayIndexConfigurationFactory()Configuration factory for new ArrayIndexConfigurationsUsage: val arrayIndexConfig = arrayIndexConfigurationFactory.newConfig(... final FileLogSinkgetFileLogSinkFactory()Factory for new FileLogSinksUsage: val logFileConfig = LogFileConfigurationFactory.install(... final LogFileConfigurationgetLogFileConfigurationFactory()Configuration factory for new LogFileConfigurationsUsage: val logFileConfig = LogFileConfigurationFactory.newConfig(... final static CollectionConfigurationnewConfig(CollectionConfiguration $self, List<String> channels, List<String> documentIDs, ReplicationFilter pullFilter, ReplicationFilter pushFilter, ConflictResolver conflictResolver)final static CollectionConfigurationnewConfig(CollectionConfiguration $self, Collection collection, List<String> channels, List<String> documentIDs, ReplicationFilter pullFilter, ReplicationFilter pushFilter, ConflictResolver conflictResolver)final static FullTextIndexConfigurationnewConfig(FullTextIndexConfiguration $self, String expressions, String language, Boolean ignoreAccents)Create a FullTextIndexConfiguration, overriding the receiver's values with the passed parameters: final static ValueIndexConfigurationnewConfig(ValueIndexConfiguration $self, String expressions)Create a ValueIndexConfiguration, overriding the receiver's values with the passed parameters: final static ArrayIndexConfigurationnewConfig(ArrayIndexConfiguration $self, String path, String expressions)Create a ArrayIndexConfiguration, overriding the receiver's values with the passed parameters: final static LogFileConfigurationnewConfig(LogFileConfiguration $self, String directory, Long maxSize, Integer maxRotateCount, Boolean usePlainText)Create a LogFileConfiguration, overriding the receiver's values with the passed parameters: final static Unitinstall(FileLogSink $self, String directory, LogLevel level, Long maxFileSize, Integer maxKeptFiles, Boolean isPlainText)Install a new file logger final static FullTextIndexConfigurationcreate(FullTextIndexConfiguration $self, String expressions, String language, Boolean ignoreAccents)Create a FullTextIndexConfiguration, overriding the receiver's values with the passed parameters: final static ValueIndexConfigurationcreate(ValueIndexConfiguration $self, String expressions)Create a ValueIndexConfiguration, overriding the receiver's values with the passed parameters: final static LogFileConfigurationcreate(LogFileConfiguration $self, String directory, Long maxSize, Integer maxRotateCount, Boolean usePlainText)Create a LogFileConfiguration, overriding the receiver's values with the passed parameters: -
-
Method Detail
-
getCollectionConfigurationFactory
final CollectionConfiguration getCollectionConfigurationFactory()
Configuration factory for new CollectionConfigurations
Usage: val collConfig = CollectionConfigurationFactory.newConfig(...)
-
getFullTextIndexConfigurationFactory
final FullTextIndexConfiguration getFullTextIndexConfigurationFactory()
Configuration factory for new FullTextIndexConfigurations
Usage: val fullTextIndexConfig = FullTextIndexConfigurationFactory.newConfig(...)
-
getValueIndexConfigurationFactory
final ValueIndexConfiguration getValueIndexConfigurationFactory()
Configuration factory for new ValueIndexConfigurations
Usage: val valIndexConfig = ValueIndexConfigurationFactory.newConfig(...)
-
getArrayIndexConfigurationFactory
final ArrayIndexConfiguration getArrayIndexConfigurationFactory()
Configuration factory for new ArrayIndexConfigurations
Usage: val arrayIndexConfig = arrayIndexConfigurationFactory.newConfig(...)
-
getFileLogSinkFactory
final FileLogSink getFileLogSinkFactory()
Factory for new FileLogSinks
Usage: val logFileConfig = LogFileConfigurationFactory.install(...)
-
getLogFileConfigurationFactory
final LogFileConfiguration getLogFileConfigurationFactory()
Configuration factory for new LogFileConfigurations
Usage: val logFileConfig = LogFileConfigurationFactory.newConfig(...)
-
newConfig
@Deprecated(message = "Use CollectionConfiguration?.newConfig(collection: Collection, channels: List<String>?, documentIDs: List<String>?, pullFilter: ReplicationFilter?, pushFilter: ReplicationFilter?, conflictResolver: ConflictResolver?)", replaceWith = @ReplaceWith(imports = {}, expression = "CollectionConfiguration?.newConfig(collection: Collection, channels: List<String>?, documentIDs: List<String>?, pullFilter: ReplicationFilter?, pushFilter: ReplicationFilter?, conflictResolver: ConflictResolver?)")) final static CollectionConfiguration newConfig(CollectionConfiguration $self, List<String> channels, List<String> documentIDs, ReplicationFilter pullFilter, ReplicationFilter pushFilter, ConflictResolver conflictResolver)
-
newConfig
final static CollectionConfiguration newConfig(CollectionConfiguration $self, Collection collection, List<String> channels, List<String> documentIDs, ReplicationFilter pullFilter, ReplicationFilter pushFilter, ConflictResolver conflictResolver)
-
newConfig
final static FullTextIndexConfiguration newConfig(FullTextIndexConfiguration $self, String expressions, String language, Boolean ignoreAccents)
Create a FullTextIndexConfiguration, overriding the receiver's values with the passed parameters:
- Parameters:
expressions- (required) the expressions to be matched.
-
newConfig
final static ValueIndexConfiguration newConfig(ValueIndexConfiguration $self, String expressions)
Create a ValueIndexConfiguration, overriding the receiver's values with the passed parameters:
- Parameters:
expressions- (required) the expressions to be matched.
-
newConfig
final static ArrayIndexConfiguration newConfig(ArrayIndexConfiguration $self, String path, String expressions)
Create a ArrayIndexConfiguration, overriding the receiver's values with the passed parameters:
- Parameters:
path- (required) the expressions to be matched.expressions- expressions.
-
newConfig
@Deprecated(message = "Use FileLogSink?.install(String?, LogLevel?, Long?, Int?, Boolean?)", replaceWith = @ReplaceWith(imports = {}, expression = "FileLogSink?.install(dir: String?, level: LogLevel?, maxSize: Long?, maxRotate: Int?, plaintxt: Boolean?)")) final static LogFileConfiguration newConfig(LogFileConfiguration $self, String directory, Long maxSize, Integer maxRotateCount, Boolean usePlainText)
Create a LogFileConfiguration, overriding the receiver's values with the passed parameters:
- Parameters:
directory- (required) the directory in which the logs files are stored.maxSize- the max size of the log file in bytes.maxRotateCount- the number of rotated logs that are saved.usePlainText- whether or not to log in plaintext.
-
install
final static Unit install(FileLogSink $self, String directory, LogLevel level, Long maxFileSize, Integer maxKeptFiles, Boolean isPlainText)
Install a new file logger
- Parameters:
directory- (required) the directory in which the logs files are stored.level- (required) the minimum level for log messages pushed to the file log.maxFileSize- the max size of the log file in bytes.maxKeptFiles- the number of rotated logs that are saved.isPlainText- whether or not to log in plaintext.
-
create
@Deprecated(message = "Use FullTextIndexConfiguration?.newConfig(vararg expressions: String, language: String?, ignoreAccents: Boolean?)", replaceWith = @ReplaceWith(imports = {}, expression = "FullTextIndexConfiguration?.newConfig(vararg expressions: String, language: String?, ignoreAccents: Boolean?)")) final static FullTextIndexConfiguration create(FullTextIndexConfiguration $self, String expressions, String language, Boolean ignoreAccents)
Create a FullTextIndexConfiguration, overriding the receiver's values with the passed parameters:
- Parameters:
expressions- (required) the expressions to be matched.
-
create
@Deprecated(message = "Use ValueIndexConfiguration?.newConfig(vararg expressions: String)", replaceWith = @ReplaceWith(imports = {}, expression = "ValueIndexConfiguration?.newConfig(vararg expressions: String)")) final static ValueIndexConfiguration create(ValueIndexConfiguration $self, String expressions)
Create a ValueIndexConfiguration, overriding the receiver's values with the passed parameters:
- Parameters:
expressions- (required) the expressions to be matched.
-
create
@Deprecated(message = "Use FileLogSink?.install(String?, LogLevel?, Long?, Int?, Boolean?)", replaceWith = @ReplaceWith(imports = {}, expression = "FileLogSink?.install(dir: String?, level: LogLevel?, maxSize: Long?, maxRotate: Int?, plaintxt: Boolean?)")) final static LogFileConfiguration create(LogFileConfiguration $self, String directory, Long maxSize, Integer maxRotateCount, Boolean usePlainText)
Create a LogFileConfiguration, overriding the receiver's values with the passed parameters:
- Parameters:
directory- (required) the directory in which the logs files are stored.maxSize- the max size of the log file in bytes.maxRotateCount- the number of rotated logs that are saved.usePlainText- whether or not to log in plaintext.
-
-
-
-