/** * Returns a list of {@link URL} containing the log extension jars based on the given configuration. */ public static List<File> getExtensionJars(CConfiguration cConf) { List<File> libJars = new ArrayList<>(); // Adds all extra log library jars for (String libDir : cConf.getTrimmedStringCollection(Constants.Logging.PIPELINE_LIBRARY_DIR)) { List<File> files = new ArrayList<>(DirUtils.listFiles(new File(libDir), "jar")); Collections.sort(files, FILE_NAME_COMPARATOR); libJars.addAll(files); } return libJars; }
/** * Returns a list of {@link URL} containing the log extension jars based on the given configuration. */ public static List<File> getExtensionJars(CConfiguration cConf) { List<File> libJars = new ArrayList<>(); // Adds all extra log library jars for (String libDir : cConf.getTrimmedStringCollection(Constants.Logging.PIPELINE_LIBRARY_DIR)) { List<File> files = new ArrayList<>(DirUtils.listFiles(new File(libDir), "jar")); Collections.sort(files, FILE_NAME_COMPARATOR); libJars.addAll(files); } return libJars; }
@Inject ArtifactStore(CConfiguration cConf, NamespacePathLocator namespacePathLocator, LocationFactory locationFactory, Impersonator impersonator, TransactionRunner transactionRunner) { this.locationFactory = locationFactory; this.namespacePathLocator = namespacePathLocator; this.impersonator = impersonator; this.requirementBlacklist = new HashSet<>(cConf.getTrimmedStringCollection(Constants.REQUIREMENTS_DATASET_TYPE_EXCLUDE)) .stream().map(String::toLowerCase).collect(Collectors.toSet()); this.transactionRunner = transactionRunner; }
return cConf.getTrimmedStringCollection(Constants.RuntimeMonitor.TOPICS_CONFIGS).stream().flatMap(key -> { int idx = key.lastIndexOf(':'); if (idx < 0) {
return cConf.getTrimmedStringCollection(Constants.RuntimeMonitor.TOPICS_CONFIGS).stream().flatMap(key -> { int idx = key.lastIndexOf(':'); if (idx < 0) {
Set<TopicId> systemTopics = new LinkedHashSet<>(); for (String topic : cConf.getTrimmedStringCollection(Constants.MessagingSystem.SYSTEM_TOPICS)) { int idx = topic.lastIndexOf(':'); if (idx < 0) {
Set<TopicId> systemTopics = new LinkedHashSet<>(); for (String topic : cConf.getTrimmedStringCollection(Constants.MessagingSystem.SYSTEM_TOPICS)) { int idx = topic.lastIndexOf(':'); if (idx < 0) {
@Inject ArtifactStore(CConfiguration cConf, DatasetFramework datasetFramework, NamespacedLocationFactory namespacedLocationFactory, LocationFactory locationFactory, TransactionSystemClient txClient, Impersonator impersonator) { this.locationFactory = locationFactory; this.namespacedLocationFactory = namespacedLocationFactory; this.datasetFramework = datasetFramework; this.transactional = Transactions.createTransactionalWithRetry( Transactions.createTransactional(new MultiThreadDatasetCache(new SystemDatasetInstantiator(datasetFramework), new TransactionSystemClientAdapter(txClient), META_ID.getParent(), Collections.<String, String>emptyMap(), null, null)), RetryStrategies.retryOnConflict(20, 100) ); this.impersonator = impersonator; this.requirementBlacklist = new HashSet<>(cConf.getTrimmedStringCollection(Constants.REQUIREMENTS_DATASET_TYPE_EXCLUDE)) .stream().map(String::toLowerCase).collect(Collectors.toSet()); }