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

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

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

Util.print介绍

[英]MByte nowadays doesn't mean 1024 * 1024 bytes, but 1 million bytes, see http://en.wikipedia.org/wiki/Megabyte
[中]MByte现在并不意味着1024*1024字节,而是100万字节,参见http://en.wikipedia.org/wiki/Megabyte

代码示例

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

public String toString(Object value) {
    List<NetworkInterface> list=(List<NetworkInterface>)value;
    return Util.print(list);
  }
}

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

public String toString() {
  StringBuilder retval=new StringBuilder();
  if(protocol_name == null)
    retval.append("<unknown>");
  else
    retval.append(protocol_name);
  if(properties != null)
    retval.append("(" + Util.print(properties) + ')');
  return retval.toString();
}

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

public synchronized String printRoutes() {
  StringBuilder sb=new StringBuilder();
  for(Map.Entry<String,List<Route>> entry: routes.entrySet()) {
    List<Route> list=entry.getValue();
    if(list != null && !list.isEmpty())
      sb.append(entry.getKey() + " --> ").append(Util.print(list)).append("\n");
  }
  return sb.toString();
}

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

@ManagedOperation(description="Prints the routes that are currently up. " +
 "Only available if we're the current coordinator (site master)")
public String printSites() {
  return relayer != null? Util.print(relayer.getSiteNames()) : "n/a (not site master)";
}

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

case "member-addrs":
  Set<PhysicalAddress> physical_addrs=logical_addr_cache.nonRemovedValues();
  String list=Util.print(physical_addrs);
  retval.put(key, list);
break;

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

public String toString(Object value) {
    List<NetworkInterface> list=(List<NetworkInterface>)value;
    return Util.print(list);
  }
}

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

public String toString() {
  StringBuilder retval=new StringBuilder();
  if(protocol_name == null)
    retval.append("<unknown>");
  else
    retval.append(protocol_name);
  if(properties != null)
    retval.append("(" + Util.print(properties) + ')');
  return retval.toString();
}

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

public synchronized String printRoutes() {
  StringBuilder sb=new StringBuilder();
  for(Map.Entry<String,List<Route>> entry: routes.entrySet()) {
    List<Route> list=entry.getValue();
    if(list != null && !list.isEmpty())
      sb.append(entry.getKey() + " --> ").append(Util.print(list)).append("\n");
  }
  return sb.toString();
}

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

@ManagedOperation(description="Prints the routes that are currently up. " +
 "Only available if we're the current coordinator (site master)")
public String printSites() {
  return relayer != null? Util.print(relayer.getSiteNames()) : "n/a (not site master)";
}

代码示例来源:origin: org.jgroups/com.springsource.org.jgroups

public void send(Message msg) throws Exception {
  if(channel != null) {
    channel.send(msg);
  }
  else
    if(adapter != null) {
      try {
        if(id != null) {
          adapter.send(id, msg);
        }
        else {
          adapter.send(msg);
        }
      }
      catch(Throwable ex) {
        if(log.isErrorEnabled()) {
          log.error("exception=" + Util.print(ex));
        }
      }
    }
    else {
      if(log.isErrorEnabled()) {
        log.error("channel == null");
      }
    }
}

代码示例来源:origin: org.jgroups/com.springsource.org.jgroups

public void send(Message msg) throws ChannelNotConnectedException, ChannelClosedException {
  if(channel != null) {
    channel.send(msg);
  }
  else
    if(adapter != null) {
      try {
        if(id != null) {
          adapter.send(id, msg);
        }
        else {
          adapter.send(msg);
        }
      }
      catch(Throwable ex) {
        if(log.isErrorEnabled()) {
          log.error("exception=" + Util.print(ex));
        }
      }
    }
    else {
      if(log.isErrorEnabled()) {
        log.error("channel == null");
      }
    }
}

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

case "member-addrs":
  Set<PhysicalAddress> physical_addrs=logical_addr_cache.nonRemovedValues();
  String list=Util.print(physical_addrs);
  retval.put(key, list);
break;

代码示例来源:origin: org.jgroups/com.springsource.org.jgroups

if(log.isErrorEnabled()) log.error("exception=" + Util.print(ex));

相关文章

Util类方法