本文整理汇总了Java中org.jgroups.util.Util.readAddresses方法的典型用法代码示例。如果您正苦于以下问题:Java Util.readAddresses方法的具体用法?Java Util.readAddresses怎么用?Java Util.readAddresses使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jgroups.util.Util
的用法示例。
在下文中一共展示了Util.readAddresses方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readFrom
import org.jgroups.util.Util; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
public void readFrom(DataInput instream) throws Exception {
sender=Util.readAddress(instream);
flags=instream.readByte();
logical_name=Bits.readString(instream);
physical_addr=(PhysicalAddress)Util.readAddress(instream);
mbrs=Util.readAddresses(instream, ArrayList.class);
}
示例2: readFrom
import org.jgroups.util.Util; //导入方法依赖的package包/类
@Override
public void readFrom(DataInput in) throws Exception {
type = in.readByte();
messageID = new MessageID();
messageID.readFrom(in);
sequencerNumber = Bits.readLong(in);
if (type == DATA_MESSAGE) {
destinations = (Collection<Address>) Util.readAddresses(in, ArrayList.class);
}
}
示例3: readFrom
import org.jgroups.util.Util; //导入方法依赖的package包/类
public void readFrom(DataInput in) throws Exception {
view_id=new ViewId();
view_id.readFrom(in);
ref_view_id=new ViewId();
ref_view_id.readFrom(in);
left_members=Util.readAddresses(in);
new_members=Util.readAddresses(in);
}
示例4: readFrom
import org.jgroups.util.Util; //导入方法依赖的package包/类
public void readFrom(DataInput in) throws Exception {
type=in.readByte();
group=Bits.readString(in);
addr=Util.readAddress(in);
logical_name=Bits.readString(in);
mbrs=(List<Address>)Util.readAddresses(in, LinkedList.class);
physical_addr=(PhysicalAddress)Util.readAddress(in);
buffer=Util.readByteBuffer(in);
if(buffer != null) {
offset=0;
length=buffer.length;
}
}
示例5: readFrom
import org.jgroups.util.Util; //导入方法依赖的package包/类
public void readFrom(DataInput in) throws Exception {
type=in.readByte();
mbrs=(Collection<Address>)Util.readAddresses(in, ArrayList.class);
from=Util.readAddress(in);
}
示例6: readFrom
import org.jgroups.util.Util; //导入方法依赖的package包/类
public void readFrom(DataInput in) throws Exception {
super.readFrom(in);
exclusion_list=Util.readAddresses(in);
}
示例7: readFrom
import org.jgroups.util.Util; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
public void readFrom(DataInput in) throws Exception {
view_id=new ViewId();
view_id.readFrom(in);
members=Util.readAddresses(in);
}
示例8: readFrom
import org.jgroups.util.Util; //导入方法依赖的package包/类
@Override
public void readFrom(DataInput in) throws Exception {
destinations = (Collection<Address>) Util.readAddresses(in, ArrayList.class);
}