Class MongoDbAccessMetadataImpl

    • Constructor Detail

      • MongoDbAccessMetadataImpl

        public MongoDbAccessMetadataImpl​(com.mongodb.client.MongoClient mongoClient,
                                         java.lang.String dbname,
                                         boolean recreate,
                                         ElasticsearchAccessMetadata esClient,
                                         MetadataCollections unitCollection,
                                         MetadataCollections objectCollection)
        Parameters:
        mongoClient - MongoClient
        dbname - MongoDB database name
        recreate - True to recreate the index
        esClient - Elasticsearch client
        unitCollection -
        objectCollection -
    • Method Detail

      • getUnitSize

        public static long getUnitSize()
        Returns:
        the current number of Unit
      • getObjectGroupSize

        public static long getObjectGroupSize()
        Returns:
        the current number of ObjectGroup
      • deleteObjectGroupByTenant

        public void deleteObjectGroupByTenant​(java.lang.Integer... tenantIds)
                                       throws MetaDataExecutionException
        Delete Object Group metadata by Tenant Not check, test feature !
        Parameters:
        tenantIds - the list of tenants
        Throws:
        MetaDataExecutionException