use of org.pentaho.platform.plugin.action.mdx.MDXLookupRule in project pentaho-platform by pentaho.
the class MondrianFlushCacheComponent method executeAction.
public boolean executeAction() {
MDXLookupRule mdxLookupRule = getLookupRule();
Connection conn = ((MDXConnection) mdxLookupRule.shareConnection()).getConnection();
CacheControl cacheControl = conn.getCacheControl(null);
Cube[] cubes = conn.getSchema().getCubes();
for (Cube cube : cubes) {
cacheControl.flush(cacheControl.createMeasuresRegion(cube));
}
cacheControl.flushSchema(conn.getSchema());
return true;
}
Aggregations