Logo Search packages:      
Sourcecode: libjgroups-java version File versions

org::jgroups::View Class Reference

Inheritance diagram for org::jgroups::View:

org::jgroups::util::Streamable org::jgroups::MergeView

List of all members.


Detailed Description

A view is a local representation of the current membership of a group. Only one view is installed in a channel at a time. Views contain the address of its creator, an ID and a list of member addresses. These adresses are ordered, and the first address is always the coordinator of the view. This way, each member of the group knows who the new coordinator will be if the current one crashes or leaves the group. The views are sent between members using the VIEW_CHANGE event
Author:
Bela Ban
Version:
Id
View.java,v 1.18 2007/10/01 07:24:41 belaban Exp

Definition at line 25 of file View.java.


Public Member Functions

void addPayload (String key, Object value)
Object clone ()
boolean containsMember (Address mbr)
boolean equals (Object obj)
Address getCreator ()
Vector< AddressgetMembers ()
Object getPayload (String key)
ViewId getVid ()
int hashCode ()
String printDetails ()
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
void readFrom (DataInputStream in) throws IOException, IllegalAccessException, InstantiationException
int serializedSize ()
int size ()
String toString ()
 View (Address creator, long id, Vector< Address > members)
 View (ViewId vid, Vector< Address > members)
 View ()
void writeExternal (ObjectOutput out) throws IOException
void writeTo (DataOutputStream out) throws IOException

Protected Attributes

Vector< Addressmembers = null
Map< String, Object > payload = null
ViewId vid = null

Static Private Attributes

static final long serialVersionUID = 7027860705519930293L

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index