Examples of loadAll()


Examples of org.infinispan.loaders.CacheStore.loadAll()

         }

         CacheStore cs = dmi.getCacheStoreForRehashing();
         if (cs != null) {
            if (log.isTraceEnabled()) log.trace("Examining state in cache store");
            for (InternalCacheEntry ice : cs.loadAll()) if (!statemap.containsKey(ice.getKey())) statemap.addState(ice);
         }

         // push state.
         Set<Future<Void>> pushFutures = new HashSet<Future<Void>>();
         for (Map.Entry<Address, Map<Object, InternalCacheValue>> entry : statemap.getState().entrySet()) {
View Full Code Here

Examples of org.infinispan.loaders.CacheStore.loadAll()

         if (shouldAddToMap(k, oldCH, numCopies, self)) state.put(k, ice.toInternalCacheValue());
      }

      CacheStore cacheStore = distributionManager.getCacheStoreForRehashing();
      if (cacheStore != null) {
         for (InternalCacheEntry ice : cacheStore.loadAll()) {
            Object k = ice.getKey();
            if (!state.containsKey(k) && shouldAddToMap(k, oldCH, numCopies, self))
               state.put(k, ice.toInternalCacheValue());
         }
      }
View Full Code Here

Examples of org.infinispan.loaders.CacheStore.loadAll()

         }

         CacheStore cs = dmi.getCacheStoreForRehashing();
         if (cs != null) {
            if (log.isTraceEnabled()) log.trace("Examining state in cache store");
            for (InternalCacheEntry ice : cs.loadAll()) if (!statemap.containsKey(ice.getKey())) statemap.addState(ice);
         }

         // push state.
         Set<Future<Object>> pushFutures = new HashSet<Future<Object>>();
         for (Map.Entry<Address, Map<Object, InternalCacheValue>> entry : statemap.getState().entrySet()) {
View Full Code Here

Examples of org.openmeetings.app.installation.ImportInitvalues.loadAll()

            AdminUserDetails admin = checkAdminDetails(ctxName, langPath);
            dropDB(connectionProperties);
           
            shutdownScheduledJobs(ctxName);
            ImportInitvalues importInit = getApplicationContext(ctxName).getBean(ImportInitvalues.class);
            importInit.loadAll(langPath, cfg, admin.login, admin.pass, admin.email, admin.group, admin.tz, force);
          }         
         
          File installerFile = new File(new File(omHome, ScopeApplicationAdapter.configDirName), InstallationDocumentHandler.installFileName);
          InstallationDocumentHandler.getInstance().createDocument(installerFile.getAbsolutePath(), 3);
        } catch(Exception e) {
View Full Code Here

Examples of org.pentaho.platform.plugin.services.importer.ArchiveLoader.loadAll()

          File directory = new File( solutionPath );

          // Instantiate the importer
          IPlatformImporter importer = PentahoSystem.get( IPlatformImporter.class );
          ArchiveLoader archiveLoader = new ArchiveLoader( importer );
          archiveLoader.loadAll( directory, ArchiveLoader.ZIPS_FILTER );
          return null;
        }
      } );
    } catch ( Exception e ) {
      Logger.error( this.getClass().getName(), e.getMessage() );
View Full Code Here

Examples of org.rssowl.core.internal.persist.dao.CachingDAO.loadAll()

    System.gc();
    Owl.getPersistenceService().startup(new NullOperationMonitor());

    /* Assert Folders */
    CachingDAO dao = (CachingDAO) DynamicDAO.getDAO(IFolderDAO.class);
    Collection all = dao.loadAll();
    assertEquals(20, all.size());
    for (Object object : all) {
      if (object instanceof IFolder)
        assertProperties((IFolder) object);
      else
View Full Code Here

Examples of org.rssowl.core.internal.persist.dao.CachingDAO.loadAll()

        fail();
    }

    /* Assert Bookmarks */
    dao = (CachingDAO) DynamicDAO.getDAO(IBookMarkDAO.class);
    all = dao.loadAll();
    assertEquals(20, all.size());
    for (Object object : all) {
      if (object instanceof IBookMark)
        assertProperties((IBookMark) object);
      else
View Full Code Here

Examples of org.rssowl.core.internal.persist.dao.CachingDAO.loadAll()

        fail();
    }

    /* Assert News Bins */
    dao = (CachingDAO) DynamicDAO.getDAO(INewsBinDAO.class);
    all = dao.loadAll();
    assertEquals(20, all.size());
    for (Object object : all) {
      if (object instanceof INewsBin)
        assertProperties((INewsBin) object);
      else
View Full Code Here

Examples of org.rssowl.core.internal.persist.dao.CachingDAO.loadAll()

        fail();
    }

    /* Assert Search Marks */
    dao = (CachingDAO) DynamicDAO.getDAO(ISearchMarkDAO.class);
    all = dao.loadAll();
    assertEquals(20, all.size());
    for (Object object : all) {
      if (object instanceof ISearchMark)
        assertProperties((ISearchMark) object);
      else
View Full Code Here

Examples of org.rssowl.core.persist.dao.IBookMarkDAO.loadAll()

  public void testLoadAllBookMarks() throws Exception {
    IFeed feed = fFactory.createFeed(null, new URI("http://www.myfeed.com"));
    DynamicDAO.save(feed);

    IBookMarkDAO markDAO = DynamicDAO.getDAO(IBookMarkDAO.class);
    Collection<IBookMark> emptyBookmarks = markDAO.loadAll();
    assertEquals(0, emptyBookmarks.size());

    IFolder root1 = fFactory.createFolder(null, null, "Root 1");
    root1 = DynamicDAO.save(root1);
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.