If your {@link Command} throws this, it will be sent back at you.You must handle it.
561562563564565566567568569570571572573574575576577578
{ final List<RolapStar> starList = getStarList(region); for (RolapStar star : starList) { star.print(pw, "", false); } final SegmentCacheManager manager = MondrianServer.forConnection(connection) .getAggregationManager().cacheMgr; Locus.execute( connection, "CacheControlImpl.printCacheState", new Locus.Action<Void>() { public Void execute() { manager.printCacheState(region, pw, Locus.peek()); return null; } }); }
392393394395396397398399400401402403404405406407408
final Locus locus = new Locus( this, "Execution.unregisterSegmentRequests", "cleaning up segment registrations"); final SegmentCacheManager mgr = locus.getServer() .getAggregationManager().cacheMgr; mgr.execute( new SegmentCacheManager.Command<Void>() { public Void call() throws Exception { mgr.getIndexRegistry() .cancelExecutionSegments(Execution.this); return null; } public Locus getLocus() { return locus;