|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.mgmt.ClusterView
public class ClusterView
ClusterView is a snapshot of the current membership of the group. The ClusterView is created anew each time a membership change occurs in the group. ClusterView is managed by ClusterViewManager.
| Field Summary | |
|---|---|
long |
masterViewId
|
| Method Summary | |
|---|---|
void |
add(SystemAdvertisement adv)
Adds a system advertisement to the view. |
void |
clear()
Removes all of the elements from this set (optional operation). |
boolean |
containsKey(PeerID id)
|
SystemAdvertisement |
get(PeerID id)
Retrieves a system advertisement from a the table. |
long |
getClusterViewId()
Returns the cluster view ID |
SystemAdvertisement |
getMasterCandidate()
Returns the top node on the list |
List<String> |
getPeerNamesInView()
Returns the list of peer names in the peer id sorted order from the cluster view |
int |
getSize()
Gets the viewSize attribute of the ClusterView object |
List<SystemAdvertisement> |
getView()
Returns a sorted list containing the System Advertisements of peers in PeerId sorted order |
boolean |
isFirst(SystemAdvertisement advertisement)
Determines whether this node is at the top of the list |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final long masterViewId
| Method Detail |
|---|
public SystemAdvertisement get(PeerID id)
id - instance id
public void add(SystemAdvertisement adv)
adv - adds a system advertisement to the viewpublic boolean containsKey(PeerID id)
public List<SystemAdvertisement> getView()
public List<String> getPeerNamesInView()
public int getSize()
public SystemAdvertisement getMasterCandidate()
public boolean isFirst(SystemAdvertisement advertisement)
advertisement - the advertisement to test
public long getClusterViewId()
public void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||