public class MergeView extends View
| Constructor and Description |
|---|
MergeView()
Used by externalization
|
MergeView(Address creator,
long id,
Vector<Address> members,
Vector<View> subgroups)
Creates a new view
|
MergeView(ViewId vid,
Vector<Address> members,
Vector<View> subgroups)
Creates a new view
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
creates a copy of this view
|
View |
copy() |
Vector<View> |
getSubgroups() |
void |
readExternal(ObjectInput in) |
void |
readFrom(DataInputStream 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 |
writeExternal(ObjectOutput out) |
void |
writeTo(DataOutputStream out)
Write the entire state of the current object (including superclasses) to outstream.
|
addPayload, containsMember, equals, getCreator, getMembers, getPayload, getVid, getViewId, hashCode, printDetails, removePayload, sizepublic MergeView()
public MergeView(ViewId vid, Vector<Address> members, Vector<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, Vector<Address> members, Vector<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 Object clone()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class ViewIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class ViewIOExceptionClassNotFoundExceptionpublic void writeTo(DataOutputStream out) throws IOException
StreamablewriteTo in interface StreamablewriteTo in class ViewIOExceptionpublic void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException
StreamablereadFrom in interface StreamablereadFrom in class ViewIOExceptionIllegalAccessExceptionInstantiationExceptionpublic int serializedSize()
serializedSize in class ViewCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.