Examples of retrieve()


Examples of com.cetsoft.imcache.cache.offheap.bytebuffer.OffHeapByteBuffer.retrieve()

    OffHeapByteBuffer buffer = new OffHeapByteBuffer(0,1000);
    SimpleObject object = new SimpleObject(x, y);
    for (int i = 0; i < length; i++) {
      byte [] payload = serialize(object);
      Pointer pointer = buffer.store(payload);
      SimpleObject simpleObject = deserialize(buffer.retrieve(pointer));
      if(object.getX()!=simpleObject.getX()&&object.getY()!=simpleObject.getY()){
        System.err.println("Problem");
      }
    }
    Pointer pointer = buffer.update(new Pointer(115, buffer), new byte[200]);
View Full Code Here

Examples of com.ibm.j2g.jca.connector.FileRetrieverConnection.retrieve()

        FileRetrieverConnection connection = null;
        try {
            connection = getConnection();
            response.setContentType("application/x-download");
            response.setHeader("Content-Disposition", "attachment; filename=" + file);
            connection.retrieve(file, response.getOutputStream());
           
        } catch (FileNotFoundException fnfe) {
            response.sendError(HttpServletResponse.SC_NOT_FOUND);
           
        } catch (Exception e) {
View Full Code Here

Examples of com.jeecms.core.entity.Ftp.retrieve()

          dbFileMng.restore(imgSrcPath, file);
        } else if (site.getUploadFtp() != null) {
          Ftp ftp = site.getUploadFtp();
          String ftpUrl = ftp.getUrl();
          imgSrcPath = imgSrcPath.substring(ftpUrl.length());
          File file = ftp.retrieve(imgSrcPath);
          imageScale.resizeFix(file, file, reMinWidth, reMinHeight,
              getLen(imgTop, imgScale),
              getLen(imgLeft, imgScale), getLen(imgWidth,
                  imgScale), getLen(imgHeight, imgScale));
          ftp.restore(imgSrcPath, file);
View Full Code Here

Examples of com.redhat.ceylon.compiler.java.codegen.JavaPositionsRetriever.retrieve()

                if(e.getKind() == Kind.ENTER){
                    if(compilationUnit == null) {
                        compilationUnit = (JCCompilationUnit) e.getCompilationUnit();
                        // for some reason compilationUnit is full here in the listener, but empty as soon
                        // as the compile task is done. probably to clean up for the gc?
                        javaPositionsRetriever.retrieve(compilationUnit);
                        compilerSrc = normalizeLineEndings(javaPositionsRetriever.getJavaSourceCodeWithCeylonPositions());
                        AbstractTransformer.trackNodePositions(null);
                    }
                }
            }
View Full Code Here

Examples of com.salesforce.ide.core.remote.MetadataStubExt.retrieve()

            // send request and wait for result
            if (logger.isDebugEnabled()) {
                logger.debug("Calling retrieve() at " + (new Date()).toString());
            }

            AsyncResult asyncResult = metadataStubExt.retrieve(retrieveRequest);
            monitorWork(monitor);

            // get async result
            retrieveResultExt = getRetrieveResult(retrieveResultExt, asyncResult, metadataStubExt, monitor);
View Full Code Here

Examples of com.salesforce.omakase.PluginRegistry.retrieve()

            // return the results
            ParserResult result = new ParserResult();
            result.content = writer.write();

            if (registry.retrieve(ThemeFunctionPlugin.class).isPresent()) {
                result.themeExpressions = registry.retrieve(ThemeFunctionPlugin.class).get().parsedExpressions();
            }

            return result;
        }
View Full Code Here

Examples of com.sun.jdori.StateManagerInternal.retrieve()

      JDOClass jdoClass = Helper.getJDOClass(pc.getClass());
      fieldNums = jdoClass.getManagedFieldNumbers();

      FieldManager fm = new OjbFieldManager(pc, broker);
      smi.replaceFields(fieldNums, fm);
      smi.retrieve();
     
      // get JDO PersistencecCapable instance from SM and add it to result collection
      Object instance = smi.getObject();
      result.add(instance);
      }
View Full Code Here

Examples of com.sun.messaging.jmq.admin.objstore.ObjStore.retrieve()

         * If no -f option, check if the object already exists
         * so we can confirm with user to overwrite.
         */
  if (!force) {
      try  {
          object = os.retrieve(lookupName);

            } catch (NameNotFoundException nnfe) {
    // Make sure that this exception is NOT treated as an error for add
    ;

View Full Code Here

Examples of com.volantis.cache.Cache.retrieve()

        async.update(result);

        CacheableObjectProvider cacheableObjectProvider =
            new ExpiredObjectsRemainExpiredCacheableObjectProvider(cache.getRootGroup());
        assertNotNull("Integer object is retrievable via the cache",
                cache.retrieve(cacheKey, cacheableObjectProvider));

        Thread.sleep(3000);

        // Slightly messy.
        // Done this way so that we don't get a NullPointerException, and have
View Full Code Here

Examples of com.volantis.cache.impl.InternalCache.retrieve()

        Object object;

        // Check the cache integrity.
        ensureCacheIntegrity(cache);

        object = cache.retrieve(key1);
        assertSame(value1, object);

        // Check the cache integrity.
        ensureCacheIntegrity(cache);
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.