public class MergeView extends View
| Modifier and Type | Field and Description |
|---|---|
protected View[] |
subgroups |
members, suppress_view_size, view_id| Constructor and Description |
|---|
MergeView() |
MergeView(Address creator,
long id,
java.util.List<Address> members,
java.util.List<View> subgroups)
Creates a new view
|
MergeView(ViewId view_id,
Address[] members,
java.util.List<View> subgroups) |
MergeView(ViewId view_id,
java.util.List<Address> members,
java.util.List<View> subgroups)
Creates a new merge view
|
| Modifier and Type | Method and Description |
|---|---|
MergeView |
copy()
Creates a copy of a view
|
boolean |
deepEquals(View other) |
protected int |
get(Address member) |
java.util.List<View> |
getSubgroups() |
protected static View[] |
listToArray(java.util.List<View> list) |
void |
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
serializedSize() |
java.lang.String |
toString() |
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
compareTo, containsMember, containsMembers, create, create, diff, equals, get, getCoord, getCreator, getMembers, getMembersRaw, getVid, getViewId, hashCode, iterator, leftMembers, sizeadd, add, addAll, clear, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected View[] subgroups
public MergeView()
public MergeView(ViewId view_id, java.util.List<Address> members, java.util.List<View> subgroups)
view_id - The view id of this view (can not be null)members - Contains a list of all the members in the view, can be empty but not null.subgroups - A list of Views representing the former subgroupspublic MergeView(Address creator, long id, java.util.List<Address> members, java.util.List<View> subgroups)
creator - The creator of this view (can not be null)id - The lamport timestamp of this viewmembers - Contains a list of all the members in the view, can be empty but not null.subgroups - A list of Views representing the former subgroupspublic java.util.List<View> getSubgroups()
public boolean deepEquals(View other)
deepEquals in class Viewpublic void writeTo(java.io.DataOutput out)
throws java.lang.Exception
StreamablewriteTo in interface StreamablewriteTo in class Viewjava.lang.Exceptionpublic void readFrom(java.io.DataInput in)
throws java.lang.Exception
StreamablereadFrom in interface StreamablereadFrom in class Viewjava.lang.Exceptionpublic int serializedSize()
serializedSize in class Viewprotected int get(Address member)
Copyright © 1998-2020 Red Hat. All Rights Reserved.