Examples of duplicate()


Examples of org.apache.zookeeper.server.ZooKeeperServer.ChangeRecord.duplicate()

                List<ACL> listACL = fixupACL(path, request.authInfo, setAclRequest.getAcl());
                nodeRecord = getRecordForPath(path);
                checkACL(zks, nodeRecord.acl, ZooDefs.Perms.ADMIN, request.authInfo);
                newVersion = checkAndIncVersion(nodeRecord.stat.getAversion(), setAclRequest.getVersion(), path);
                request.setTxn(new SetACLTxn(path, listACL, newVersion));
                nodeRecord = nodeRecord.duplicate(request.getHdr().getZxid());
                nodeRecord.stat.setAversion(newVersion);
                addChangeRecord(nodeRecord);
                break;
            case OpCode.createSession:
                request.request.rewind();
View Full Code Here

Examples of org.apache.zookeeper.server.ZooKeeperServer.ChangeRecord.duplicate()

                        createMode.isEphemeral());
                StatPersisted s = new StatPersisted();
                if (createMode.isEphemeral()) {
                    s.setEphemeralOwner(request.sessionId);
                }
                parentRecord = parentRecord.duplicate(txnHeader.getZxid());
                parentRecord.childCount++;
                parentRecord.stat
                        .setCversion(parentRecord.stat.getCversion() + 1);
                addChangeRecord(parentRecord);
                addChangeRecord(new ChangeRecord(txnHeader.getZxid(), path, s,
View Full Code Here

Examples of org.apache.zookeeper.server.ZooKeeperServer.ChangeRecord.duplicate()

                if (version != -1 && version != currentVersion) {
                    throw new KeeperException.BadVersionException(path);
                }
                version = currentVersion + 1;
                txn = new SetDataTxn(path, setDataRequest.getData(), version);
                nodeRecord = nodeRecord.duplicate(txnHeader.getZxid());
                nodeRecord.stat.setVersion(version);
                addChangeRecord(nodeRecord);
                break;
            case OpCode.setACL:
                txnHeader = new TxnHeader(request.sessionId, request.cxid, zks
View Full Code Here

Examples of org.apache.zookeeper.server.ZooKeeperServer.ChangeRecord.duplicate()

                if (version != -1 && version != currentVersion) {
                    throw new KeeperException.BadVersionException(path);
                }
                version = currentVersion + 1;
                txn = new SetACLTxn(path, setAclRequest.getAcl(), version);
                nodeRecord = nodeRecord.duplicate(txnHeader.getZxid());
                nodeRecord.stat.setAversion(version);
                addChangeRecord(nodeRecord);
                break;
            case OpCode.createSession:
                txnHeader = new TxnHeader(request.sessionId, request.cxid, zks
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.codegen.StackMapFrame.duplicate()

    StackMapFrame frame = new StackMapFrame(maxLocals);
    if (!isClinit) {
      initializeDefaultLocals(frame, methodBinding, maxLocals, codeLength);
    }
    frame.pc = -1;
    frames.add(frame.duplicate());
    while (true) {
      int currentPC = pc - codeOffset;
      if (hasStackMarkers && stackMarker.pc == currentPC) {
        VerificationTypeInfo[] infos = frame.stackItems;
        VerificationTypeInfo[] tempInfos = new VerificationTypeInfo[frame.numberOfStackItems];
View Full Code Here

Examples of org.freeplane.features.clipboard.mindmapmode.MClipboardController.duplicate()

    return appendBranchImpl(node, true);
  }

  private Proxy.Node appendBranchImpl(Proxy.NodeRO node, boolean withChildren) {
      final MClipboardController clipboardController = (MClipboardController) ClipboardController.getController();
    final NodeModel newNodeModel = clipboardController.duplicate(((NodeProxy) node).getDelegate(), withChildren);
    final MMapController mapController = (MMapController) getModeController().getMapController();
    mapController.insertNode(newNodeModel, getDelegate());
    return new NodeProxy(newNodeModel, getScriptContext());
    }
View Full Code Here

Examples of org.glassfish.grizzly.http.util.DataChunk.duplicate()

            localDecodedURI = req.getNote(DATA_CHUNK);
            if (localDecodedURI == null) {
                localDecodedURI = DataChunk.newInstance();
                req.setNote(DATA_CHUNK, localDecodedURI);
            }
            localDecodedURI.duplicate(decodedURI);
        }


        try {
            return map(req, localDecodedURI, mappingData);
View Full Code Here

Examples of org.gnubridge.core.Deal.duplicate()

    game.getPlayer(Direction.EAST_DEPRECATED).init(
        new Card[] { Ten.of(Hearts.i()), Three.of(Hearts.i()), Two.of(Spades.i()), Eight.of(Clubs.i()) });
    game.getPlayer(Direction.SOUTH_DEPRECATED).init(
        new Card[] { Six.of(Hearts.i()), Two.of(Hearts.i()), Queen.of(Spades.i()), King.of(Clubs.i()) });

    DoubleDummySolver pruned = new DoubleDummySolver(game.duplicate());
    assertTrue(pruned.getConfigurator().isUseAlphaBetaPruning());
    pruned.search();
    assertEquals(2, pruned.getRoot().getTricksTaken(Player.WEST_EAST));
  }
View Full Code Here

Examples of org.jboss.netty.buffer.ChannelBuffer.duplicate()

      int cnt = 0;
      for (int i = 0; i < packets.size(); i++)
      {
         ChannelBuffer p = packets.get(i);
         decoder.offer(p.duplicate());
         for (;;)
         {
            ChannelBuffer frame = decoder.poll();
            if (frame == null)
            {
View Full Code Here

Examples of org.joshy.sketch.model.SNode.duplicate()

        symbolAddButton = new Button(getString("sidebar.insertSymbol"));
        symbolAddButton.onClicked(new Callback<ActionEvent>() { public void call(ActionEvent event) {
            if(listView.getSelectedIndex() < 0) return;
            SNode node = listView.getModel().get(listView.getSelectedIndex());
            SketchDocument sd = context.getDocument();
            sd.getCurrentPage().add(node.duplicate(null));
            context.redraw();
        }});


        EventBus.getSystem().addListener(listView, MouseEvent.MouseAll, new Callback<MouseEvent>() {
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.