org.sapia.ubik.mcast
Class View

java.lang.Object
  extended by org.sapia.ubik.mcast.View

public class View
extends java.lang.Object

Encapsulates the addresses of the nodes that compose an event channel. An instance of this class is encapsulated by an EventChannel. Its provides a "view" of the domain.

An instance of this class encapsulates the address of each of the sibling of an EventChannel node.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Nested Class Summary
static class View.AddressList
           
 
Constructor Summary
View(long timeout)
          Constructor for View.
 
Method Summary
 ServerAddress getAddressFor(java.lang.String node)
          Returns the ServerAddress corresponding to the given node.
 java.util.List getHosts()
          Returns this instance's List of ServerAddresses.
 void setTimeout(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

View

public View(long timeout)
Constructor for View.

Method Detail

getHosts

public java.util.List getHosts()
Returns this instance's List of ServerAddresses.

Returns:
a List of ServerAddresses.

getAddressFor

public ServerAddress getAddressFor(java.lang.String node)
Returns the ServerAddress corresponding to the given node.

Returns:
a ServerAddress.

setTimeout

public void setTimeout(long timeout)
Parameters:
timeout - the timeout after which nodes that haven't sent a heartbeat are removed from this instance.


Copyright © 2010 Sapia OSS. All Rights Reserved.