org.hardtokenmgmt.admin.control
Class BaseHostStatusFetcher

java.lang.Object
  extended by org.hardtokenmgmt.admin.control.BaseHostStatusFetcher
All Implemented Interfaces:
IHostStatusFetcher
Direct Known Subclasses:
DummyImpl, HTMFWSImpl

public abstract class BaseHostStatusFetcher
extends java.lang.Object
implements IHostStatusFetcher

Base class that manages host monitored functionality

Version:
$Id$
Author:
Philip Vendil 26 feb 2009

Constructor Summary
BaseHostStatusFetcher()
           
 
Method Summary
 boolean isHostMonitored(java.lang.String hostname)
          Checks if a specific host is currently monitored.
 void setHostAsMonitored(java.lang.String hostname, boolean monitored)
          Marks a specific as monitored as status checks should periodically be sent to this host.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hardtokenmgmt.admin.control.IHostStatusFetcher
getHostStatuses
 

Constructor Detail

BaseHostStatusFetcher

public BaseHostStatusFetcher()
Method Detail

isHostMonitored

public boolean isHostMonitored(java.lang.String hostname)
Description copied from interface: IHostStatusFetcher
Checks if a specific host is currently monitored.

Specified by:
isHostMonitored in interface IHostStatusFetcher
Parameters:
hostname - the name of the host
Returns:
true if the given host is currently monitored.
See Also:
IHostStatusFetcher.isHostMonitored(java.lang.String)

setHostAsMonitored

public void setHostAsMonitored(java.lang.String hostname,
                               boolean monitored)
Description copied from interface: IHostStatusFetcher
Marks a specific as monitored as status checks should periodically be sent to this host.

Specified by:
setHostAsMonitored in interface IHostStatusFetcher
Parameters:
hostname - the name of the host
monitored - if monitored or not
See Also:
IHostStatusFetcher.setHostAsMonitored(java.lang.String, boolean)