jasco.runtime.distribution
Class HostSet
java.lang.Object
jasco.runtime.distribution.HostSet
- All Implemented Interfaces:
- IHostSet, INeighborhood, java.io.Serializable
public class HostSet
- extends java.lang.Object
- implements IHostSet, INeighborhood
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
containsLocalHost
public boolean containsLocalHost()
- Specified by:
containsLocalHost
in interface IHostSet
toString
public java.lang.String toString()
- Specified by:
toString
in interface IHostSet
- Overrides:
toString
in class java.lang.Object
isLocalHost
public boolean isLocalHost()
- Description copied from interface:
IHostSet
- returns true iff only execute on local host
- Specified by:
isLocalHost
in interface IHostSet
- Returns:
selectOneHostByStrategy
public Host selectOneHostByStrategy()
- Specified by:
selectOneHostByStrategy
in interface IHostSet
selectHostsByStrategy
public IHostSet selectHostsByStrategy()
- Description copied from interface:
IHostSet
- returns the chosen host
- Specified by:
selectHostsByStrategy
in interface IHostSet
- Returns:
contains
public boolean contains(Host host)
- Specified by:
contains
in interface IHostSet
addHost
public void addHost(Host host)
- Specified by:
addHost
in interface INeighborhood
removeHost
public void removeHost(Host host)
- Specified by:
removeHost
in interface INeighborhood
getHosts
public java.util.Iterator<Host> getHosts()
- Specified by:
getHosts
in interface INeighborhood