Examples of load()


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

               Set<Object> storedKeys = cacheStore.loadAllKeys(new ReadOnlyDataContainerBackedKeySet(dataContainer));
               for (Object key : storedKeys) {
                  int segmentId = readCh.getSegment(key);
                  if (segments.contains(segmentId)) {
                     try {
                        InternalCacheEntry ice = cacheStore.load(key);
                        if (ice != null) { // check entry still exists
                           sendEntry(ice, segmentId);
                        }
                     } catch (CacheLoaderException e) {
                        log.failedLoadingValueFromCacheStore(key, e);
View Full Code Here

Examples of org.infinispan.loaders.spi.CacheLoader.load()

   protected <KIn, KOut> KOut loadValueFromCacheLoader(KIn key) {
      KOut value = null;
      CacheLoader cl = resolveCacheLoader();
      if (cl != null) {
         try {
            InternalCacheEntry entry = cl.load(key);
            if (entry != null) {
               Object loadedValue = entry.getValue();
               if (loadedValue instanceof MarshalledValue) {
                  value = (KOut) ((MarshalledValue) loadedValue).get();
               } else {
View Full Code Here

Examples of org.infinispan.loaders.spi.CacheStore.load()

               Set<Object> storedKeys = cacheStore.loadAllKeys(new ReadOnlyDataContainerBackedKeySet(dataContainer));
               for (Object key : storedKeys) {
                  int segmentId = readCh.getSegment(key);
                  if (segments.contains(segmentId)) {
                     try {
                        InternalCacheEntry ice = cacheStore.load(key);
                        if (ice != null) { // check entry still exists
                           sendEntry(ice, segmentId);
                        }
                     } catch (CacheLoaderException e) {
                        log.failedLoadingValueFromCacheStore(key, e);
View Full Code Here

Examples of org.infinispan.persistence.spi.AdvancedCacheLoader.load()

         final Object key = "k" + i;
         final Object value = "v" + i;
         final long lifespan = i % 2 == 1 ? -1 : this.lifespan;
         boolean found = false;
         InternalCacheEntry se = preloadingCache.getAdvancedCache().getDataContainer().get(key);
         MarshalledEntry load = preloadingCacheLoader.load(key);
         if (se != null) {
            testStoredEntry(se.getValue(), value, se.getLifespan(), lifespan, "Cache", key);
            found = true;
         }
         if (load != null) {
View Full Code Here

Examples of org.infinispan.persistence.spi.CacheLoader.load()

   private void checkCacheStoresContainPersons() throws PersistenceException {
      for (Cache<Object, Object> cache : caches()) {
         CacheLoader store = TestingUtil.getFirstLoader(cache);
         for (int i = 0; i < persons.length; i++)
            assertEquals(persons[i], store.load(persons[i].getName()).getValue());
      }
   }

   private void checkCacheStoresEmpty() throws PersistenceException {
      for (Cache<Object, Object> cache : caches()) {
View Full Code Here

Examples of org.infinispan.util.TypedProperties.load()

   protected TypedProperties toTypedProperties(String s) {
      TypedProperties tp = new TypedProperties();
      if (s != null && s.trim().length() > 0) {
         InputStream stream = new ByteArrayInputStream(s.getBytes());
         try {
            tp.load(stream);
         } catch (IOException e) {
            throw new ConfigurationException("Unable to parse properties string " + s, e);
         }
      }
      return tp;
View Full Code Here

Examples of org.infoset.xml.DocumentLoader.load()

  
   public void load(URI location)
      throws IOException,XMLException
   {
      DocumentLoader loader = new SAXDocumentLoader();
      Document doc = loader.load(location);
      Element top = doc.getDocumentElement();
      if (!top.getName().equals(SERVER)) {
         throw new XMLException("Expecting "+SERVER+" but found "+top.getName());
      }
     
View Full Code Here

Examples of org.infoset.xml.sax.SAXDocumentLoader.load()

  
   public void load(URI location)
      throws IOException,XMLException
   {
      DocumentLoader loader = new SAXDocumentLoader();
      Document doc = loader.load(location);
      Element top = doc.getDocumentElement();
      if (!top.getName().equals(SERVER)) {
         throw new XMLException("Expecting "+SERVER+" but found "+top.getName());
      }
     
View Full Code Here

Examples of org.ini4j.Ini.load()

                  f = new FileReader(RGSSProjectHelper.getGameIniFile(project));

                  // build game ini
                  Ini ini = new Ini();

                  ini.load();

                  Ini.Section section = ini.get("Game");

                  // add it
                  section.add("Title", ftf.getContentAsString());
View Full Code Here

Examples of org.insightech.er.editor.persistent.Persistent.load()

    InputStream in = null;
    for(String ermPath:project.getErmPathList()) {
      File file = new File(FileUtils.getAbsolutePath(ermPath));
      try {
        in =new BufferedInputStream(new FileInputStream(file));
        ERDiagram diagram = persistent.load(in);
        List<ERTable> erTableList = diagram.getDiagramContents().getContents().getTableSet().getList();
        for(ERTable erTable:erTableList) {
          map.put(erTable.getPhysicalName(), erTable);
        }
      } catch (FileNotFoundException e) {
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.