jasco.runtime.distribution
Class HostSet

java.lang.Object
  extended by 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

Method Summary
 void addHost(Host host)
           
 boolean contains(Host host)
           
 boolean containsLocalHost()
           
 java.util.Iterator<Host> getHosts()
           
 boolean isLocalHost()
          returns true iff only execute on local host
 void removeHost(Host host)
           
 IHostSet selectHostsByStrategy()
          returns the chosen host
 Host selectOneHostByStrategy()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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