public class MergeView extends View
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Vector<View> |
subgroups |
| Constructor and Description |
|---|
MergeView()
Used by externalization
|
MergeView(Address creator,
long id,
java.util.Vector<Address> members,
java.util.Vector<View> subgroups)
Creates a new view
|
MergeView(ViewId vid,
java.util.Vector<Address> members,
java.util.Vector<View> subgroups)
Creates a new view
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
creates a copy of this view
|
java.util.Vector<View> |
getSubgroups() |
void |
readExternal(java.io.ObjectInput in) |
void |
readFrom(java.io.DataInputStream 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 |
writeExternal(java.io.ObjectOutput out) |
void |
writeTo(java.io.DataOutputStream out)
Write the entire state of the current object (including superclasses) to outstream.
|
addPayload, containsMember, equals, getCreator, getMembers, getPayload, getVid, hashCode, printDetails, sizeprotected java.util.Vector<View> subgroups
public MergeView()
public MergeView(ViewId vid, java.util.Vector<Address> members, java.util.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, java.util.Vector<Address> members, java.util.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 java.util.Vector<View> getSubgroups()
public java.lang.Object clone()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class Viewjava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class Viewjava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void writeTo(java.io.DataOutputStream out)
throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class Viewjava.io.IOExceptionpublic void readFrom(java.io.DataInputStream in)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
StreamablereadFrom in interface StreamablereadFrom in class Viewjava.io.IOExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionpublic int serializedSize()
serializedSize in class ViewCopyright ? 1998-2008 Bela Ban. All Rights Reserved.