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
|
View |
copy() |
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, getViewId, hashCode, printDetails, removePayload, size
protected 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.Externalizable
writeExternal
in class View
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class View
java.io.IOException
java.lang.ClassNotFoundException
public void writeTo(java.io.DataOutputStream out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class View
java.io.IOException
public void readFrom(java.io.DataInputStream in) throws java.io.IOException, java.lang.IllegalAccessException, java.lang.InstantiationException
Streamable
readFrom
in interface Streamable
readFrom
in class View
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException
public int serializedSize()
serializedSize
in class View
Copyright ? 1998-2009 Bela Ban / Red Hat. All Rights Reserved.