protected int crossCatalogResultSortingThreshold;
public CatalogServiceLocal(CatalogRepository catalogRepository, IngestMapper ingestMapper, File pluginStorageDir, TransactionIdFactory transactionIdFactory, boolean restrictQueryPermissions, boolean restrictIngestPermissions, boolean oneCatalogFailsAllFail, boolean simplifyQueries, boolean disableIntersectingCrossCatalogQueries, int crossCatalogResultSortingThreshold) throws InstantiationException {
try {
this.catalogs = new HashSet<Catalog>();
this.catalogsLock = new ReentrantReadWriteLock();
this.ingestMapperLock = new ReentrantReadWriteLock();
this.setPluginStorageDir(pluginStorageDir);
this.setRestrictQueryPermissions(restrictQueryPermissions);
this.setRestrictIngestPermissions(restrictIngestPermissions);
this.setTransactionIdFactory(transactionIdFactory);
this.setIngestMapper(ingestMapper);