Examples of NodeInfo


Examples of org.drools.bpmn2.legacy.beta1.di.ShapeHandler.NodeInfo

                    "Could not find node " + nodeInfo.getNodeRef());
            }
        }
        for (ConnectionInfo connectionInfo: processInfo.getConnectionInfos()) {
            if (connectionInfo.getBendpoints() != null) {
                NodeInfo sourceNodeInfo = processInfo.getNodeInfo(connectionInfo.getSourceRef());
                if (sourceNodeInfo == null) {
                    throw new IllegalArgumentException(
                        "Could not find sourceRef for connection info: " + connectionInfo.getSourceRef());
                }
                NodeInfo targetNodeInfo = processInfo.getNodeInfo(connectionInfo.getTargetRef());
                if (targetNodeInfo == null) {
                    throw new IllegalArgumentException(
                        "Could not find sourceRef for connection info: " + connectionInfo.getTargetRef());
                }
                Node sourceNode = null;
                for (Node node: process.getNodes()) {
                    String id = (String) XmlBPMNProcessDumper.getUniqueNodeId(node);
                    if (sourceNodeInfo.getNodeRef().equals(id)) {
                        sourceNode = node;
                        break;
                    }
                }
                if (sourceNode == null) {
                    throw new IllegalArgumentException(
                        "Could not find node for nodeRef: " + sourceNodeInfo.getNodeRef());
                }
                boolean found = false;
                for (List<Connection> outgoingConnections: sourceNode.getOutgoingConnections().values()) {
                    for (Connection connection: outgoingConnections) {
                        if (targetNodeInfo.getNodeRef().equals(XmlBPMNProcessDumper.getUniqueNodeId(connection.getTo()))) {
                            ((ConnectionImpl) connection).setMetaData(
                                "bendpoints", connectionInfo.getBendpoints());
                            found = true;
                            break;
                        }
                    }
                    if (found) {
                        break;
                    }
                }
                if (!found) {
                    throw new IllegalArgumentException(
                        "Could not find connection from  " + sourceNodeInfo.getNodeRef() +
                        " to " + targetNodeInfo.getNodeRef());
                }
            }
        }
        return processInfo;
    }
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.node.info.NodeInfo

    public List<NodeInfo> getAllNodes() {
        return Lists.newArrayList(c.admin().cluster().nodesInfo(new NodesInfoRequest().all()).actionGet().getNodes());
    }

    public String nodeIdToName(String nodeId) {
        final NodeInfo nodeInfo = getNodeInfo(nodeId);
        return nodeInfo == null ? "UNKNOWN" : nodeInfo.getNode().getName();

    }
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.node.info.NodeInfo

        return nodeInfo == null ? "UNKNOWN" : nodeInfo.getNode().getName();

    }

    public String nodeIdToHostName(String nodeId) {
        final NodeInfo nodeInfo = getNodeInfo(nodeId);
        return nodeInfo == null ? "UNKNOWN" : nodeInfo.getHostname();
    }
View Full Code Here

Examples of org.exoplatform.services.jcr.cluster.load.NodeInfo

      {

         String readNodePath = null;
         while (readNodePath == null)
         {
            NodeInfo nodeInfo = nodesPath.get(random.nextInt(nodesPath.size()));
            if (!readFresh && (System.currentTimeMillis() - nodeInfo.getCreated()) < 30000)
            {
               return;
            }

            readNodePath = nodeInfo.getPath();

         }
         long start = System.currentTimeMillis();
         JCRWebdavConnection conn = null;
         try
View Full Code Here

Examples of org.fao.geonet.NodeInfo

        this.webappDir = webappDir;
        if (_applicationContext == null) {
            this.nodeId = "srv";
            this.isDefaultNode = true;
        } else {
            final NodeInfo nodeInfo = _applicationContext.getBean(NodeInfo.class);
            this.isDefaultNode = nodeInfo.isDefaultNode();
            this.nodeId = nodeInfo.getId();
        }
    setDataDirectory(jeevesServlet, webappName, webappDir, handlerConfig);
  }
View Full Code Here

Examples of org.libvirt.NodeInfo

        long cpus = 0;
        long ram = 0;
        String cap = null;
        try {
            Connect conn = LibvirtConnection.getConnection();
            final NodeInfo hosts = conn.nodeInfo();
            boolean result = false;
            try {
                BufferedReader in = new BufferedReader(
                        new FileReader(
                                "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq"));
View Full Code Here

Examples of org.openfaces.component.table.impl.NodeInfo

        TableDataModel model = getModel();
        Map<Object, ? extends NodeInfo> rowHierarchy = model.getDerivedRowHierarchy();
        if (rowHierarchy == null) return false;

        if (rowIndex == -1) return false;
        NodeInfo nodeInfo = rowHierarchy.get(rowIndex);
        if (nodeInfo == null) return false;

        return nodeInfo.getNodeHasChildren();
    }
View Full Code Here

Examples of org.pdf4j.saxon.om.NodeInfo

            }
            if (backwardsCompatible && vec.isEmpty()) {
                vec.add("NaN");
            }
        } else {
            NodeInfo source;
            if (select != null) {
                source = (NodeInfo) select.evaluateItem(context);
            } else {
                Item item = context.getContextItem();
                if (!(item instanceof NodeInfo)) {
View Full Code Here

Examples of org.zkoss.zuss.metainfo.NodeInfo

    }
    throw error(kw+" not supported yet", kw);
  }
  private IfDefinition getLastIf(Context ctx, Keyword kw) {
    final List<NodeInfo> children = ctx.block.owner.getChildren();
    final NodeInfo node = children.isEmpty() ? null: children.get(children.size() - 1);
    if (node instanceof IfDefinition)
      return (IfDefinition)node;
    throw error(kw+" must follow @if", kw);
  }
View Full Code Here

Examples of uk.org.microbase.scheduler.dist.data.NodeInfo

      String javaVmVersion = System.getProperty("java.vm.version");
      String javaVmVendor = System.getProperty("java.vm.vendor");

      long availDisk = getFreeDisk();

      NodeInfo info = new NodeInfo();
      info.setCores(numCpus);
      info.setHostname(hostname);
      info.setJavaVersion(javaVersion);
      info.setJavaVmVendor(javaVmVendor);
      info.setJavaVmVersion(javaVmVersion);
      info.setJvmTotalRamSize(jvmTotalRam);
      info.setOsArch(osArch);
      info.setOsName(osName);
      info.setOsVersion(osVersion);

      return info;
    }
    catch (Exception e)
    {
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.