public class MergeView extends View
Constructor and Description |
---|
MergeView()
Used by externalization
|
MergeView(Address creator,
long id,
List<Address> members,
List<View> subgroups)
Creates a new view
|
MergeView(ViewId vid,
List<Address> members,
List<View> subgroups)
Creates a new view
|
Modifier and Type | Method and Description |
---|---|
View |
copy() |
List<View> |
getSubgroups() |
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, equals, getCreator, getMembers, getVid, getViewId, hashCode, iterator, size
public MergeView()
public MergeView(ViewId vid, List<Address> members, List<View> subgroups)
vid
- 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 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
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.