Package org.xmlBlaster.util.cluster

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


               // 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

            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

            }
            // 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

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

TOP

Related Classes of org.xmlBlaster.util.cluster.NodeId

Copyright © 2018 www.massapicom. 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.