org.jgroups

Class MergeView

Implemented Interfaces:
Cloneable, Externalizable

public class MergeView
extends View

A view that is sent as result of a merge.

Field Summary

protected Vector
subgroups

Fields inherited from class org.jgroups.View

members, vid

Constructor Summary

MergeView()
Used by externalization
MergeView(Address creator, long id, Vector members, Vector subgroups)
Creates a new view
MergeView(ViewId vid, Vector members, Vector subgroups)
Creates a new view

Method Summary

Object
clone()
creates a copy of this view
Vector
getSubgroups()
void
readExternal(ObjectInput in)
String
toString()
void
writeExternal(ObjectOutput out)

Methods inherited from class org.jgroups.View

clone, containsMember, getCreator, getMembers, getVid, printDetails, readExternal, size, toString, writeExternal

Field Details

subgroups

protected Vector subgroups

Constructor Details

MergeView

public MergeView()
Used by externalization


MergeView

public MergeView(Address creator,
                 long id,
                 Vector members,
                 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


MergeView

public MergeView(ViewId vid,
                 Vector members,
                 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

Method Details

clone

public Object clone()
creates a copy of this view
Overrides:
clone in interface View

Returns:
a copy of this view


getSubgroups

public Vector getSubgroups()


readExternal

public void readExternal(ObjectInput in)
            throws IOException,
                   ClassNotFoundException
Overrides:
readExternal in interface View


toString

public String toString()
Overrides:
toString in interface View


writeExternal

public void writeExternal(ObjectOutput out)
            throws IOException
Overrides:
writeExternal in interface View


Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.