Class ConfigurationFactoriesKt
-
- All Implemented Interfaces:
public final class ConfigurationFactoriesKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static DatabaseConfigurationDatabaseConfigurationFactoryprivate final static ReplicatorConfigurationReplicatorConfigurationFactoryprivate final static MessageEndpointListenerConfigurationMessageEndpointListenerConfigurationFactoryprivate final static URLEndpointListenerConfigurationURLEndpointListenerConfigurationFactoryprivate final static VectorIndexConfigurationVectorIndexConfigurationFactory
-
Method Summary
Modifier and Type Method Description final DatabaseConfigurationgetDatabaseConfigurationFactory()Configuration factory for new DatabaseConfigurationsUsage: val dbConfig = DatabaseConfigurationFactory.newConfig(... final ReplicatorConfigurationgetReplicatorConfigurationFactory()Configuration factory for new ReplicatorConfigurationsUsage: val replConfig = ReplicatorConfigurationFactory.newConfig(... final MessageEndpointListenerConfigurationgetMessageEndpointListenerConfigurationFactory()<b>ENTERPRISE EDITION API</b><br><br><p> Configuration factory for new MessageEndpointListenerConfigurationsUsage: val endpointListenerConfig = MessageEndpointListenerConfigurationFactory.newConfig(... final URLEndpointListenerConfigurationgetURLEndpointListenerConfigurationFactory()<b>ENTERPRISE EDITION API</b><br><br><p> Configuration factory for new URLEndpointListenerConfigurationsUsage: val endpointListenerConfig = URLEndpointListenerConfigurationFactory.newConfig(... final VectorIndexConfigurationgetVectorIndexConfigurationFactory()<b>ENTERPRISE EDITION API</b><br><br><p> Configuration factory for VectorIndexConfigurationUsage: val idxConfig = VectorIndexConfigurationFactory.newConfig(... final static DatabaseConfigurationnewConfig(DatabaseConfiguration $self, String databasePath, EncryptionKey encryptionKey, Boolean fullSync)Create a DatabaseConfiguration, overriding the receiver's values with the passed parameters. final static ReplicatorConfigurationnewConfig(ReplicatorConfiguration $self, Set<CollectionConfiguration> collections, Endpoint target, ReplicatorType type, Boolean continuous, Authenticator authenticator, Map<String, String> headers, X509Certificate pinnedServerCertificate, Integer maxAttempts, Integer maxAttemptWaitTime, Integer heartbeat, Boolean enableAutoPurge, Boolean acceptOnlySelfSignedServerCertificate, Boolean acceptParentDomainCookies)Create a ReplicatorConfiguration, overriding the receiver's values with the passed parameters. final static MessageEndpointListenerConfigurationnewConfig(MessageEndpointListenerConfiguration $self, Set<Collection> collections, ProtocolType protocolType)<b>ENTERPRISE EDITION API</b><br><br><p> Create a MessageEndpointListenerConfiguration, overriding the receiver's values with the passed parameters. final static URLEndpointListenerConfigurationnewConfig(URLEndpointListenerConfiguration $self, Set<Collection> collections, String networkInterface, Integer port, Boolean disableTls, TLSIdentity identity, ListenerAuthenticator authenticator, Boolean readOnly, Boolean enableDeltaSync)<b>ENTERPRISE EDITION API</b><br><br><p> Create a URLEndpointListenerConfigurations, overriding the receiver's values with the passed parameters. final static VectorIndexConfigurationnewConfig(VectorIndexConfiguration $self, String expression, Long dimensions, Long centroids, VectorEncoding encoding, VectorIndexConfiguration.DistanceMetric metric, Long minTrainingSize, Long maxTrainingSize, Long numProbes, Boolean lazy)final static DatabaseConfigurationcreate(DatabaseConfiguration $self, String databasePath, EncryptionKey encryptionKey)Create a DatabaseConfiguration, overriding the receiver's values with the passed parameters. -
-
Method Detail
-
getDatabaseConfigurationFactory
final DatabaseConfiguration getDatabaseConfigurationFactory()
Configuration factory for new DatabaseConfigurations
Usage: val dbConfig = DatabaseConfigurationFactory.newConfig(...)
-
getReplicatorConfigurationFactory
final ReplicatorConfiguration getReplicatorConfigurationFactory()
Configuration factory for new ReplicatorConfigurations
Usage: val replConfig = ReplicatorConfigurationFactory.newConfig(...)
-
getMessageEndpointListenerConfigurationFactory
final MessageEndpointListenerConfiguration getMessageEndpointListenerConfigurationFactory()
<b>ENTERPRISE EDITION API</b><br><br>
<p> Configuration factory for new MessageEndpointListenerConfigurationsUsage: val endpointListenerConfig = MessageEndpointListenerConfigurationFactory.newConfig(...)
-
getURLEndpointListenerConfigurationFactory
final URLEndpointListenerConfiguration getURLEndpointListenerConfigurationFactory()
<b>ENTERPRISE EDITION API</b><br><br>
<p> Configuration factory for new URLEndpointListenerConfigurationsUsage: val endpointListenerConfig = URLEndpointListenerConfigurationFactory.newConfig(...)
-
getVectorIndexConfigurationFactory
final VectorIndexConfiguration getVectorIndexConfigurationFactory()
<b>ENTERPRISE EDITION API</b><br><br>
<p> Configuration factory for VectorIndexConfigurationUsage: val idxConfig = VectorIndexConfigurationFactory.newConfig(...)
-
newConfig
final static DatabaseConfiguration newConfig(DatabaseConfiguration $self, String databasePath, EncryptionKey encryptionKey, Boolean fullSync)
Create a DatabaseConfiguration, overriding the receiver's values with the passed parameters.
- Parameters:
databasePath- The directory in which the database is stored.encryptionKey- ENTERPRISE EDITION API: The database encryption key.
-
newConfig
final static ReplicatorConfiguration newConfig(ReplicatorConfiguration $self, Set<CollectionConfiguration> collections, Endpoint target, ReplicatorType type, Boolean continuous, Authenticator authenticator, Map<String, String> headers, X509Certificate pinnedServerCertificate, Integer maxAttempts, Integer maxAttemptWaitTime, Integer heartbeat, Boolean enableAutoPurge, Boolean acceptOnlySelfSignedServerCertificate, Boolean acceptParentDomainCookies)
Create a ReplicatorConfiguration, overriding the receiver's values with the passed parameters.
Note: A document that is blocked by a document Id filter will not be auto-purged regardless of the setting of the enableAutoPurge property
- Parameters:
collections- a set of collections configurations.target- (required) The replication target endpoint.type- replicator type: push, pull, or push and pull: default is push and pull.continuous- continuous flag: true for continuous, false by default.authenticator- connection authenticator.headers- extra HTTP headers to send in all requests to the remote target.pinnedServerCertificate- target server's SSL certificate.maxAttempts- max retry attempts after connection failure.maxAttemptWaitTime- max time between retry attempts (exponential backoff).heartbeat- heartbeat interval, in seconds.enableAutoPurge- auto-purge enabled.acceptOnlySelfSignedServerCertificate- ENTERPRISE EDITION API: Whether the replicator will accept all/only self-signed certificates.acceptParentDomainCookies- Advanced: accept cookies for parent domains.
-
newConfig
final static MessageEndpointListenerConfiguration newConfig(MessageEndpointListenerConfiguration $self, Set<Collection> collections, ProtocolType protocolType)
<b>ENTERPRISE EDITION API</b><br><br>
<p> Create a MessageEndpointListenerConfiguration, overriding the receiver's values with the passed parameters.- Parameters:
collections- the local collections.protocolType- (required) data transport type: messages or bytes.
-
newConfig
final static URLEndpointListenerConfiguration newConfig(URLEndpointListenerConfiguration $self, Set<Collection> collections, String networkInterface, Integer port, Boolean disableTls, TLSIdentity identity, ListenerAuthenticator authenticator, Boolean readOnly, Boolean enableDeltaSync)
<b>ENTERPRISE EDITION API</b><br><br>
<p> Create a URLEndpointListenerConfigurations, overriding the receiver's values with the passed parameters.- Parameters:
collections- the local collection.networkInterface- the interface on which to listen: default is 0.0.0.0.port- listener port: default is next available port.disableTls- true to disable TLS: default is false.identity- certs and keys for the listener.authenticator- authenticator.readOnly- true for a read-only connection.enableDeltaSync- true to enable delta sync.
-
newConfig
final static VectorIndexConfiguration newConfig(VectorIndexConfiguration $self, String expression, Long dimensions, Long centroids, VectorEncoding encoding, VectorIndexConfiguration.DistanceMetric metric, Long minTrainingSize, Long maxTrainingSize, Long numProbes, Boolean lazy)
-
create
@Deprecated(message = "Use DatabaseConfigurationFactory.newConfig(String?, EncryptionKey?)", replaceWith = @ReplaceWith(imports = {}, expression = "DatabaseConfigurationFactory.newConfig(String?, EncryptionKey?)")) final static DatabaseConfiguration create(DatabaseConfiguration $self, String databasePath, EncryptionKey encryptionKey)
Create a DatabaseConfiguration, overriding the receiver's values with the passed parameters.
- Parameters:
databasePath- The directory in which the database is stored.encryptionKey- ENTERPRISE EDITION API: The database encryption key.
-
-
-
-