Java Code Examples for org.apache.kylin.common.persistence.ResourceStore#KAFKA_RESOURCE_ROOT

The following examples show how to use org.apache.kylin.common.persistence.ResourceStore#KAFKA_RESOURCE_ROOT . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KafkaConfigManager.java    From kylin-on-parquet-v2 with Apache License 2.0 5 votes vote down vote up
private KafkaConfigManager(KylinConfig config) throws IOException {
    this.config = config;
    this.kafkaMap = new CaseInsensitiveStringCache<KafkaConfig>(config, "kafka");
    this.crud = new CachedCrudAssist<KafkaConfig>(getStore(), ResourceStore.KAFKA_RESOURCE_ROOT, KafkaConfig.class,
            kafkaMap) {
        @Override
        protected KafkaConfig initEntityAfterReload(KafkaConfig t, String resourceName) {
            return t; // noop
        }
    };

    // touch lower level metadata before registering my listener
    crud.reloadAll();
    Broadcaster.getInstance(config).registerListener(new KafkaSyncListener(), "kafka");
}
 
Example 2
Source File: KafkaConfigManager.java    From kylin with Apache License 2.0 5 votes vote down vote up
private KafkaConfigManager(KylinConfig config) throws IOException {
    this.config = config;
    this.kafkaMap = new CaseInsensitiveStringCache<KafkaConfig>(config, "kafka");
    this.crud = new CachedCrudAssist<KafkaConfig>(getStore(), ResourceStore.KAFKA_RESOURCE_ROOT, KafkaConfig.class,
            kafkaMap) {
        @Override
        protected KafkaConfig initEntityAfterReload(KafkaConfig t, String resourceName) {
            return t; // noop
        }
    };

    // touch lower level metadata before registering my listener
    crud.reloadAll();
    Broadcaster.getInstance(config).registerListener(new KafkaSyncListener(), "kafka");
}
 
Example 3
Source File: KafkaConfig.java    From kylin-on-parquet-v2 with Apache License 2.0 4 votes vote down vote up
public static String concatResourcePath(String streamingName) {
    return ResourceStore.KAFKA_RESOURCE_ROOT + "/" + streamingName + MetadataConstants.FILE_SURFIX;
}
 
Example 4
Source File: KafkaConfig.java    From kylin with Apache License 2.0 4 votes vote down vote up
public static String concatResourcePath(String streamingName) {
    return ResourceStore.KAFKA_RESOURCE_ROOT + "/" + streamingName + MetadataConstants.FILE_SURFIX;
}