KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mondrian > rolap > cache > CachePool


1 /*
2 // $Id: //open/mondrian/src/main/mondrian/rolap/cache/CachePool.java#10 $
3 // This software is subject to the terms of the Common Public License
4 // Agreement, available at the following URL:
5 // http://www.opensource.org/licenses/cpl.html.
6 // Copyright (C) 2004-2007 Julian Hyde and others.
7 // All Rights Reserved.
8 // You must accept the terms of that agreement to use this software.
9 */

10 package mondrian.rolap.cache;
11
12 import mondrian.rolap.RolapSchema;
13
14 /**
15  * A <code>CachePool</code> manages the objects in a collection of
16  * caches.
17  *
18  * @author av
19  */

20 public class CachePool {
21
22     /** The singleton. */
23     private static CachePool instance = new CachePool();
24
25     /** Returns the singleton. */
26     public static CachePool instance() {
27         return instance;
28     }
29
30     private CachePool() {
31     }
32
33     /**
34      * Deprecated.
35      *
36      * @deprecated Superseded by
37      * {@link mondrian.olap.CacheControl#flushSchemaCache()},
38      * {@link mondrian.olap.CacheControl#flush(mondrian.olap.CacheControl.CellRegion)}.
39      */

40     public void flush() {
41         RolapSchema.clearCache();
42     }
43 }
44
45 // End CachePool.java
46
Popular Tags