org.javagroups
Class MergeView

java.lang.Object
  extended byorg.javagroups.View
      extended byorg.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
           
 
Fields inherited from class org.javagroups.View
members, vid
 
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
 
Method Summary
 java.lang.Object clone()
          creates a copy of this view
 java.util.Vector getSubgroups()
           
 void readExternal(java.io.ObjectInput in)
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class org.javagroups.View
containsMember, getCreator, getMembers, getVid, printDetails, size
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

subgroups

protected java.util.Vector subgroups
Constructor Detail

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 view
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
Method Detail

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
Throws:
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
Throws:
java.io.IOException
java.lang.ClassNotFoundException


Copyright © 2001,2002 www.javagroups.com . All Rights Reserved.