jasco.runtime.distribution
Class HostWrapper
java.lang.Object
jasco.runtime.distribution.HostWrapper
- All Implemented Interfaces:
- IHostSet, java.io.Serializable
public class HostWrapper
- extends java.lang.Object
- implements IHostSet
- 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
buildFrom
public static IHostSet buildFrom(java.lang.String desc)
isLocalHost
public boolean isLocalHost()
- Description copied from interface:
IHostSet
- returns true iff only execute on local host
- Specified by:
isLocalHost
in interface IHostSet
- Returns:
contains
public boolean contains(Host host)
- Specified by:
contains
in interface IHostSet
toString
public java.lang.String toString()
- Specified by:
toString
in interface IHostSet
- Overrides:
toString
in class java.lang.Object
selectHostsByStrategy
public IHostSet selectHostsByStrategy()
- Description copied from interface:
IHostSet
- returns the chosen host
- Specified by:
selectHostsByStrategy
in interface IHostSet
- Returns:
selectOneHostByStrategy
public Host selectOneHostByStrategy()
- Specified by:
selectOneHostByStrategy
in interface IHostSet