Package org.exoplatform.portal.pom.config.cache

Examples of org.exoplatform.portal.pom.config.cache.DataCache


      new UnitTest()
      {
         public void execute() throws Exception
         {
            mgr.clearCache();
            DataCache cache = mgr.getDecorator(DataCache.class);
            long readCount0 = cache.getReadCount();
            userPortalConfigSer_.getUserPortalConfig("classic", null);
            long readCount1 = cache.getReadCount();
            assertTrue(readCount1 > readCount0);
            userPortalConfigSer_.getUserPortalConfig("classic", null);
            long readCount2 = cache.getReadCount();
            assertEquals(readCount1, readCount2);
         }
      }.execute(null);
   }
View Full Code Here


      new UnitTest()
      {
         public void execute() throws Exception
         {
            mgr.clearCache();
            DataCache cache = mgr.getDecorator(DataCache.class);
            long readCount0 = cache.getReadCount();
            userPortalConfigSer_.getPage("portal::test::test1");
            long readCount1 = cache.getReadCount();
            assertTrue(readCount1 > readCount0);
            userPortalConfigSer_.getPage("portal::test::test1");
            long readCount2 = cache.getReadCount();
            assertEquals(readCount1, readCount2);
         }
      }.execute(null);
   }
View Full Code Here

      new UnitTest()
      {
         public void execute() throws Exception
         {
            mgr.clearCache();
            DataCache cache = mgr.getDecorator(DataCache.class);
            long readCount0 = cache.getReadCount();
            storage_.getPageNavigation("portal", "test");
            long readCount1 = cache.getReadCount();
            assertTrue(readCount1 > readCount0);
            storage_.getPageNavigation("portal", "test");
            long readCount2 = cache.getReadCount();
            assertEquals(readCount1, readCount2);
         }
      }.execute(null);
   }
View Full Code Here

      //
      this.repositoryService = repositoryService;
      this.manager = manager;
      this.cache = cacheService.getCacheInstance("MOPSessionManager");
      this.pomService = null;
      this.executor = new DataCache(new ExecutorDispatcher());
   }
View Full Code Here

        //
        this.repositoryService = repositoryService;
        this.manager = manager;
        this.cache = cacheService.getCacheInstance("MOPSessionManager");
        this.pomService = null;
        this.executor = new PortalNamesCache(new DataCache(new ExecutorDispatcher()));
    }
View Full Code Here

      //
      this.repositoryService = repositoryService;
      this.manager = manager;
      this.cache = cacheService.getCacheInstance("MOPSessionManager");
      this.pomService = null;
      this.executor = new PortalNamesCache(new DataCache(new ExecutorDispatcher()));
   }
View Full Code Here

      //
      this.repositoryService = repositoryService;
      this.manager = manager;
      this.cache = cacheService.getCacheInstance("MOPSessionManager");
      this.pomService = null;
      this.executor = new DataCache(new ExecutorDispatcher());
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.portal.pom.config.cache.DataCache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.