org.objectweb.tribe.views
Class View

java.lang.Object
  extended byorg.objectweb.tribe.views.View

public class View
extends java.lang.Object

This class defines a View of a group. This is used for view synchrony.

Version:
1.0
Author:
Emmanuel Cecchet

Constructor Summary
View(int viewId, java.util.ArrayList members)
          Creates a new view
 
Method Summary
 java.util.ArrayList getMembers()
          Returns a reference to the list of members (this list may have been ordered by the underlying GMS service).
 int getViewId()
          Returns the id of this view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

View

public View(int viewId,
            java.util.ArrayList members)
Creates a new view

Parameters:
viewId - The view uniaque identifier
members - Contains a list of all the members in the view, can be empty but not null.
Method Detail

getMembers

public java.util.ArrayList getMembers()
Returns a reference to the list of members (this list may have been ordered by the underlying GMS service). Make a copy of the list if you have to modify it.

Returns:
a reference to the ordered list of members in this view

getViewId

public int getViewId()
Returns the id of this view.

Returns:
Returns the view id.


Copyright © 2004 - ObjectWeb Consortium - All Rights Reserved.