jasco.runtime.distribution
Class HostWrapper

java.lang.Object
  extended by jasco.runtime.distribution.HostWrapper
All Implemented Interfaces:
IHostSet, java.io.Serializable

public class HostWrapper
extends java.lang.Object
implements IHostSet

See Also:
Serialized Form

Method Summary
static IHostSet buildFrom(java.lang.String desc)
           
 boolean contains(Host host)
           
 boolean containsLocalHost()
           
 boolean isLocalHost()
          returns true iff only execute on local 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

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