Class MongoDataConnection

java.lang.Object
com.hazelcast.dataconnection.DataConnectionBase
com.hazelcast.jet.mongodb.dataconnection.MongoDataConnection
All Implemented Interfaces:
DataConnection

public class MongoDataConnection extends DataConnectionBase
Creates a MongoDB DataConnection.

According to MongoClient documentation, the client object is responsible for maintaining connection pool, so this data connection just returns one, cached client.

Since:
5.3
  • Field Details

    • CONNECTION_STRING_PROPERTY

      public static final String CONNECTION_STRING_PROPERTY
      Name of a property which holds connection string to the mongodb instance.
      See Also:
    • DATABASE_PROPERTY

      public static final String DATABASE_PROPERTY
      Name of a property with a database name hint. This is used as a hint only; listResources() will return only collection from db with this name, but client is not restricted to this database. It can be used to specify database to which SQL Mappings will point.
      See Also:
    • USERNAME_PROPERTY

      public static final String USERNAME_PROPERTY
      Name of the property holding username.
      See Also:
    • PASSWORD_PROPERTY

      public static final String PASSWORD_PROPERTY
      Name of the property holding user password.
      See Also:
    • HOST_PROPERTY

      public static final String HOST_PROPERTY
      Name of a property which holds host:port address of the mongodb instance.
      See Also:
    • AUTH_DB_PROPERTY

      public static final String AUTH_DB_PROPERTY
      Name of the property holding the name of the database in which user is created. Default value is admin.
      See Also:
    • CONNECTION_POOL_MIN

      public static final String CONNECTION_POOL_MIN
      Name of the property holding the minimum size of Mongo Client connection pool. Default is 10.
      Since:
      5.4
      See Also:
    • CONNECTION_POOL_MAX

      public static final String CONNECTION_POOL_MAX
      Name of the property holding the maximum size of Mongo Client connection pool. Default is 10.
      Since:
      5.4
      See Also:
  • Constructor Details

    • MongoDataConnection

      public MongoDataConnection(DataConnectionConfig config)
      Creates a new data connection based on given config.
  • Method Details