本文整理了Java中org.jgroups.Event.type2String()
方法的一些代码示例,展示了Event.type2String()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Event.type2String()
方法的具体详情如下:
包路径:org.jgroups.Event
类名称:Event
方法名:type2String
暂无
代码示例来源:origin: wildfly/wildfly
protected static String printEvents(List<Integer> events) {
StringBuilder sb=new StringBuilder("[");
for(int evt: events)
sb.append(Event.type2String(evt)).append(" ");
sb.append("]");
return sb.toString();
}
代码示例来源:origin: wildfly/wildfly
public String toString() {
StringBuilder ret=new StringBuilder(64);
ret.append(type2String(type)).append(", arg=").append(arg);
return ret.toString();
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
public String toString() {
StringBuilder ret=new StringBuilder(64);
ret.append(type2String(type)).append(", arg=").append(arg);
return ret.toString();
}
代码示例来源:origin: org.jgroups/com.springsource.org.jgroups
String printDownProvides() {
StringBuilder ret=new StringBuilder("[");
if(down_provides != null) {
for(int i=0; i < down_provides.size(); i++)
ret.append(Event.type2String(((Integer)down_provides.elementAt(i)).intValue()) +
' ');
}
return ret.toString() + ']';
}
代码示例来源:origin: org.jgroups/com.springsource.org.jgroups
public String toString() {
StringBuilder ret=new StringBuilder(64);
ret.append("Event[type=" + type2String(type) + ", arg=" + arg + ']');
return ret.toString();
}
代码示例来源:origin: org.jgroups/com.springsource.org.jgroups
String printUpReqs() {
StringBuffer ret;
ret=new StringBuffer("[");
if(up_reqs != null) {
for(int i=0; i < up_reqs.size(); i++) {
ret.append(Event.type2String(((Integer)up_reqs.elementAt(i)).intValue()) + ' ');
}
}
return ret.toString() + ']';
}
代码示例来源:origin: org.jgroups/com.springsource.org.jgroups
String printDownReqs() {
StringBuilder ret=new StringBuilder("[");
if(down_reqs != null) {
for(int i=0; i < down_reqs.size(); i++) {
ret.append(Event.type2String(((Integer)down_reqs.elementAt(i)).intValue()) + ' ');
}
}
return ret.toString() + ']';
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
protected static String printEvents(List<Integer> events) {
StringBuilder sb=new StringBuilder("[");
for(int evt: events)
sb.append(Event.type2String(evt)).append(" ");
sb.append("]");
return sb.toString();
}
代码示例来源:origin: org.jgroups/com.springsource.org.jgroups
String printUpProvides() {
StringBuilder ret=new StringBuilder("[");
if(up_provides != null) {
for(int i=0; i < up_provides.size(); i++) {
ret.append(Event.type2String(((Integer)up_provides.elementAt(i)).intValue()) + ' ');
}
}
return ret.toString() + ']';
}
代码示例来源:origin: org.jgroups/com.springsource.org.jgroups
Event.type2String(evt_type) + " is required by " +
req.name + ", but not provided by any of the layers above");
Event.type2String(evt_type) + " is required by " +
req.name + ", but not provided by any of the layers below");
代码示例来源:origin: org.jgroups/com.springsource.org.jgroups
Event event=(Event)o;
int type=event.getType();
s=Event.type2String(type);
if(type == Event.VIEW_CHANGE)
s+=" " + event.getArg();
内容来源于网络,如有侵权,请联系作者删除!