Examples of copy()


Examples of org.jboss.netty.buffer.CompositeChannelBuffer.copy()

        ChannelBuffer cumulation = currentMessage.getContent();
        if (cumulation instanceof CompositeChannelBuffer) {
            // Make sure the resulting cumulation buffer has no more than the configured components.
            CompositeChannelBuffer composite = (CompositeChannelBuffer) cumulation;
            if (composite.numComponents() >= maxCumulationBufferComponents) {
                currentMessage.setContent(ChannelBuffers.wrappedBuffer(composite.copy(), input));
            } else {
                List<ChannelBuffer> decomposed = composite.decompose(0, composite.readableBytes());
                ChannelBuffer[] buffers = decomposed.toArray(new ChannelBuffer[decomposed.size() + 1]);
                buffers[buffers.length - 1] = input;
View Full Code Here

Examples of org.jboss.soa.esb.addressing.Call.copy()

        }
        catch (final URISyntaxException e)
        {
            LOGGER.error("Caught an URISyntaxException while calling Call's copy constructor. Will revert to using the old way using the copy method.", e);
            callDetails = new Call();
        callDetails.copy(message.getHeader().getCall()) ;
        }
        return callDetails;
    }

    /**
 
View Full Code Here

Examples of org.jboss.test.jrmp.interfaces.StatelessSession.copy()

      Object obj = jndiContext.lookup("StatefulSession");
      StatelessSessionHome home = (StatelessSessionHome)obj;
      getLog().debug("Found StatefulSession Home");
      StatelessSession bean = home.create();
      getLog().debug("Created StatefulSession");
      IString echo = bean.copy("jrmp-dl");
      getLog().debug("bean.copy(jrmp-dl) = " + echo);
      Class clazz = echo.getClass();
      CodeSource cs = clazz.getProtectionDomain().getCodeSource();
      URL location = cs.getLocation();
      getLog().debug("IString.class = " + clazz);
View Full Code Here

Examples of org.jedit.syntax.JEditTextArea.copy()

  }

  public static class clip_copy implements ActionListener {
    public void actionPerformed(ActionEvent evt) {
      final JEditTextArea textArea = getTextArea(evt);
      textArea.copy();
    }
  }

  public static class clip_paste implements ActionListener {
    public void actionPerformed(ActionEvent evt) {
View Full Code Here

Examples of org.jgroups.Message.copy()

        msg=new Message(null);
        msg.putHeader(name, hdr);

        for(Iterator it=tmp_mbrs.iterator(); it.hasNext();) {
            mbr_addr=(Address)it.next();
            copy=msg.copy();
            copy.setDest(mbr_addr);
            if(trace) log.trace("[FIND_INITIAL_MBRS] sending PING request to " + copy.getDest());
            passDown(new Event(Event.MSG, copy));
        }
    }
View Full Code Here

Examples of org.jgroups.util.MutableDigest.copy()

                    join_digest=new MutableDigest(tmp.size() + new_mbrs.size());
                    join_digest.add(tmp); // add the existing digest to the new one
                    for(Address member:new_mbrs)
                        join_digest.add(member, 0, 0); // ... and add the new members. their first seqno will be 1
                }
                join_rsp=new JoinRsp(new_view, join_digest != null? join_digest.copy() : null);
            }

            sendLeaveResponses(leaving_mbrs); // no-op if no leaving members                           
            gms.castViewChangeWithDest(new_view, join_rsp != null? join_rsp.getDigest() : null, join_rsp,new_mbrs);                     
        }
View Full Code Here

Examples of org.jitterbit.integration.client.project.copy.ProjectCopier.copy()

        private void copyProject(String projectName) throws Exception {
            ProjectCopier copier = new ProjectCopier(projectManager);
            ProjectLocation fromLoc = new ProjectLocation(projectName, locationOfUnpackedProject);
            ProjectLocation toLoc = new ProjectLocation(projectName, new File(destinationFolder,
                            locationOfUnpackedProject.getName()));
            copier.copy(fromLoc, toLoc);
        }

        private void closeUnpackedProject() {
            try {
                ManagedProject mp = unpackedProject.getExtensionObject(ManagedProject.class);
View Full Code Here

Examples of org.jitterbit.integration.client.structure.cache.InputAndOutputMappingTreeStructureCache.copy()

        }

        public void handle(Transformation copy) {
            try {
                InputAndOutputMappingTreeStructureCache structureCache = project.getTransformationMappingStructureCache();
                structureCache.copy(original.getID(), copy.getID());
            } catch (DataCacheException ex) {
                // This is not a fatal error. All it means is that the mapping structures for the
                // copy will have to be recreated.
                ErrorLog.log(EntityCopyMachine.class, "Failed to create copy of cached mapping structures for " +
                        "the transformation \"" + copy.getName(), ex);
View Full Code Here

Examples of org.jitterbit.integration.client.ui.project.copy.DeepCopyUi.copy()

            EntityResources resources = ProjectUtils.getProjectResources(project);
            DeepCopyUi ui = new DeepCopyUi(project, resources);
            ui.setWaitService(view.getWindow());
            ui.setPageDisplayer(pageDisplayer);
            ui.setDeleteHandler(deleteHandler);
            ui.copy(object);
        }
    }

}
View Full Code Here

Examples of org.joda.time.MutableDateTime.copy()

            for (int j = 0; j < activitiesCount; j++)
            {
                Activity activity = new Activity(loremIpsum.randomWords(2), loremIpsum.randomWords(4), timeZone);
                activity.setStart(new Time(mdt));
                int hour = mdt.hourOfDay().get() + hours;
                activity.setEnd(new Time(mdt.copy().hourOfDay().set(hour)));
                activity.setProject(Ref.create(projects.get(random.nextInt(projects.size()))));
                for (int i = 0; i < TAGS_PER_ACTIVITY; i++)
                {
                    Tag tag = tagKeys.get(random.nextInt(tagKeys.size()));
                    activity.addTag(Key.create(tag));
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.