Examples of node()


Examples of org.eclipse.persistence.oxm.record.FormattedWriterRecord.node()

    }

    public String getStringFromAppInfoElement(Element appInfo) {
        FormattedWriterRecord record = new FormattedWriterRecord();
        record.setWriter(new StringWriter());
        record.node(appInfo, new NamespaceResolver());
        return record.getWriter().toString();
    }

    /**
      * INTERNAL:
 
View Full Code Here

Examples of org.eclipse.persistence.oxm.record.MarshalRecord.node()

                } else {
                    xmlDocument = objectToXMLNode(object, session, xmlDescriptor, isXMLRoot);
                }
                writerRecord.setSession(session);
                if (isFragment()) {
                    writerRecord.node(xmlDocument, xmlDescriptor.getNamespaceResolver());
                } else {
                    writerRecord.startDocument(encoding, version);
                    writerRecord.node(xmlDocument, writerRecord.getNamespaceResolver());
                    writerRecord.endDocument();
                }
View Full Code Here

Examples of org.eclipse.persistence.oxm.record.OutputStreamRecord.node()

                        } else {
                            xmlDocument = objectToXMLNode(object, session, xmlDescriptor, isXMLRoot);
                        }
                        record.setSession(session);
                        if (isFragment()) {
                            record.node(xmlDocument, xmlDescriptor.getNamespaceResolver());
                        } else {
                            record.startDocument(encoding, version);
                            record.node(xmlDocument, record.getNamespaceResolver());
                            record.endDocument();
                        }
View Full Code Here

Examples of org.eclipse.persistence.oxm.record.WriterRecord.node()

                    String key = nextElement.getAttribute(SDOConstants.APPINFO_SOURCE_ATTRIBUTE);
                    String value = (String)appInfoMap.get(key);
                    StringWriter sw = new StringWriter();
                    WriterRecord wrec = new WriterRecord();
                    wrec.setWriter(sw);
                    wrec.node(nextElement, new NamespaceResolver());
                    appInfoMap.put(key, value == null ? sw.toString() : value + sw.toString());
                }
            }
        }
        return appInfoMap;
View Full Code Here

Examples of org.elasticsearch.cluster.routing.RoutingNode.node()

            ObjectIntOpenHashMap<String> shardPerAttribute = new ObjectIntOpenHashMap<>();
            for (MutableShardRouting assignedShard : allocation.routingNodes().assignedShards(shardRouting)) {
                // if the shard is relocating, then make sure we count it as part of the node it is relocating to
                if (assignedShard.relocating()) {
                    RoutingNode relocationNode = allocation.routingNodes().node(assignedShard.relocatingNodeId());
                    shardPerAttribute.addTo(relocationNode.node().attributes().get(awarenessAttribute), 1);
                } else if (assignedShard.started()) {
                    RoutingNode routingNode = allocation.routingNodes().node(assignedShard.currentNodeId());
                    shardPerAttribute.addTo(routingNode.node().attributes().get(awarenessAttribute), 1);
                }
            }
View Full Code Here

Examples of org.elasticsearch.cluster.routing.RoutingNodes.node()

            MutableShardRouting shard = unassignedIterator.next();

            // pre-check if it can be allocated to any node that currently exists, so we won't list the store for it for nothing
            boolean canBeAllocatedToAtLeastOneNode = false;
            for (DiscoveryNode discoNode : nodes.dataNodes().values()) {
                RoutingNode node = routingNodes.node(discoNode.id());
                if (node == null) {
                    continue;
                }
                // if its THROTTLING, we are not going to allocate it to this node, so ignore it as well
                if (nodeAllocations.canAllocate(shard, node, allocation).allocate()) {
View Full Code Here

Examples of org.elasticsearch.node.NodeBuilder.node()

    public Node buildNode() {
        NodeBuilder builder = nodeBuilder().local(isLocal()).data(isData());
        if (!isLocal() && getClusterName() != null) {
            builder.clusterName(getClusterName());
        }
        return builder.node();
    }

    private boolean isValidAuthority() throws URISyntaxException {
        if (authority.contains(":")) {
            return false;
View Full Code Here

Examples of org.elasticsearch.river.routing.RiverRouting.node()

            RiverClusterState state = event.state();

            // first, go over and delete ones that either don't exists or are not allocated
            for (RiverName riverName : rivers.keySet()) {
                RiverRouting routing = state.routing().routing(riverName);
                if (routing == null || !localNode.equals(routing.node())) {
                    // not routed at all, and not allocated here, clean it (we delete the relevant ones before)
                    closeRiver(riverName);
                }
            }
View Full Code Here

Examples of org.gridkit.coherence.chtest.SimpleCohCloud.node()

    final String cacheName = "objects";
   
      SimpleCohCloud cloud = new SimpleCohCloud();
      cloud.all().outOfProcess(true);

      cloud.node("client").localStorage(false);
      cloud.node("storage").localStorage(true);
      JvmProps.at(cloud.node("storage")).addJvmArg(storageVmOptions);
     
        cloud.all().setProp("tangosol.pof.enabled", "true");
        cloud.all().setProp("tangosol.pof.config", "capacity-benchmark-pof-config.xml");
View Full Code Here

Examples of org.gridkit.nanocloud.Cloud.node()

            cloud.shutdown();
    }

    static Cloud createLocalCloud() {
        final Cloud cloud = CloudFactory.createCloud();
        ViProps.at(cloud.node("**")).setLocalType();
        return cloud;
    }

    static final String SERVER = "server";
    static final String PEER2 = "peer2";
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.