Overview
Cache Build.
Build cache with NOW option
Build cache with ONCE option
Cache Rules.
Add Rules
Delete Rules
Update Rules
Example
Cache Build.
Build cache with NOW option
Code Block language java /** * method to build cache in Scheduler Manager. * @param cubeName: Name of the cube. * @param folderName: Name of the folder containing cube, use “” for root folder. * @param userInfo: Object of type UserInfo containing information about logged in user. */ public void buildCubeCacheNow(cubeName, folderName, userinfo);
Build cache with ONCE option
Code Block language java /** * method to add ONCE build schedule for cache in Scheduler Manager. * @param cubeName: Name of the cube. * @param folderName: Name of the folder containing cube, use “” for root folder. * @param onceDateTime: Date time in format mm/dd/yyyy hh:mm. * @param userInfo: Object of type UserInfo containing information about logged in user. */ public void buildCubeCacheOnce(cubeName, folderName, onceDateTime, userinfo);
Cache Rules.
Add Rules
Code Block language java /** * method to add rules in cache build. * @param cubeName: Name of the cube. * @param folderName: Name of the folder containing cube, use “” for root folder. * third parameter in method "addCachePopulationRules" is boolean which is to specify whether to build cache on cube build. * @param filters: Object of type Filters containing filter which needs to be added in cache rules. * @param userInfo: Object of type UserInfo containing information about logged in user. */ public List<ResponseStatus> addCachePopulationRules(cubeName, folderName, true, filters, userInfo);
Delete Rules
Code Block language java /** * method to delete all rules in cache build. * @param cubeName: Name of the cube. * @param folderName: Name of the folder containing cube, use “” for root folder. * @param userInfo: Object of type UserInfo containing information about logged in user. */ public List<ResponseStatus> deleteCachePopulationRules(cubeName, folderName, userInfo);
Update Rules
Code Block /** * method to update rules in cache build. * @param cubeName: Name of the cube. * @param folderName: Name of the folder containing cube, use “” for root folder. * third parameter in method "addCachePopulationRules" is boolean which is to specify whether to build cache on cube build. * @param filters: Object of type Filters containing filter which needs to be updated in cache rules. * @param userInfo: Object of type UserInfo containing information about logged in user. */ public List<ResponseStatus> updateCachePopulationRules(cubeName, folderName, false, filters, userInfo);
Sample Code
Code Block |
---|
/*Method to Cache Build over Cube*/ public static void cubeCacheBuildNow(SchedulerManager schedulerManager, UserInfo userInfo) { schedulerManager.buildCubeCacheNow("CubeName", "CubeFolderName", userInfo); } /*Method to Schedule Cache Build over Cube *Time format should be as of Kyvos, which can be seen on Kyvos Engine Page on Monitor Section */ public static void cubeCacheBuildOnce(SchedulerManager schedulerManager, UserInfo userInfo) { schedulerManager.buildCubeCacheOnce("CubeName", "CubeFolder", "MM/DD/YYYY 00:00", userInfo); } |
...