Package org.jboss.virtual.spi.cache

Examples of org.jboss.virtual.spi.cache.VFSCache.start()


      URL dir = (URL) editor.getValue();

      CombinedVFSCache cache = new CombinedVFSCache();
      VFSCacheFactory.setInstance(cache);
      VFSCache realCache = new NoopVFSCache();
      realCache.start();
      cache.setRealCache(realCache);

      try
      {
        cache.setPermanentRoots(Collections.<URL, ExceptionHandler>singletonMap(dir, null));
View Full Code Here


      assertNotNull(testPath);
      assertNotNull(testName);

      CombinedVFSCache cache = new CombinedVFSCache();                          
      VFSCache realCache = new NoopVFSCache();
      realCache.start();
      cache.setRealCache(realCache);
      VFSCacheFactory.setInstance(cache);
      try
      {
         String rootText = StringPropertyReplacer.replaceProperties("${test.dir}");
View Full Code Here

      assertNotNull(testPath);
      assertNotNull(testName);

      CombinedVFSCache cache = new CombinedVFSCache();                          
      VFSCache realCache = new NoopVFSCache();
      realCache.start();
      cache.setRealCache(realCache);
      VFSCacheFactory.setInstance(cache);
      try
      {
         String rootText = StringPropertyReplacer.replaceProperties("${test.dir}");
View Full Code Here

   }

   public void testClassLoaderWithCache() throws Exception
   {
      VFSCache cache = new IterableTimedVFSCache();
      cache.start();
      VFSCacheFactory.setInstance(cache);
      try
      {
         doTestClassLoader();
      }
View Full Code Here

         assertTrue("mkdir " + tempDir, tempDir.mkdir());

         System.setProperty("jboss.server.temp.dir", tempDir.getCanonicalPath());

         VFSCache cache = new LRUVFSCache(2, 5);
         cache.start();
         VFSCacheFactory.setInstance(cache);
      }
      catch (Exception e)
      {
         tearDown();
View Full Code Here

   public void testCache() throws Exception
   {
      URL url = getResource("/vfs/test/nested");

      VFSCache cache = createCache();
      cache.start();
      try
      {
         VFSCacheFactory.setInstance(cache);
         try
         {
View Full Code Here

   public void testCacheStatistics() throws Exception
   {
      URL url = getResource("/vfs/test/nested");

      VFSCache cache = createCache();
      cache.start();
      try
      {
         if (cache instanceof CacheStatistics)
         {
            CacheStatistics statistics = CacheStatistics.class.cast(cache);
View Full Code Here

      // to circumvent another bug in VFS
      Map<String, VFSContextFactory> factoryByProtocol = getFactoryByProtocol();
      VFSContextFactory oldFactory = factoryByProtocol.put("jar", new JarContextFactory());
     
      VFSCache cache = createCache();
      cache.start();
      try
      {
         VFSCacheFactory.setInstance(cache);
         try
         {
View Full Code Here

         urlString += "/";
      String testDir = urlString + "vfs/../vfs/test/";
      URL testURL = Strings.toURL(testDir);

      VFSCache cache = createCache();
      cache.start();
      try
      {
         VFSCacheFactory.setInstance(cache);
         try
         {
View Full Code Here

      super.setUp();
      // Uncomment this to test VFS nested jar copy handling
      System.setProperty(VFSUtils.FORCE_COPY_KEY, "true");

      VFSCache cache = new IterableTimedVFSCache();
      cache.start();
      VFSCacheFactory.setInstance(cache);

      addStructureDeployer(main, new WARStructure());
      addStructureDeployer(main, new MockEarStructureDeployer());
   }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.