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

The following examples show how to use org.apache.kylin.common.persistence.ResourceStore#PROJECT_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: ProjectManager.java    From kylin-on-parquet-v2 with Apache License 2.0 6 votes vote down vote up
private ProjectManager(KylinConfig config) throws IOException {
    logger.info("Initializing ProjectManager with metadata url " + config);
    this.config = config;
    this.projectMap = new CaseInsensitiveStringCache<ProjectInstance>(config, "project");
    this.l2Cache = new ProjectL2Cache(this);
    this.crud = new CachedCrudAssist<ProjectInstance>(getStore(), ResourceStore.PROJECT_RESOURCE_ROOT,
            ProjectInstance.class, projectMap) {
        @Override
        protected ProjectInstance initEntityAfterReload(ProjectInstance prj, String resourceName) {
            prj.init();
            return prj;
        }
    };

    // touch lower level metadata before registering my listener
    crud.reloadAll();
    Broadcaster.getInstance(config).registerListener(new ProjectSyncListener(), "project");
}
 
Example 2
Source File: ProjectManager.java    From kylin with Apache License 2.0 6 votes vote down vote up
private ProjectManager(KylinConfig config) throws IOException {
    logger.info("Initializing ProjectManager with metadata url " + config);
    this.config = config;
    this.projectMap = new CaseInsensitiveStringCache<ProjectInstance>(config, "project");
    this.l2Cache = new ProjectL2Cache(this);
    this.crud = new CachedCrudAssist<ProjectInstance>(getStore(), ResourceStore.PROJECT_RESOURCE_ROOT,
            ProjectInstance.class, projectMap) {
        @Override
        protected ProjectInstance initEntityAfterReload(ProjectInstance prj, String resourceName) {
            prj.init();
            return prj;
        }
    };

    // touch lower level metadata before registering my listener
    crud.reloadAll();
    Broadcaster.getInstance(config).registerListener(new ProjectSyncListener(), "project");
}
 
Example 3
Source File: ProjectInstance.java    From kylin-on-parquet-v2 with Apache License 2.0 4 votes vote down vote up
public static String concatResourcePath(String projectName) {
    return ResourceStore.PROJECT_RESOURCE_ROOT + "/" + projectName + ".json";
}
 
Example 4
Source File: ProjectInstance.java    From kylin with Apache License 2.0 4 votes vote down vote up
public static String concatResourcePath(String projectName) {
    return ResourceStore.PROJECT_RESOURCE_ROOT + "/" + projectName + ".json";
}
 
Example 5
Source File: ProjectInstance.java    From Kylin with Apache License 2.0 4 votes vote down vote up
public static String concatResourcePath(String projectName) {
    return ResourceStore.PROJECT_RESOURCE_ROOT + "/" + projectName + ".json";
}
 
Example 6
Source File: ProjectInstance.java    From Kylin with Apache License 2.0 4 votes vote down vote up
public static String concatResourcePath(String projectName) {
    return ResourceStore.PROJECT_RESOURCE_ROOT + "/" + projectName + ".json";
}