Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS

Class com.orbs.pub.app.agent.vaft.core.HostList

java.lang.Object
    |
    +----com.orbs.pub.app.agent.vaft.core.HostList

public class HostList
extends java.lang.Object
implements java.lang.Cloneable, java.lang.Runnable, java.io.Serializable, Broadcaster

Version:
1998-04-26
Author:
David W. Croft

Field Summary
static java.lang.String  BROADCAST_NAME
 
 

Constructor Summary
 HostList(HostInfo self, HostInfo seed, long swap_delay)
 
 

Method Summary
boolean  addBroadcastListener(BroadcastListener broadcastListener)
 
void  broadcast(java.lang.String s)
 
java.lang.Object  clone()
 
java.lang.String  getBroadcastName()
 
java.util.Vector  getHostInfoList()
Returns a shallow clone.
HostInfo  getHostInfoSeed()
 
HostInfo  getHostInfoSelf()
 
boolean  getRunning()
 
boolean  isKnown(HostInfo hostInfo)
 
boolean  removeBroadcastListener(BroadcastListener broadcastListener)
 
void  run()
 
void  setRunning(boolean running)
 
HostList  swap(HostList hostList)
 
void  swap()
Contact each remote Host and swap HostLists.
 
Methods inherited from class java.lang.Object
 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BROADCAST_NAME

public static final java.lang.String BROADCAST_NAME
Constructor Detail

HostList

public HostList(HostInfo self,
                HostInfo seed,
                long swap_delay)
Method Detail

getRunning

public boolean getRunning()

setRunning

public void setRunning(boolean running)

getHostInfoSelf

public HostInfo getHostInfoSelf()

getHostInfoSeed

public HostInfo getHostInfoSeed()

getHostInfoList

public java.util.Vector getHostInfoList()
Returns a shallow clone.

swap

public HostList swap(HostList hostList)

run

public void run()
Implements:
run in interface java.lang.Runnable

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

swap

public void swap()
Contact each remote Host and swap HostLists. Remove those Hosts which do not respond properly from my HostList.

isKnown

public boolean isKnown(HostInfo hostInfo) throws java.net.UnknownHostException

getBroadcastName

public java.lang.String getBroadcastName()
Implements:
getBroadcastName in interface Broadcaster

addBroadcastListener

public boolean addBroadcastListener(BroadcastListener broadcastListener)
Implements:
addBroadcastListener in interface Broadcaster

removeBroadcastListener

public boolean removeBroadcastListener(BroadcastListener broadcastListener)
Implements:
removeBroadcastListener in interface Broadcaster

broadcast

public void broadcast(java.lang.String s)

Contents | Package | Class | Tree | Deprecated | Index | Help


Virtual Anarchy of Free Traders
PREV | NEXT SHOW LISTS | HIDE LISTS