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,
List<Address> members,
List<View> subgroups)
Creates a new view
|
MergeView(ViewId view_id,
Address[] members,
List<View> subgroups) |
MergeView(ViewId view_id,
List<Address> members,
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) |
protected Address |
get(int index) |
List<View> |
getSubgroups() |
protected static View[] |
listToArray(List<View> list) |
void |
readFrom(DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
serializedSize() |
String |
toString() |
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
compareTo, containsMember, create, diff, equals, getCreator, getMembers, getMembersRaw, getVid, getViewId, hashCode, iterator, leftMembers, size
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected View[] subgroups
public MergeView()
public MergeView(ViewId view_id, List<Address> members, 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, List<Address> members, 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 boolean deepEquals(View other)
deepEquals
in class View
public void writeTo(DataOutput out) throws Exception
Streamable
writeTo
in interface Streamable
writeTo
in class View
Exception
public void readFrom(DataInput in) throws Exception
Streamable
readFrom
in interface Streamable
readFrom
in class View
Exception
public int serializedSize()
serializedSize
in class View
protected int get(Address member)
protected Address get(int index)
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.