Examples of create()


Examples of org.apache.xbean.recipe.ObjectRecipe.create()

            objectRecipe.setProperty(entry.getKey(), entry.getValue());
        }

        Object object;
        try {
            object = objectRecipe.create(beanClass.getClassLoader());
        } catch (Exception e) {
            throw new OpenEJBException("Error while creating bean " + beanClass.getName(), e);
        }

        Map unsetProperties = objectRecipe.getUnsetProperties();

Examples of org.apache.xindice.core.Collection.create()

         Configuration colConfig = this.config.getChild(COLLECTIONS, true);
         colConfig.add(cfg);
        
         collection.setConfig(cfg);
         collection.create();
         collections.put(n, collection);
      }
      catch ( DBException d ) {
         throw d;
      }

Examples of org.apache.xmlgraphics.java2d.ps.EPSDocumentGraphics2D.create()

           
            //Paint a bounding box
            g2d.drawRect(0, 0, 400, 200);
           
            //A few rectangles rotated and with different color
            Graphics2D copy = (Graphics2D)g2d.create();
            int c = 12;
            for (int i = 0; i < c; i++) {
                float f = ((i + 1) / (float)c);
                Color col = new Color(0.0f, 1 - f, 0.0f);
                copy.setColor(col);

Examples of org.apache.zookeeper.TestableZooKeeper.create()

        }
        LOG.info("Connecting to follower:" + index);

        TestableZooKeeper zk1 = createClient(
                "localhost:" + qu.getPeer(index).peer.getClientPort());
        zk1.create("/foo", "foo".getBytes(), Ids.OPEN_ACL_UNSAFE,
                    CreateMode.PERSISTENT);

        MyWatcher watcher = new MyWatcher();
        TestableZooKeeper zk2 = createClient(watcher,
                "localhost:" + qu.getPeer(index).peer.getClientPort());

Examples of org.apache.zookeeper.Transaction.create()

        String chRoot = createNameSpace();
        // checking the child version using chRoot client.
        zk_chroot = createClient(this.hostPort + chRoot);
        String childPath = "/myid";
        Transaction transaction = zk_chroot.transaction();
        transaction.create(childPath, new byte[0], Ids.OPEN_ACL_UNSAFE,
                CreateMode.PERSISTENT);
        transaction.check(childPath, 0);
        transaction.setData(childPath, childPath.getBytes(), 0);
        transaction.commit();

Examples of org.apache.zookeeper.ZooKeeper.create()

        // 查看根节点
        System.out.println("ls / => " + zk.getChildren("/", true));

        // 创建一个目录节点
        if (zk.exists("/node", true) == null) {
            zk.create("/node", "conan".getBytes(), Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);
            System.out.println("create /node conan");
            // 查看/node节点数据
            System.out.println("get /node => " + new String(zk.getData("/node", false, null)));
            // 查看根节点
            System.out.println("ls / => " + zk.getChildren("/", true));

Examples of org.apache.zookeeper.server.util.VerifyingFileFactory.create()

        VerifyingFileFactory vff = new VerifyingFileFactory.Builder(LOG).warnForRelativePath().build();
        for (Entry<Object, Object> entry : zkProp.entrySet()) {
            String key = entry.getKey().toString().trim();
            String value = entry.getValue().toString().trim();
            if (key.equals("dataDir")) {
                dataDir = vff.create(value);
            } else if (key.equals("dataLogDir")) {
                dataLogDir = vff.create(value);
            } else if (key.equals("clientPort")) {
                clientPort = Integer.parseInt(value);
            } else if (key.equals("localSessionsEnabled")) {

Examples of org.apache.zookeeper.test.AsyncOps.StringCB.create()

        StringCB op3 = new StringCB(zk, latch);
        op3.setPath("/op3");
       
        op1.create();
        op2.create();
        op3.create();
       
        op1.verify();
        op2.verify();
        op3.verify();
    }

Examples of org.apache.zookeeper_voltpatches.ZooKeeper.create()

                ZooKeeper zk = m_rvdb.getHostMessenger().getZK();
                // rejoining nodes figure out the replication role from other nodes
                if (!m_isRejoin)
                {
                    try {
                        zk.create(
                                VoltZK.replicationconfig,
                                js.toString().getBytes("UTF-8"),
                                Ids.OPEN_ACL_UNSAFE,
                                CreateMode.PERSISTENT);
                    } catch (KeeperException.NodeExistsException e) {}

Examples of org.atmosphere.wasync.Client.create()

                        return new POJO(s);
                    }
                })
                .transport(Request.TRANSPORT.WEBSOCKET);

        Socket socket = client.create();
        socket.on(Event.MESSAGE.name(), new Function<POJO>() {
            @Override
            public void on(POJO t) {
                response.set(t);
                latch.countDown();
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.