Examples of NodeId


Examples of org.xmlBlaster.util.cluster.NodeId

         "     <ram free='10657'/>\n" +
         "   </state>\n" +
         "</clusternode>\n";

         NodeParser nodeParser = new NodeParser(serverScope, new ClusterNode(
               serverScope, new NodeId("avalon"), null), xml);
         ClusterNode clusterNode = nodeParser.getClusterNode();
         log.info(clusterNode.toXml());
         NodeStateInfo state = clusterNode.getNodeStateInfo();
         assertEquals(10657, state.getFreeRam());
         assertEquals(59, state.getAvgCpuIdle());
View Full Code Here

Examples of org.xmlBlaster.util.cluster.NodeId

    * @param nodeId The node id with stripped special characters (see Global#getStrippedId)
    */
   public ConnectQosData(Global glob, I_ConnectQosFactory factory, String serialData, NodeId nodeId) throws XmlBlasterException {
      super(glob, serialData, org.xmlBlaster.util.def.MethodName.CONNECT);
      this.factory = (factory == null) ? this.glob.getConnectQosFactory() : factory;
      this.nodeId = (nodeId == null) ? new NodeId(this.glob.getStrippedId()) : nodeId;
      this.sessionQos = new SessionQos(this.glob); // , this.nodeId); is handled by SessionName depending on client or server side
   }
View Full Code Here

Examples of org.xmlBlaster.util.cluster.NodeId

         return this.connectReturnQos.getSessionName();
      if (this.connectQos != null) {
         SessionName sessionName = this.connectQos.getSessionName();
         if (sessionName != null && sessionName.getNodeIdStr() == null && this.serverNodeId != null) {
            // In cluster setup the remote cluster node id is forced
            SessionName sn = new SessionName(glob, new NodeId(this.serverNodeId), sessionName.getLoginName(),
                  sessionName.getPublicSessionId());
            // log.info("Using sessionName=" + sn.getAbsoluteName());
            this.connectQos.setSessionName(sn);
            return sn;
         }
View Full Code Here

Examples of org.xmlBlaster.util.cluster.NodeId

               // Does the client send a tag which marks it as a cluster node?

               SessionInfo ses = getFirstSession();
               if (ses != null) {
                  if (ses.getConnectQos().isClusterNode())
                     nodeId = new NodeId(this.subjectName.getLoginName());
               }
            }
         }
      }
      return nodeId;
View Full Code Here

Examples of org.xmlBlaster.util.cluster.NodeId

            String id = attrs.getValue("id");
            if (id == null || id.length() < 1) {
               log.severe("QoS <route><node> misses id attribute, ignoring node");
               return;
            }
            NodeId nodeId = new NodeId(id);

            int stratum = 0;
            String tmp = attrs.getValue("stratum");
            if (tmp != null) {
               try { stratum = Integer.parseInt(tmp.trim()); } catch(NumberFormatException e) { log.severe("Invalid stratum =" + tmp); };
View Full Code Here

Examples of org.xmlBlaster.util.cluster.NodeId

            }
            // else if (glob.isServer()) {
            // this.nodeId = glob.getNodeId(); // always respect the given name
            // }
            else {
               this.nodeId = new NodeId(arr[1]); // the parsed nodeId
               this.nodeIdExplicitlyGiven = true;
               if ("unknown".equals(this.nodeId.getId()))
                  this.nodeId = null;
            }
         }
View Full Code Here

Examples of org.xmlBlaster.util.cluster.NodeId

            e.printStackTrace();
         }
         subjectId = tail.substring(0, i + 1);
      } else
         subjectId = tail;
      return new SessionName(glob, new NodeId(nodeId), subjectId, pubSessionId);
   }
View Full Code Here

Examples of org.yaml.snakeyaml.nodes.NodeId

        boolean hasAlias = this.representedObjects.containsKey(propertyValue);

        Node nodeValue = representData(propertyValue);

        if (propertyValue != null && !hasAlias) {
            NodeId nodeId = nodeValue.getNodeId();
            if (customTag == null) {
                if (nodeId == NodeId.scalar) {
                    if (propertyValue instanceof Enum<?>) {
                        nodeValue.setTag(Tag.STR);
                    }
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.