org.jgroups.util.UUID.getMostSignificantBits()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(148)

本文整理了Java中org.jgroups.util.UUID.getMostSignificantBits()方法的一些代码示例,展示了UUID.getMostSignificantBits()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UUID.getMostSignificantBits()方法的具体详情如下:
包路径:org.jgroups.util.UUID
类名称:UUID
方法名:getMostSignificantBits

UUID.getMostSignificantBits介绍

[英]Returns the most significant 64 bits of this UUID's 128 bit value.
[中]返回此UUID的128位值中最重要的64位。

代码示例

代码示例来源:origin: apache/geode

public void setUUID(UUID u) {
 this.uuidLSBs = u.getLeastSignificantBits();
 this.uuidMSBs = u.getMostSignificantBits();
}

代码示例来源:origin: orbit/orbit

NodeInfo(final Address address)
{
  this.address = address;
  final UUID jgroupsUUID = (UUID) address;
  this.nodeAddress = new NodeAddressImpl(new java.util.UUID(jgroupsUUID.getMostSignificantBits(), jgroupsUUID.getLeastSignificantBits()));
}

代码示例来源:origin: apache/geode

public JGAddress(UUID uuid, IpAddress ipaddr) {
 super(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());
 ip_addr = ipaddr.getIpAddress();
 port = ipaddr.getPort();
 vmViewId = -1;
}

代码示例来源:origin: apache/geode

logger.debug("HealthMonitor: simulating sick member in health check");
} else if (uuidLSBs == myUUID.getLeastSignificantBits()
  && uuidMSBs == myUUID.getMostSignificantBits() && vmViewId == myVmViewId) {
 logger.debug("HealthMonitor: sending OK reply");
 out.write(OK);
  logger.debug(
    "HealthMonitor: sending ERROR reply - my UUID is {},{} received is {},{}.  My viewID is {} received is {}",
    Long.toHexString(myUUID.getMostSignificantBits()),
    Long.toHexString(myUUID.getLeastSignificantBits()), Long.toHexString(uuidMSBs),
    Long.toHexString(uuidLSBs), myVmViewId, vmViewId);

代码示例来源:origin: orbit/orbit

private void doReceive(final Message msg)
{
  final NodeInfo nodeInfo = nodeMap.get(msg.getSrc());
  if (nodeInfo == null)
  {
    logger.warn("Received message from invalid address {}", msg.getSrc());
    messageListener.receive(new NodeAddressImpl(new java.util.UUID(((UUID) msg.getSrc()).getMostSignificantBits(), ((UUID) msg.getSrc()).getLeastSignificantBits())), msg.getBuffer());
  }
  else
  {
    messageListener.receive(nodeInfo.nodeAddress, msg.getBuffer());
  }
}

代码示例来源:origin: wildfly/wildfly

public SiteUUID(UUID uuid, String name, String site) {
  super(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());
  if(name != null)
    put(NAME, Util.stringToBytes(name));
  put(SITE_NAME, Util.stringToBytes(site));
}

代码示例来源:origin: org.apache.geode/gemfire-core

public void setUUID(UUID u) {
 this.uuidLSBs = u.getLeastSignificantBits();
 this.uuidMSBs = u.getMostSignificantBits();
}

代码示例来源:origin: org.apache.geode/gemfire-core

public JGAddress(UUID uuid, IpAddress ipaddr) {
 super(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());
 ip_addr=ipaddr.getIpAddress(); port=ipaddr.getPort(); vmViewId=-1;
}

代码示例来源:origin: org.apache.geode/gemfire-core

} else if (vmViewId == myVmViewId
 && uuidLSBs == myUUID.getLeastSignificantBits()
 && uuidMSBs == myUUID.getMostSignificantBits()) {
 logger.debug("UUID matches my own - sending OK reply");
} else {
 logger.debug("GMSHealthMonitor my UUID is {},{} received is {},{}.  My viewID is {} received is {}",
  Long.toHexString(myUUID.getMostSignificantBits()),
  Long.toHexString(myUUID.getLeastSignificantBits()),
  Long.toHexString(uuidMSBs), Long.toHexString(uuidLSBs),
 && uuidMSBs == myUUID.getMostSignificantBits()
 && vmViewId == myVmViewId) {
socket.setSoLinger(true, (int)memberTimeout);

代码示例来源:origin: org.jboss.eap/wildfly-client-all

public SiteUUID(UUID uuid, String name, String site) {
  super(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());
  if(name != null)
    put(NAME, Util.stringToBytes(name));
  put(SITE_NAME, Util.stringToBytes(site));
}

相关文章