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, size
add, add, addAll, clear, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
protected 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 View
public void writeTo(java.io.DataOutput out) throws java.lang.Exception
Streamable
writeTo
in interface Streamable
writeTo
in class View
java.lang.Exception
public void readFrom(java.io.DataInput in) throws java.lang.Exception
Streamable
readFrom
in interface Streamable
readFrom
in class View
java.lang.Exception
public int serializedSize()
serializedSize
in class View
protected int get(Address member)
Copyright © 1998-2020 Red Hat. All Rights Reserved.