org.javagroups
Class MergeView
java.lang.Object
|
+--org.javagroups.View
|
+--org.javagroups.MergeView
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Externalizable, java.io.Serializable
- public class MergeView
- extends View
A view that is sent as result of a merge.
- See Also:
- Serialized Form
|
Field Summary |
protected java.util.Vector |
subgroups
|
|
Constructor Summary |
MergeView()
Used by externalization |
MergeView(Address creator,
long id,
java.util.Vector members,
java.util.Vector subgroups)
Creates a new view |
MergeView(ViewId vid,
java.util.Vector members,
java.util.Vector subgroups)
Creates a new view |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
subgroups
protected java.util.Vector subgroups
MergeView
public MergeView()
- Used by externalization
MergeView
public MergeView(ViewId vid,
java.util.Vector members,
java.util.Vector subgroups)
- Creates a new view
- Parameters:
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 subgroups
MergeView
public MergeView(Address creator,
long id,
java.util.Vector members,
java.util.Vector subgroups)
- Creates a new view
- Parameters:
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 subgroups
getSubgroups
public java.util.Vector getSubgroups()
clone
public java.lang.Object clone()
- creates a copy of this view
- Overrides:
clone in class View
- Returns:
- a copy of this view
toString
public java.lang.String toString()
- Overrides:
toString in class View
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal in interface java.io.Externalizable- Overrides:
writeExternal in class View
java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal in interface java.io.Externalizable- Overrides:
readExternal in class View
java.io.IOException
java.lang.ClassNotFoundException
Copyright ? 2001,2002 www.javagroups.com . All Rights Reserved.