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
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BROADCAST_NAME
public static final java.lang.String BROADCAST_NAME
HostList
public HostList(HostInfo self,
HostInfo seed,
long swap_delay)
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)