Examples of copy()


Examples of org.apache.jcs.engine.behavior.ICompositeCacheAttributes.copy()

        {
            log.warn( "Could not instantiate ccAttr named '" + attrName +
                      "', using defaults." );

            ICompositeCacheAttributes ccAttr2 = ccMgr.getDefaultCacheAttributes();
            ccAttr = ccAttr2.copy();
        }

        log.debug( "Parsing options for '" + attrName + "'" );

        PropertySetter.setProperties( ccAttr, props, attrName + "." );
View Full Code Here

Examples of org.apache.jcs.engine.behavior.IElementAttributes.copy()

        {
            log.warn( "Could not instantiate eAttr named '" + attrName +
                      "', using defaults." );

            IElementAttributes eAttr2 = ccMgr.getDefaultElementAttributes();
            eAttr = eAttr2.copy();
        }

        log.debug( "Parsing options for '" + attrName + "'" );

        PropertySetter.setProperties( eAttr, props, attrName + "." );
View Full Code Here

Examples of org.apache.ldap.server.db.IndexRecord.copy()

            NamingEnumeration childList = db.list( id );
            while( childList.hasMore() )
            {
                IndexRecord old = ( IndexRecord ) childList.next();
                IndexRecord newRec = new IndexRecord();
                newRec.copy( old );
                records.add( newRec );
            }
            childList.close();

            Iterator list = records.iterator();
View Full Code Here

Examples of org.apache.ldap.server.partition.impl.btree.IndexRecord.copy()

            NamingEnumeration childList = db.list( id );
            while( childList.hasMore() )
            {
                IndexRecord old = ( IndexRecord ) childList.next();
                IndexRecord newRec = new IndexRecord();
                newRec.copy( old );
                records.add( newRec );
            }
            childList.close();

            Iterator list = records.iterator();
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentManager.copy()

        sourceDoc.getRepositoryNode().lock();

        DocumentManager docMgr = null;
        try {
            docMgr = (DocumentManager) getManager().lookup(DocumentManager.ROLE);
            docMgr.copy(sourceDoc, destDoc.getLocator());
        } finally {
            if (docMgr != null) {
                getManager().release(docMgr);
            }
        }
View Full Code Here

Examples of org.apache.lenya.cms.publication.SiteTree.copy()

        SiteTreeNode node = firsttree.getNode(firstDocumentId);

        if (node != null) {
            SiteTreeNode parentNode = sectree.getNode(parentId.toString());
            if (parentNode != null) {
                sectree.copy(node, parentNode, newid, null);
            } else {
                throw new SiteTreeException("The parent node " + parentNode
                        + " where the copied node shall be inserted not found");
            }
        } else {
View Full Code Here

Examples of org.apache.lenya.cms.site.SiteManager.copy()

        try {
            resourcesManager = (ResourcesManager) this.manager.lookup(ResourcesManager.ROLE);
            resourcesManager.copyResources(sourceDocument, destinationDocument);
            selector = (ServiceSelector) this.manager.lookup(SiteManager.ROLE + "Selector");
            siteManager = (SiteManager) selector.select(publication.getSiteManagerHint());
            siteManager.copy(sourceDocument, destinationDocument);
        } catch (Exception e) {
            throw new PublicationException(e);
        } finally {
            if (resourcesManager != null) {
                this.manager.release(resourcesManager);
View Full Code Here

Examples of org.apache.lucene.search.FieldComparator.copy()

    }

    // Update existing group:
    for (int compIDX = 0;; compIDX++) {
      final FieldComparator fc = comparators[compIDX];
      fc.copy(spareSlot, doc);

      final int c = reversed[compIDX] * fc.compare(group.comparatorSlot, spareSlot);
      if (c < 0) {
        // Definitely not competitive.
        return;
View Full Code Here

Examples of org.apache.lucene.store.Directory.copy()

     
      // fsync all copied files (except segmentsFile)
      indexDir.sync(files);
     
      // now copy and fsync segmentsFile
      clientDir.copy(indexDir, segmentsFile, segmentsFile, IOContext.READONCE);
      indexDir.sync(Collections.singletonList(segmentsFile));
     
      success = true;
    } finally {
      if (!success) {
View Full Code Here

Examples of org.apache.lucene.util.BytesRef.copy()

        while (line < lines.length) {
          String w = lines[line++];
          if (w == null) {
            break;
          }
          term.copy(w);
          b.add(term, nothing);
        }
       
        return b.finish();
      }
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.